Function at 0x140036670
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r12
mov eax, 0x3048
call fcn.140056950
sub rsp, rax
mov rax, qword [0x14006c408]
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 0x140036cb1
mov rdx, qword [rcx + 0x68]
test rdx, rdx
je 0x140036caa
test rax, rax
je 0x140036caa
cmp qword [rcx + 0x48], rbx
je 0x140036caa
cmp r10d, dword [rcx + 0x10]
jae 0x1400366f9
mov rax, qword [rdx + 0x20]
mov r8d, dword [rax + r10*4]
add r8, qword [rdx]
jmp 0x1400366fc
mov r8, rbp
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], rbp
mov edx, r10d
call fcn.140035c10
test eax, eax
je 0x140036cb1
mov qword [rsp + 0x3038], r13
cmp dword [rsp + 0xdc], ebx
jne 0x140036ca0
mov r13, qword [rsp + 0xb8]
test r13, r13
je 0x140036ca0
test byte [rsp + 0xa4], 0x61
je 0x140036757
mov dword [rdi + 0x1c], 5
xor eax, eax
jmp 0x14003687f
and dword [rsp + 0x3090], 0x400
jne 0x140036781
mov eax, 0xfff7
test word [rsp + 0xa6], ax
je 0x140036781
mov dword [rdi + 0x1c], 4
xor eax, eax
jmp 0x14003687f
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 0x1400367bd
mov dword [rdi + 0x1c], shutdown
xor eax, eax
jmp 0x140036877
cmp dword [rsp + 0x2ff0], 0x4034b50
jne 0x140036c92
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 0x140036c92
mov rax, qword [rdi + 0x68]
mov qword [rsp + 0x3030], r14
mov qword [rsp + 0x3028], r15
mov rdx, qword [rax + 0x80]
test rdx, rdx
je 0x140036833
lea r15, [rdx + rcx]
mov rsi, r13
mov rdx, r13
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rdx
jmp 0x1400368b8
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 0x1400368a4
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.140056920
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 0x140036a95
cmp word [rsp + 0xa6], bx
je 0x140036a95
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 0x14003690b
mov dword [rdi + 0x1c], reloc.WS2_32.dll_recv
lea ebx, [rax - 1]
jmp 0x140036b3c
lea r15, [0x14005df40]
mov rcx, r12
mov eax, 0x8000
and ecx, 0x7fff
sub rax, rcx
add r14, rcx
mov qword [rsp + 0x80], rax
test rsi, rsi
jne 0x14003697e
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], rsi
jne 0x14003697e
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 0x140036a73
add r13, rsi
sub rbp, rsi
mov qword [rsp + 0x58], r13
xor r13d, r13d
jmp 0x140036983
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.14003cc00
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 0x140036a57
mov rcx, qword [rsp + 0x70]
mov r9, r13
mov r8, r14
mov rdx, r12
call qword [rsp + 0x78]
cmp rax, r13
jne 0x140036a84
mov rdx, r13
test r14, r14
jne 0x140036a0c
xor ebx, ebx
jmp 0x140036a42
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 0x140036a10
not ebx
add r12, r13
cmp r12, qword [rsp + 0xc0]
ja 0x140036c81
mov ecx, dword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
cmp ecx, 1
je 0x140036912
cmp ecx, 2
jne 0x140036b2b
jmp 0x140036912
mov dword [rdi + 0x1c], shutdown
mov ebx, 0xffffffff
jmp 0x140036b37
mov dword [rdi + 0x1c], SafeArrayAllocDescriptor
mov ebx, 0xffffffff
jmp 0x140036b37
cmp qword [rax + 0x80], rbx
je 0x140036b74
mov rcx, qword [rsp + 0x70]
mov r9, r13
mov r8, r15
xor edx, edx
call qword [rsp + 0x78]
cmp rax, r14
je 0x140036aca
mov ecx, 0xffffffff
mov dword [rdi + 0x1c], SafeArrayAllocDescriptor
mov dword [rsp + 0x40], ecx
jmp 0x140036b28
cmp dword [rsp + 0x3090], ebx
jne 0x140036b26
mov rdx, r15
test r15, r15
je 0x140036b26
mov ebx, 0xffffffff
test r14, r14
je 0x140036b1f
lea r15, [0x14005df40]
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 0x140036af0
not ebx
mov ecx, r12d
jmp 0x140036b28
mov ecx, ebx
mov r12, r13
test ecx, ecx
je 0x140036c4b
mov ebx, dword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], 0
jne 0x140036b56
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x40]
call qword [rdi + 0x30]
test r14, r14
je 0x140036b65
mov rcx, qword [rdi + 0x40]
mov rdx, r14
call qword [rdi + 0x30]
test ebx, ebx
mov eax, 0
sete al
jmp 0x140036867
test rbp, rbp
je 0x140036c4b
mov r14, qword [rsp + 0x60]
lea r15, [0x14005df40]
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 0x140036a73
cmp dword [rsp + 0x3090], 0
jne 0x140036c12
mov rdx, rsi
mov r8, r14
test r14, r14
jne 0x140036bcc
xor ebx, ebx
jmp 0x140036c12
not ebx
test rsi, rsi
je 0x140036c10
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 0x140036be0
not ebx
mov rcx, qword [rsp + 0x70]
mov r9, rsi
mov r8, r14
mov rdx, r12
call qword [rsp + 0x78]
cmp rax, rsi
jne 0x140036a84
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 0x140036b90
cmp dword [rsp + 0x3090], 0
jne 0x140036b33
cmp r12, qword [rsp + 0xc0]
je 0x140036c74
mov dword [rdi + 0x1c], reloc.WS2_32.dll_listen
mov ebx, 0xffffffff
jmp 0x140036b37
cmp ebx, dword [rsp + 0xb0]
je 0x140036b33
mov dword [rdi + 0x1c], reloc.WS2_32.dll_inet_addr
mov ebx, 0xffffffff
jmp 0x140036b37
mov dword [rdi + 0x1c], 9
xor eax, eax
jmp 0x140036877
mov eax, 1
jmp 0x14003687f
mov dword [rcx + 0x1c], 0x18
xor eax, eax
jmp 0x140036887