Function at 0x180185d80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x120
call fcn.1800b9c10
sub rsp, rax
mov rax, qword [0x1802e4710]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, qword [rcx + 0x70]
mov r14, r9
mov r13, r8
mov rbx, qword [rsi + 0xc8]
mov rdi, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rbx + 0x10]
cmp r9, rax
je 0x180185dd1
or eax, 0xffffffff
jmp 0x1801860ae
mov qword [rsp + 0x118], rbp
mov qword [rsp + 0x110], r12
lea rax, [rsp + 0x50]
neg rax
xor ebp, ebp
mov qword [rsp + 0x108], r15
and eax, 0xf
mov r9, rsi
lea rcx, [rsp + rax + 0x50]
mov qword [rsp + 0x30], rcx
lea r12, [rcx + 0x40]
lea r15, [rcx + 0x30]
cmp rbx, 0x40
ja 0x180185f32
mov edx, 0x80
lea rax, [rsi + 0x20]
mov qword [rsp + 0x40], rdx
mov r8d, edx
lea rdx, [0x18028b480]
mov dword [rax], ebp
mov qword [rsp + 0x20], rax
call fcn.1801d2870
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.1801c1d30
mov rax, qword [rsi + 0x94]
mov dword [rsi + 0x70], ebp
mov qword [r15], rax
mov rax, qword [rsi + 0x9c]
mov qword [r15 + 8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], select
mov qword [rsi + 0xb0], rbx
cmp dword [rax + 0x10], ebp
je 0x180185ebc
test rbx, rbx
je 0x180185efe
mov r8, r13
mov r9, rdi
mov rdx, r12
sub r8, r12
sub r9, r12
mov rbp, rbx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
movzx eax, byte [rdx]
inc rdx
xor ecx, eax
dec rbx
mov byte [rdx - 1], cl
mov byte [r9 + rdx - 1], cl
jne 0x180185ea0
jmp 0x180185efe
test rbx, rbx
je 0x180185efe
mov r9, r13
mov r10, rdi
mov r8, r12
sub r9, rdi
sub r10, r12
mov rbp, rbx
nop word [rax + rax]
lea rcx, [r8 + r10]
inc r8
movzx edx, byte [rcx + r9]
movzx eax, dl
xor al, byte [r8 - 1]
dec rbx
mov byte [r8 - 1], dl
mov byte [rcx], al
jne 0x180185ee0
mov rbx, rbp
lea rcx, [r12 + rbp]
xor edx, edx
neg rbx
add r13, rbp
add rdi, rbp
and ebx, 0xf
mov r8d, ebx
call fcn.1800b45b0
lea r11, [rbx + rbp]
lea rbx, [rsi + 0xd0]
lea rbp, [r11 + 0x10]
add r12, r11
jmp 0x18018601b
mov eax, 0x40
lea r15, [rsi + 0x20]
lea rdx, [0x18028b480]
mov r8d, eax
mov dword [r15], ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r15
call fcn.1801d2870
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.1801c1d30
lea rdx, [rsi + 0x94]
lea rcx, [rsi + 0xd0]
mov r8d, reloc.WS2_32.dll_recv
mov dword [r15], 1
mov dword [rsi + 0x70], ebp
call fcn.1801c1e90
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], select
mov qword [rsi + 0xb0], rbx
mov r8, rbx
mov rdx, r13
cmp dword [rax + 0x10], ebp
je 0x180185fd1
mov r9, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1801d2870
lea rcx, [rsi + 0xd0]
mov r8, rbx
mov rdx, rdi
call fcn.1801c1e90
jmp 0x180185ff3
lea rcx, [rsi + 0xd0]
call fcn.1801c1e90
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1801d2870
add r13, rbx
add rdi, rbx
neg rbx
and ebx, 0xf
lea rdx, [0x18028b480]
mov r8d, ebx
lea rbx, [rsi + 0xd0]
mov rcx, rbx
call fcn.1801c1e90
mov r15, r12
mov rax, qword [rsi + 0xa8]
lea r8, [rbp + 0x10]
mov rdx, r15
mov qword [r12], rax
mov rax, qword [rsi + 0xb0]
mov rcx, rbx
mov qword [r12 + 8], rax
call fcn.1801c1e90
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.1800ca7c0
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x110]
cmp dword [rbp + 0x10], 0
lea rdx, [rsi + 0x84]
jne 0x18018606d
mov rdx, r15
mov rcx, rbx
call fcn.1801c1f80
mov qword [rsi + 0xc8], 0xffffffffffffffff
cmp dword [rbp + 0x10], 0
mov rbp, qword [rsp + 0x118]
je 0x1801860cd
mov rax, qword [rsi + 0x84]
mov qword [rdi], rax
mov rax, qword [rsi + 0x8c]
mov qword [rdi + 8], rax
mov eax, r14d
mov r15, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1800acfa0
add rsp, 0x120
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, r15
call fcn.1800d8df0
test eax, eax
je 0x1801860a3
sub rdi, r14
lea r8, [r14 - 0x10]
xor edx, edx
lea rcx, [rdi + 0x10]
call fcn.1800b45b0
or eax, 0xffffffff
jmp 0x1801860a6