Function at 0x180016b70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rsi
push r14
sub rsp, 0x88
mov r14, qword [rsp + 0xc0]
mov rsi, r9
mov r9, rcx
test r14, r14
jne 0x180016ba7
mov eax, 0x80004005
add rsp, 0x88
pop r14
pop rsi
ret
mov eax, edx
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x80], rbp
xor ebp, ebp
mov qword [rsp + 0x70], r12
lea rcx, [rax + rax*2]
mov qword [rsp + 0x68], r13
mov rax, qword [r9 + 0x1b8]
mov r9, qword [rax + rcx*8 + 8]
mov r13, qword [rax + rcx*8]
mov r12d, dword [rax + rcx*8 + 0x10]
mov eax, dword [rax + rcx*8 + 0x14]
mov rcx, r14
mov dword [rsp + 0x34], eax
mov rax, qword [r14]
mov qword [rsp + 0x48], r9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
call qword [rax + 0x38]
cmp eax, 1
je 0x180016e00
test eax, eax
js 0x180016dfe
mov qword [rsp + 0x78], rdi
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x60], r15
or edi, 0xffffffff
mov r15d, ebp
mov qword [rsp + 0xc0], rbp
call fcn.180010870
mov rbx, qword [rsp + 0xc0]
test r13, r13
je 0x180016daf
nop word [rax + rax]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x28], rdx
mov eax, 0x20000
mov qword [rsp + 0x38], rbp
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rcx, r13
mov rdx, qword [rsp + 0x48]
sub rcx, r15
cmp rcx, rax
mov r9, r15
cmovb eax, ecx
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x1a0]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x180016d9d
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x180016d9d
mov r8d, dword [rsp + 0xc0]
test r8d, r8d
je 0x180016d9d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180016cff
mov dword [rsp + 0x30], ebp
lea r9, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x180016dab
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x30], eax
jne 0x180016d87
lea rax, [r15 + rsi]
mov rcx, r14
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
mov rax, qword [r14]
call qword [rax + 0x20]
mov esi, eax
test eax, eax
jne 0x180016de5
mov r9d, dword [rsp + 0xc0]
test r12d, r12d
je 0x180016d72
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x180016d70
test r9d, r9d
je 0x180016d70
test rbx, rbx
je 0x180016d70
test r9d, r9d
je 0x180016d72
mov r8d, r9d
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx ecx, dil
xor rcx, rax
mov eax, edi
shr eax, 8
mov edi, dword [rbx + rcx*4]
xor edi, eax
sub r8, 1
jne 0x180016d50
jmp 0x180016d72
mov edi, ebp
add r15, r9
cmp r15, r13
jae 0x180016daf
mov rsi, qword [rsp + 0xb8]
jmp 0x180016c50
mov rdi, qword [r14]
call fcn.180002050
mov edx, eax
mov rcx, r14
call qword [rdi + 0x28]
test eax, eax
jne 0x180016dab
jmp 0x180016de3
mov rax, qword [r14]
mov edx, 0xe00e0004
mov rcx, r14
call qword [rax + 0x28]
mov ebp, eax
jmp 0x180016de3
test r12d, r12d
je 0x180016dd2
not r12d
cmp edi, r12d
je 0x180016dd2
mov rax, qword [r14]
mov edx, 0xe00e0003
mov rcx, r14
call qword [rax + 0x28]
mov esi, eax
test eax, eax
je 0x180016de3
jmp 0x180016de5
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x28]
mov esi, eax
test eax, eax
jne 0x180016de5
mov esi, ebp
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
test rbx, rbx
je 0x180016e02
mov rcx, rbx
call fcn.18007294c
jmp 0x180016e02
mov ebp, eax
mov esi, ebp
mov rcx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa8]
test rcx, rcx
je 0x180016e2c
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov eax, esi
add rsp, 0x88
pop r14
pop rsi
ret