Function at 0x1400a1f20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov edi, r8d
mov dword [rsp + 0x48], r9d
mov r8, qword [rbp + 0x5f0]
mov rbx, rdx
mov r9, qword [rbp + 0x5f8]
mov r10d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x68], r9
cmp edi, 0x100
jbe 0x1400a1f80
mov r13d, dword [rdx + 0x400]
jmp 0x1400a1f83
mov r13d, r10d
xorps xmm0, xmm0
xor eax, eax
mov rcx, rdx
mov dword [rbp - 0x40], eax
movups xmmword [rbp - 0x80], xmm0
mov edx, edi
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov eax, dword [rcx]
lea rcx, [rcx + 4]
inc dword [rbp + rax*4 - 0x80]
add edx, 0xffffffff
jne 0x1400a1fa0
cmp dword [rbp - 0x80], edi
jne 0x1400a1fc1
xor eax, eax
mov qword [r8], rax
mov dword [r9], eax
jmp 0x1400a23d9
mov qword [rsp + 0x690], r12
mov r12d, 1
mov ecx, r12d
mov eax, ecx
cmp dword [rbp + rax*4 - 0x80], 0
jne 0x1400a1fe2
inc ecx
cmp ecx, r10d
jbe 0x1400a1fd2
mov dword [rsp + 0x24], ecx
cmp dword [r9], ecx
jae 0x1400a1ff0
mov dword [r9], ecx
nop
mov eax, r10d
cmp dword [rbp + rax*4 - 0x80], 0
jne 0x1400a2000
add r10d, 0xffffffff
jne 0x1400a1ff0
mov dword [rsp + 0x20], r10d
cmp dword [r9], r10d
jbe 0x1400a200d
mov dword [r9], r10d
mov r8d, r12d
shl r8d, cl
cmp ecx, r10d
jae 0x1400a2033
nop dword [rax + rax]
mov eax, ecx
sub r8d, dword [rbp + rax*4 - 0x80]
js 0x1400a204b
inc ecx
add r8d, r8d
cmp ecx, r10d
jb 0x1400a2020
mov eax, r10d
lea rcx, [rbp - 0x80]
lea rcx, [rcx + rax*4]
mov edx, r8d
sub r8d, dword [rcx]
mov dword [rsp + 0x4c], r8d
jns 0x1400a2055
mov eax, 2
jmp 0x1400a23d1
mov dword [rcx], edx
xor ecx, ecx
mov qword [rsp + 0x688], r14
mov qword [rsp + 0x680], r15
mov dword [rbp - 0x2c], ecx
add r10d, 0xffffffff
je 0x1400a2092
xor eax, eax
nop dword [rax]
nop dword [rax + rax]
add ecx, dword [rbp + rax - 0x7c]
mov dword [rbp + rax - 0x28], ecx
lea rax, [rax + 4]
add r10d, 0xffffffff
jne 0x1400a2080
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x480
call fcn.14011fff0
xor edx, edx
nop dword [rax + rax]
mov eax, dword [rbx]
lea rbx, [rbx + 4]
test eax, eax
je 0x1400a20cf
lea rcx, [rbp - 0x30]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
mov dword [rbp + rax*4 + 0xf0], edx
inc eax
mov dword [rcx], eax
inc edx
cmp edx, edi
jb 0x1400a20b0
movsxd rcx, dword [rsp + 0x20]
xor r15d, r15d
mov r11d, dword [rsp + 0x24]
xor edi, edi
xor r8d, r8d
mov qword [rsp + 0x6c0], rsi
xor r14d, r14d
mov dword [rbp + 0x20], r15d
mov eax, dword [rbp + rcx*4 - 0x30]
lea r10, [r15 - 1]
mov dword [rsp + 0x44], eax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x50], rax
mov dword [rbp - 0x30], r15d
mov qword [rbp + 0x70], rdi
cmp r11d, ecx
jg 0x1400a239d
mov rsi, r10
movsxd rax, r11d
mov edx, dword [rbp + rax*4 - 0x80]
lea rax, [rbp + rax*4 - 0x80]
mov qword [rsp + 0x70], rax
test edx, edx
je 0x1400a238c
nop dword [rax + rax]
mov ebx, dword [rbp + rsi*4 + 0x24]
mov r9d, edx
mov dword [rsp + 0x40], edx
dec edx
mov dword [rsp + 0x28], edx
lea eax, [rbx + rdi]
cmp r11d, eax
jle 0x1400a2284
nop dword [rax]
add edi, ebx
mov eax, ecx
mov rcx, qword [rsp + 0x68]
sub eax, edi
inc r10d
inc rsi
mov ebx, r11d
mov qword [rsp + 0x60], r10
mov r8d, dword [rcx]
cmp eax, r8d
cmovbe r8d, eax
sub ebx, edi
mov ecx, ebx
mov eax, r12d
shl eax, cl
cmp eax, r9d
jbe 0x1400a21c6
mov ecx, 0xffffffff
inc ebx
sub ecx, edx
add eax, ecx
mov rcx, qword [rsp + 0x70]
cmp ebx, r8d
jae 0x1400a21c6
nop word [rax + rax]
mov edx, dword [rcx + 4]
lea rcx, [rcx + 4]
add eax, eax
cmp eax, edx
jbe 0x1400a21c6
sub eax, edx
inc ebx
cmp ebx, r8d
jb 0x1400a21b0
lea eax, [rdi + rbx]
cmp eax, r13d
jbe 0x1400a21d8
cmp edi, r13d
jae 0x1400a21d8
mov ebx, r13d
sub ebx, edi
mov ecx, ebx
mov dword [rbp + rsi*4 + 0x24], ebx
mov r14d, r12d
shl r14d, cl
lea ecx, [r14 + 1]
shl rcx, 4
call fcn.14012d1e8
test rax, rax
je 0x1400a23f5
mov rcx, qword [rsp + 0x58]
lea r8, [rax + 0x10]
add rax, 8
mov qword [rbp + rsi*8 + 0x70], r8
mov qword [rsp + 0x58], rax
mov qword [rcx], r8
mov qword [rax], 0
test rsi, rsi
je 0x1400a2261
movzx eax, byte [rbp + rsi*4 + 0x20]
mov ecx, edi
mov byte [rsp + 0x31], al
mov edx, r12d
shl edx, cl
lea eax, [rbx + 0x20]
sub ecx, dword [rbp + rsi*4 + 0x20]
dec edx
mov byte [rsp + 0x30], al
mov eax, r15d
and rdx, rax
mov qword [rsp + 0x38], r8
mov rax, qword [rbp + rsi*8 + 0x68]
movups xmm0, xmmword [rsp + 0x30]
shr rdx, cl
add rdx, rdx
mov dword [rbp + rsi*4 - 0x30], r15d
movups xmmword [rax + rdx*8], xmm0
mov r11d, dword [rsp + 0x24]
lea eax, [rdi + rbx]
mov r10, qword [rsp + 0x60]
mov edx, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
cmp r11d, eax
jg 0x1400a2160
mov rbx, qword [rsp + 0x50]
lea rcx, [rbp + 0xf0]
movzx eax, r11b
sub al, dil
mov byte [rsp + 0x31], al
mov eax, dword [rsp + 0x44]
lea rcx, [rcx + rax*4]
cmp rbx, rcx
jb 0x1400a22af
mov byte [rsp + 0x30], WSAAsyncSelect
jmp 0x1400a22fe
mov ecx, dword [rbx]
add rbx, 4
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
cmp ecx, eax
jae 0x1400a22d8
cmp ecx, 0x100
mov word [rsp + 0x38], cx
setb al
add al, 0x1f
mov byte [rsp + 0x30], al
jmp 0x1400a22fe
sub ecx, eax
mov qword [rsp + 0x50], rbx
mov rax, qword [rbp + 0x5e8]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
mov rax, qword [rbp + 0x5e0]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x38], ax
mov ecx, r11d
mov r9d, r12d
sub ecx, edi
mov edx, r15d
shl r9d, cl
mov ecx, edi
shr edx, cl
cmp edx, r14d
jae 0x1400a2332
movups xmm0, xmmword [rsp + 0x30]
nop word [rax + rax]
mov eax, edx
add edx, r9d
add rax, rax
movups xmmword [r8 + rax*8], xmm0
cmp edx, r14d
jb 0x1400a2320
lea ecx, [r11 - 1]
mov eax, r12d
shl eax, cl
test r15d, eax
je 0x1400a234a
xor r15d, eax
shr eax, 1
test r15d, eax
jne 0x1400a2340
xor r15d, eax
mov ecx, edi
mov eax, r12d
shl eax, cl
dec eax
and eax, r15d
cmp eax, dword [rbp + rsi*4 - 0x30]
je 0x1400a237c
nop
sub edi, dword [rbp + rsi*4 + 0x20]
dec rsi
mov ecx, edi
mov eax, r12d
shl eax, cl
dec r10d
dec eax
and eax, r15d
cmp eax, dword [rbp + rsi*4 - 0x30]
jne 0x1400a2360
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
test edx, edx
jne 0x1400a2140
inc r11d
mov dword [rsp + 0x24], r11d
cmp r11d, ecx
jle 0x1400a2122
cmp dword [rsp + 0x4c], 0
mov rdx, qword [rsp + 0x68]
mov eax, dword [rbp + 0x24]
mov dword [rdx], eax
je 0x1400a23b3
cmp ecx, r12d
jne 0x1400a23b6
xor r12d, r12d
mov eax, r12d
mov rsi, qword [rsp + 0x6c0]
mov r14, qword [rsp + 0x688]
mov r15, qword [rsp + 0x680]
mov r12, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x698
pop r13
pop rdi
pop rbx
pop rbp
ret
cmp dword [rsp + 0x60], 0
je 0x1400a2425
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x1400a2425
nop word [rax + rax]
mov rbx, qword [rcx - 8]
sub rcx, 0x10
call fcn.140122088
mov rcx, rbx
test rbx, rbx
jne 0x1400a2410
mov eax, 3
jmp 0x1400a23b9