Function at 0x140036660
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r12
mov eax, 0x3048
call fcn.14006dcc0
sub rsp, rax
mov rax, qword [0x1400888e8]
xor rax, rsp
mov qword [rsp + 0x3010], rax
xor ebp, ebp
mov qword [rsp + 0x70], r9
mov r10d, edx
mov rax, r8
mov qword [rsp + 0x78], rax
mov rdi, rcx
mov dword [rsp + 0x40], ebp
mov ebx, ebp
mov qword [rsp + 0x50], rbp
mov r12d, ebp
mov qword [rsp + 0x48], rbp
test rcx, rcx
je 0x140036ca1
mov rdx, qword [rcx + 0x68]
test rdx, rdx
je 0x140036c9a
test rax, rax
je 0x140036c9a
cmp qword [rcx + 0x48], rbx
je 0x140036c9a
cmp r10d, dword [rcx + 0x10]
jae 0x1400366e9
mov rax, qword [rdx + 0x20]
mov r8d, dword [rax + r10*4]
add r8, qword [rdx]
jmp 0x1400366ec
mov r8, rbp
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], rbp
mov edx, r10d
call fcn.140035c00
test eax, eax
je 0x140036ca1
mov qword [rsp + 0x3038], r13
cmp dword [rsp + 0xdc], ebx
jne 0x140036c90
mov r13, qword [rsp + 0xb8]
test r13, r13
je 0x140036c90
test byte [rsp + 0xa4], 0x61
je 0x140036747
mov dword [rdi + 0x1c], 5
xor eax, eax
jmp 0x14003686f
and dword [rsp + 0x3090], 0x400
jne 0x140036771
mov eax, 0xfff7
test word [rsp + 0xa6], ax
je 0x140036771
mov dword [rdi + 0x1c], 4
xor eax, eax
jmp 0x14003686f
mov rcx, qword [rdi + 0x60]
lea r8, [rsp + 0x2ff0]
mov qword [rsp + 0x3040], rsi
mov r9d, SafeArrayAllocDescriptor
mov rsi, qword [rsp + 0xd0]
mov rdx, rsi
call qword [rdi + 0x48]
cmp rax, 0x1e
je 0x1400367ad
mov dword [rdi + 0x1c], shutdown
xor eax, eax
jmp 0x140036867
cmp dword [rsp + 0x2ff0], 0x4034b50
jne 0x140036c82
movzx eax, word [rsp + 0x300a]
movzx ecx, word [rsp + 0x300c]
add rax, rsi
add rcx, 0x1e
add rcx, rax
mov qword [rsp + 0x58], rcx
lea rax, [rcx + r13]
cmp rax, qword [rdi]
ja 0x140036c82
mov rax, qword [rdi + 0x68]
mov qword [rsp + 0x3030], r14
mov qword [rsp + 0x3028], r15
mov rdx, qword [rax + 0x80]
test rdx, rdx
je 0x140036823
lea r15, [rdx + rcx]
mov rsi, r13
mov rdx, r13
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rdx
jmp 0x1400368a8
mov rcx, qword [rdi + 0x40]
mov eax, 0x2000
cmp r13, rax
mov edx, 1
cmovb rax, r13
mov r8, rax
mov qword [rsp + 0x68], rax
call qword [rdi + 0x28]
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
jne 0x140036894
mov dword [rdi + 0x1c], reloc.WS2_32.dll_recv
mov r14, qword [rsp + 0x3030]
mov r15, qword [rsp + 0x3028]
mov rsi, qword [rsp + 0x3040]
mov r13, qword [rsp + 0x3038]
mov rcx, qword [rsp + 0x3010]
xor rcx, rsp
call fcn.14006dc90
add rsp, 0x3048
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rax, qword [rdi + 0x68]
mov rsi, rbp
mov rcx, qword [rsp + 0x58]
mov rbp, r13
mov rdx, qword [rsp + 0x68]
mov r14, r13
cmp dword [rsp + 0x3090], ebx
jne 0x140036a85
cmp word [rsp + 0xa6], bx
je 0x140036a85
mov rcx, qword [rdi + 0x40]
mov edx, 1
mov r8d, 0x8000
mov dword [rsp + 0x4f0], ebx
call qword [rdi + 0x28]
mov qword [rsp + 0x48], rax
mov r14, rax
test rax, rax
jne 0x1400368fb
mov dword [rdi + 0x1c], reloc.WS2_32.dll_recv
lea ebx, [rax - 1]
jmp 0x140036b2c
lea r15, [0x1400754c0]
mov rcx, r12
mov eax, 0x8000
and ecx, 0x7fff
sub rax, rcx
add r14, rcx
mov qword [rsp + 0x80], rax
test rsi, rsi
jne 0x14003696e
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], rsi
jne 0x14003696e
cmp qword [rsp + 0x68], rbp
mov rsi, rbp
mov r13, qword [rsp + 0x58]
cmovb rsi, qword [rsp + 0x68]
mov rdx, r13
mov r8, qword [rsp + 0x60]
mov r9, rsi
mov rcx, qword [rdi + 0x60]
call qword [rdi + 0x48]
cmp rax, rsi
jne 0x140036a63
add r13, rsi
sub rbp, rsi
mov qword [rsp + 0x58], r13
xor r13d, r13d
jmp 0x140036973
mov r13, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov r9, qword [rsp + 0x48]
mov rax, rbp
neg rax
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x80]
sbb ecx, ecx
add rdx, r13
and ecx, 2
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x4f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call fcn.14003cbf0
sub rsi, qword [rsp + 0x50]
mov ecx, eax
add qword [rsp + 0x50], r13
mov r13, qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
test r13, r13
je 0x140036a47
mov rcx, qword [rsp + 0x70]
mov r9, r13
mov r8, r14
mov rdx, r12
call qword [rsp + 0x78]
cmp rax, r13
jne 0x140036a74
mov rdx, r13
test r14, r14
jne 0x1400369fc
xor ebx, ebx
jmp 0x140036a32
not ebx
nop
movzx ecx, byte [r14]
lea r14, [r14 + 1]
mov eax, ebx
shr ebx, 4
xor rax, rcx
shr rcx, 4
and eax, 0xf
xor ebx, dword [r15 + rax*4]
mov eax, ebx
shr ebx, 4
and eax, 0xf
xor rax, rcx
xor ebx, dword [r15 + rax*4]
sub rdx, 1
jne 0x140036a00
not ebx
add r12, r13
cmp r12, qword [rsp + 0xc0]
ja 0x140036c71
mov ecx, dword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
cmp ecx, 1
je 0x140036902
cmp ecx, 2
jne 0x140036b1b
jmp 0x140036902
mov dword [rdi + 0x1c], shutdown
mov ebx, 0xffffffff
jmp 0x140036b27
mov dword [rdi + 0x1c], SafeArrayAllocDescriptor
mov ebx, 0xffffffff
jmp 0x140036b27
cmp qword [rax + 0x80], rbx
je 0x140036b64
mov rcx, qword [rsp + 0x70]
mov r9, r13
mov r8, r15
xor edx, edx
call qword [rsp + 0x78]
cmp rax, r14
je 0x140036aba
mov ecx, 0xffffffff
mov dword [rdi + 0x1c], SafeArrayAllocDescriptor
mov dword [rsp + 0x40], ecx
jmp 0x140036b18
cmp dword [rsp + 0x3090], ebx
jne 0x140036b16
mov rdx, r15
test r15, r15
je 0x140036b16
mov ebx, 0xffffffff
test r14, r14
je 0x140036b0f
lea r15, [0x1400754c0]
nop dword [rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov eax, ebx
shr ebx, 4
xor rax, rcx
shr rcx, 4
and eax, 0xf
xor ebx, dword [r15 + rax*4]
mov eax, ebx
shr ebx, 4
and eax, 0xf
xor rax, rcx
xor ebx, dword [r15 + rax*4]
sub r14, 1
jne 0x140036ae0
not ebx
mov ecx, r12d
jmp 0x140036b18
mov ecx, ebx
mov r12, r13
test ecx, ecx
je 0x140036c3b
mov ebx, dword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], 0
jne 0x140036b46
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x40]
call qword [rdi + 0x30]
test r14, r14
je 0x140036b55
mov rcx, qword [rdi + 0x40]
mov rdx, r14
call qword [rdi + 0x30]
test ebx, ebx
mov eax, 0
sete al
jmp 0x140036857
test rbp, rbp
je 0x140036c3b
mov r14, qword [rsp + 0x60]
lea r15, [0x1400754c0]
nop dword [rax]
cmp rdx, rbp
mov rsi, rbp
mov r8, r14
cmovb rsi, rdx
mov rdx, rcx
mov rcx, qword [rdi + 0x60]
mov r9, rsi
call qword [rdi + 0x48]
cmp rax, rsi
jne 0x140036a63
cmp dword [rsp + 0x3090], 0
jne 0x140036c02
mov rdx, rsi
mov r8, r14
test r14, r14
jne 0x140036bbc
xor ebx, ebx
jmp 0x140036c02
not ebx
test rsi, rsi
je 0x140036c00
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov eax, ebx
shr ebx, 4
xor rax, rcx
shr rcx, 4
and eax, 0xf
xor ebx, dword [r15 + rax*4]
mov eax, ebx
shr ebx, 4
and eax, 0xf
xor rax, rcx
xor ebx, dword [r15 + rax*4]
sub rdx, 1
jne 0x140036bd0
not ebx
mov rcx, qword [rsp + 0x70]
mov r9, rsi
mov r8, r14
mov rdx, r12
call qword [rsp + 0x78]
cmp rax, rsi
jne 0x140036a74
mov rcx, qword [rsp + 0x58]
add r12, rsi
mov rdx, qword [rsp + 0x68]
add rcx, rsi
mov qword [rsp + 0x58], rcx
sub rbp, rsi
jne 0x140036b80
cmp dword [rsp + 0x3090], 0
jne 0x140036b23
cmp r12, qword [rsp + 0xc0]
je 0x140036c64
mov dword [rdi + 0x1c], reloc.WS2_32.dll_listen
mov ebx, 0xffffffff
jmp 0x140036b27
cmp ebx, dword [rsp + 0xb0]
je 0x140036b23
mov dword [rdi + 0x1c], reloc.WS2_32.dll_inet_addr
mov ebx, 0xffffffff
jmp 0x140036b27
mov dword [rdi + 0x1c], 9
xor eax, eax
jmp 0x140036867
mov eax, 1
jmp 0x14003686f
mov dword [rcx + 0x1c], 0x18
xor eax, eax
jmp 0x140036877