Function at 0x1400ba7c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x1401ef010]
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 0x1400ba820
mov r13d, dword [rdx + 0x400]
jmp 0x1400ba823
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 0x1400ba840
cmp dword [rbp - 0x80], edi
jne 0x1400ba861
xor eax, eax
mov qword [r8], rax
mov dword [r9], eax
jmp 0x1400bac69
mov qword [rsp + 0x690], r12
mov r12d, 1
mov ecx, r12d
mov eax, ecx
cmp dword [rbp + rax*4 - 0x80], 0
jne 0x1400ba882
inc ecx
cmp ecx, r10d
jbe 0x1400ba872
mov dword [rsp + 0x24], ecx
cmp dword [r9], ecx
jae 0x1400ba890
mov dword [r9], ecx
nop
mov eax, r10d
cmp dword [rbp + rax*4 - 0x80], 0
jne 0x1400ba8a0
add r10d, 0xffffffff
jne 0x1400ba890
mov dword [rsp + 0x20], r10d
cmp dword [r9], r10d
jbe 0x1400ba8ad
mov dword [r9], r10d
mov edx, r12d
shl edx, cl
cmp ecx, r10d
jae 0x1400ba8c8
mov eax, ecx
sub edx, dword [rbp + rax*4 - 0x80]
js 0x1400ba8dd
inc ecx
add edx, edx
cmp ecx, r10d
jb 0x1400ba8b7
mov eax, r10d
lea rcx, [rbp - 0x80]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
sub edx, eax
mov dword [rsp + 0x4c], edx
jns 0x1400ba8e7
mov eax, 2
jmp 0x1400bac61
add eax, edx
mov qword [rsp + 0x688], r14
mov dword [rcx], eax
xor ecx, ecx
mov qword [rsp + 0x680], r15
mov dword [rbp - 0x2c], ecx
add r10d, 0xffffffff
je 0x1400ba922
xor eax, eax
nop dword [rax + rax]
add ecx, dword [rbp + rax - 0x7c]
mov dword [rbp + rax - 0x28], ecx
lea rax, [rax + 4]
add r10d, 0xffffffff
jne 0x1400ba910
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x480
call fcn.140133cd0
xor edx, edx
nop dword [rax + rax]
mov eax, dword [rbx]
lea rbx, [rbx + 4]
test eax, eax
je 0x1400ba95f
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 0x1400ba940
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 0x1400bac2d
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 0x1400bac1c
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 0x1400bab14
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 0x1400baa56
mov ecx, 0xffffffff
inc ebx
sub ecx, edx
add eax, ecx
mov rcx, qword [rsp + 0x70]
cmp ebx, r8d
jae 0x1400baa56
nop word [rax + rax]
mov edx, dword [rcx + 4]
lea rcx, [rcx + 4]
add eax, eax
cmp eax, edx
jbe 0x1400baa56
sub eax, edx
inc ebx
cmp ebx, r8d
jb 0x1400baa40
lea eax, [rdi + rbx]
cmp eax, r13d
jbe 0x1400baa68
cmp edi, r13d
jae 0x1400baa68
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.140139fe8
test rax, rax
je 0x1400bac85
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 0x1400baaf1
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 0x1400ba9f0
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 0x1400bab3f
mov byte [rsp + 0x30], Ordinal_102
jmp 0x1400bab8e
mov ecx, dword [rbx]
add rbx, 4
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
cmp ecx, eax
jae 0x1400bab68
cmp ecx, 0x100
mov word [rsp + 0x38], cx
setb al
add al, 0x1f
mov byte [rsp + 0x30], al
jmp 0x1400bab8e
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 0x1400babc2
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 0x1400babb0
lea ecx, [r11 - 1]
mov eax, r12d
shl eax, cl
test r15d, eax
je 0x1400babda
xor r15d, eax
shr eax, 1
test r15d, eax
jne 0x1400babd0
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 0x1400bac0c
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 0x1400babf0
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
test edx, edx
jne 0x1400ba9d0
inc r11d
mov dword [rsp + 0x24], r11d
cmp r11d, ecx
jle 0x1400ba9b2
cmp dword [rsp + 0x4c], 0
mov rdx, qword [rsp + 0x68]
mov eax, dword [rbp + 0x24]
mov dword [rdx], eax
je 0x1400bac43
cmp ecx, r12d
jne 0x1400bac46
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.1401312e0
add rsp, 0x698
pop r13
pop rdi
pop rbx
pop rbp
ret
cmp dword [rsp + 0x60], 0
je 0x1400bacb5
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x1400bacb5
nop word [rax + rax]
mov rbx, qword [rcx - 8]
sub rcx, 0x10
call fcn.140137f30
mov rcx, rbx
test rbx, rbx
jne 0x1400baca0
mov eax, 3
jmp 0x1400bac49