Function at 0x140036f40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3000
call fcn.140056950
sub rsp, rax
mov rax, qword [0x14006c408]
xor rax, rsp
mov qword [rsp + 0x2ff0], rax
mov rax, qword [rsp + 0x3078]
xor r12d, r12d
mov rbx, rcx
mov r10d, edx
mov rcx, qword [rsp + 0x3068]
mov r13, r9
mov qword [rsp + 0x68], rcx
mov r15, r8
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
test rbx, rbx
je 0x140037468
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x140037461
test r9, r9
je 0x140036fc1
test r8, r8
je 0x140037461
cmp qword [rsp + 0x3070], r12
je 0x140036fd4
test rcx, rcx
je 0x140037461
cmp qword [rbx + 0x48], r12
je 0x140037461
test rax, rax
je 0x140037074
lea rcx, [rsp + 0x70]
mov edx, 8
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140036ff1
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
mov rax, qword [rax + 0x50]
movups xmmword [rcx + 0x30], xmm1
movups xmmword [rcx + 0x40], xmm0
mov qword [rcx + 0x50], rax
jmp 0x1400370a7
cmp r10d, dword [rbx + 0x10]
jae 0x140037087
mov rax, qword [rdx + 0x20]
mov r8d, dword [rax + r10*4]
add r8, qword [rdx]
jmp 0x14003708a
mov r8, r12
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r12
mov edx, r10d
mov rcx, rbx
call fcn.140035c10
test eax, eax
je 0x140037468
cmp dword [rsp + 0xbc], r12d
jne 0x14003745a
mov rsi, qword [rsp + 0x98]
test rsi, rsi
je 0x14003745a
test byte [rsp + 0x84], 0x61
je 0x1400370dc
mov dword [rbx + 0x1c], 5
jmp 0x140037468
mov edi, dword [rsp + 0x3060]
and edi, 0x400
jne 0x140037106
mov eax, 0xfff7
test word [rsp + 0x86], ax
je 0x140037106
mov dword [rbx + 0x1c], 4
jmp 0x140037468
mov rbp, qword [rsp + 0xa0]
test edi, edi
mov r14, rbp
cmovne r14, rsi
cmp r13, r14
jae 0x140037128
mov dword [rbx + 0x1c], 0x1a
jmp 0x140037468
mov r13, qword [rsp + 0xb0]
lea r8, [rsp + 0x2fd0]
mov rcx, qword [rbx + 0x60]
mov rdx, r13
mov r9d, SafeArrayAllocDescriptor
call qword [rbx + 0x48]
cmp rax, 0x1e
jne 0x140037451
cmp dword [rsp + 0x2fd0], 0x4034b50
jne 0x140037448
movzx eax, word [rsp + 0x2fea]
movzx ecx, word [rsp + 0x2fec]
add r13, rax
add rcx, 0x1e
add r13, rcx
lea rax, [rsi + r13]
cmp rax, qword [rbx]
ja 0x140037448
test edi, edi
jne 0x1400373c7
cmp word [rsp + 0x86], r12w
je 0x1400373c7
mov rax, qword [rbx + 0x68]
mov dword [rsp + 0x4d0], r12d
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x1400371d4
mov rdi, rsi
add rcx, r13
mov qword [rsp + 0x40], rcx
mov r14, rdi
mov qword [rsp + 0x3070], rdi
mov rsi, r12
jmp 0x140037200
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400372d3
mov r14, qword [rsp + 0x3070]
test r14, r14
je 0x140037468
mov rcx, rax
mov qword [rsp + 0x40], rax
mov rdi, r12
nop
mov rax, rbp
sub rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
test rdi, rdi
jne 0x14003724d
mov rax, qword [rbx + 0x68]
cmp qword [rax + 0x80], r12
jne 0x14003724d
mov r8, rcx
cmp r14, rsi
mov rcx, qword [rbx + 0x60]
mov rdi, rsi
cmovb rdi, r14
mov rdx, r13
mov r9, rdi
call qword [rbx + 0x48]
cmp rax, rdi
jne 0x140037314
add r13, rdi
mov qword [rsp + 0x48], r12
sub rsi, rdi
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x58]
mov ecx, 4
mov qword [rsp + 0x58], rdi
mov eax, 6
test rsi, rsi
mov r9, r15
cmovne ecx, eax
mov rax, qword [rsp + 0x50]
add rdx, qword [rsp + 0x48]
add rax, r15
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x4d0]
mov qword [rsp + 0x20], rax
call fcn.14003cc00
mov rcx, qword [rsp + 0x58]
mov r14d, eax
mov rax, qword [rsp + 0x50]
sub rdi, rcx
add rax, qword [rsp + 0x60]
add qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
cmp r14d, 1
jne 0x14003731d
mov r14, qword [rsp + 0x3070]
mov rcx, qword [rsp + 0x40]
jmp 0x140037200
mov rcx, qword [rbx + 0x40]
mov r14d, 0x2000
cmp rsi, r14
mov edx, 1
cmovb r14, rsi
mov r8, r14
mov qword [rsp + 0x3070], r14
call qword [rbx + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, rax
test rax, rax
jne 0x1400371fb
mov dword [rbx + 0x1c], reloc.WS2_32.dll_recv
jmp 0x140037468
mov dword [rbx + 0x1c], reloc.WS2_32.dll_inet_addr
jmp 0x140037392
test r14d, r14d
jne 0x140037398
cmp rax, rbp
je 0x140037330
mov dword [rbx + 0x1c], reloc.WS2_32.dll_listen
jmp 0x140037392
test r15, r15
jne 0x14003733a
mov eax, r12d
jmp 0x140037382
mov eax, 0xffffffff
test rbp, rbp
je 0x140037380
lea r8, [0x14005df40]
nop dword [rax + rax]
movzx edx, byte [r15]
lea r15, [r15 + 1]
mov ecx, eax
shr eax, 4
xor rcx, rdx
shr rdx, 4
and ecx, 0xf
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor rcx, rdx
xor eax, dword [r8 + rcx*4]
sub rbp, 1
jne 0x140037350
not eax
cmp eax, dword [rsp + 0x90]
je 0x140037398
mov dword [rbx + 0x1c], select
mov r14d, 0xffffffff
mov rcx, qword [rbx + 0x68]
cmp qword [rcx + 0x80], r12
jne 0x1400373b8
cmp qword [rsp + 0x68], r12
jne 0x1400373b8
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
test r14d, r14d
sete r12b
mov eax, r12d
jmp 0x14003746a
mov rcx, qword [rbx + 0x60]
mov r9, r14
mov r8, r15
mov rdx, r13
call qword [rbx + 0x48]
cmp rax, r14
jne 0x140037451
test edi, edi
jne 0x14003745a
test r15, r15
je 0x140037435
mov eax, 0xffffffff
test rbp, rbp
je 0x140037430
lea r8, [0x14005df40]
nop word [rax + rax]
movzx edx, byte [r15]
lea r15, [r15 + 1]
mov ecx, eax
shr eax, 4
xor rcx, rdx
shr rdx, 4
and ecx, 0xf
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor rcx, rdx
xor eax, dword [r8 + rcx*4]
sub rbp, 1
jne 0x140037400
not eax
mov r12d, eax
cmp r12d, dword [rsp + 0x90]
je 0x14003745a
mov dword [rbx + 0x1c], select
jmp 0x140037468
mov dword [rbx + 0x1c], 9
jmp 0x140037468
mov dword [rbx + 0x1c], shutdown
jmp 0x140037468
mov eax, 1
jmp 0x14003746a
mov dword [rbx + 0x1c], 0x18
xor eax, eax
mov rcx, qword [rsp + 0x2ff0]
xor rcx, rsp
call fcn.140056920
mov rbx, qword [rsp + 0x3058]
add rsp, 0x3000
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret