Function at 0x1400ae080
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
mov eax, 0x58
call fcn.140103e70
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rdi, rcx
mov rsi, r9
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x38]
mov r14, r8
lea rcx, [r9 + rax]
movabs rax, 0xfffffffe0
mov rbp, rdx
cmp rcx, rax
ja 0x1400ae3fa
cmp rcx, r9
jb 0x1400ae3fa
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x50], r12
mov r12d, dword [rdi + 0x170]
xor ebx, ebx
mov qword [rdi + 0x38], rcx
mov dword [rsp + 0x80], r12d
cmp dword [rdi + 0x174], ebx
je 0x1400ae14a
test r9, r9
jne 0x1400ae118
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.1400acd90
mov dword [rdi + 0x174], ebx
xor eax, eax
jmp 0x1400ae3e3
mov rax, qword [rdi + 0x40]
mov r12d, reloc.WS2_32.dll_recv
mov dword [rdi + 0x174], ebx
mov qword [rdi + 0x188], rax
mov rax, qword [rdi + 0x48]
mov qword [rdi + 0x40], rbx
mov qword [rdi + 0x48], rbx
mov dword [rsp + 0x80], r12d
mov qword [rdi + 0x190], rax
movzx eax, byte [rdi + 0xd]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
movzx r15d, byte [rdi + 0xc]
mov r13d, r12d
shl r15d, 8
or r15d, eax
movzx eax, byte [rdi + 0xe]
shl r15d, 8
or r15d, eax
movzx eax, byte [rdi + 0xf]
shl r15d, 8
or r15d, eax
and r13d, 0xf
mov dword [rsp + 0x30], r13d
je 0x1400ae1f6
movsxd r8, r12d
nop dword [rax + rax]
test rsi, rsi
je 0x1400ae1cc
movzx edx, byte [rbp]
inc r14
inc r12d
mov byte [r8 + rdi + 0x188], dl
movzx ecx, byte [r13 + rdi + 0x10]
inc r8
xor cl, dl
inc rbp
dec rsi
mov byte [r14 - 1], cl
inc r13d
and r13d, 0xf
mov dword [rsp + 0x30], r13d
jne 0x1400ae190
jmp 0x1400ae1d5
test r13d, r13d
jne 0x1400ae3d0
lea r8, [rdi + 0x188]
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
mov r9d, r12d
call fcn.1400aced0
mov r12d, ebx
mov dword [rsp + 0x80], ebx
cmp rsi, 0x10
jb 0x1400ae222
test r12d, r12d
je 0x1400ae222
lea r8, [rdi + 0x188]
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
mov r9d, r12d
call fcn.1400aced0
mov r12d, ebx
mov dword [rsp + 0x80], ebx
cmp rsi, 0xc00
jb 0x1400ae2e0
mov r12, qword [rsp + 0x38]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rbx, rdx
shr rbx, 0xb
mov rax, rbx
imul rax, rax, 0xfffffffffffff400
add rsi, rax
mov qword [rsp + 0x98], rsi
nop dword [rax]
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
mov r9d, 0xc00
mov r8, rbp
call fcn.1400aced0
mov r9, r12
mov r8d, 0xc0
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [rsp + 0xa0]
add r15d, 0xc0
add r14, 0xc00
mov eax, r15d
add rbp, 0xc00
mov byte [rdi + 0xf], r15b
shr eax, 0x18
mov byte [rdi + 0xc], al
mov eax, r15d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r15d
shr eax, 8
sub rbx, 1
mov byte [rdi + 0xe], al
jne 0x1400ae260
mov rsi, qword [rsp + 0x98]
mov r12d, dword [rsp + 0x80]
mov r13d, dword [rsp + 0x30]
mov rax, rsi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x98], rax
je 0x1400ae358
mov rbx, rax
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
mov r9, rax
mov r8, rbp
shr rbx, 4
call fcn.1400aced0
mov r9, qword [rsp + 0x38]
mov r8, rbx
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [rsp + 0xa0]
add r15d, ebx
mov eax, r15d
mov byte [rdi + 0xf], r15b
shr eax, 0x18
mov byte [rdi + 0xc], al
mov eax, r15d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r15d
shr eax, 8
mov byte [rdi + 0xe], al
mov rax, qword [rsp + 0x98]
add r14, rax
add rbp, rax
sub rsi, rax
test rsi, rsi
je 0x1400ae3d0
mov r8, qword [rsp + 0x38]
lea rdx, [rdi + 0x10]
mov rcx, rdi
call qword [rdi + 0x178]
inc r15d
movsxd rcx, r12d
mov eax, r15d
sub rbp, r14
mov byte [rdi + 0xf], r15b
shr eax, 0x18
lea r9, [rcx + rdi + 0x188]
mov byte [rdi + 0xc], al
mov eax, r15d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r15d
shr eax, 8
add r12d, esi
mov byte [rdi + 0xe], al
movsxd rax, r13d
lea rdx, [rax + r14]
lea r8, [rax + rdi + 0x10]
nop
movzx ecx, byte [rdx + rbp]
inc rdx
inc r9
mov byte [r9 - 1], cl
movzx eax, byte [r8]
inc r8
xor al, cl
sub rsi, 1
mov byte [rdx - 1], al
jne 0x1400ae3b0
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov dword [rdi + 0x170], r12d
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbp
ret
or eax, 0xffffffff
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbp
ret