Function at 0x1800598f0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x390
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r13
mov r12, rcx
mov rdi, r8
mov rbx, rdx
mov r13d, 0x1a0
lea rcx, [r11 - 0x1e8]
mov r8, r13
xor edx, edx
mov qword [r11 - 0x30], r14
call fcn.1800cc600
mov r14d, 0x120
lea rcx, [rsp + 0x30]
mov r8, r14
xor edx, edx
call fcn.1800cc600
mov rax, rdi
mov r11, rdi
shr rax, 0x10
shr r11, 0x18
lea rcx, [rsp + 0x1c8]
mov byte [rsp + 0x1c1], al
mov rax, rdi
mov r8, rdi
shr rax, 8
mov rdx, rbx
mov byte [rsp + 0x1c0], r11b
mov byte [rsp + 0x1c3], dil
mov byte [rsp + 0x1c7], Ordinal_50
mov byte [rsp + 0x1c2], al
call fcn.1800cbb10
lea rbx, [rdi + 0x19]
xor ebp, ebp
mov byte [rsp + rdi + 0x1c8], 0x80
mov eax, ebp
lea rcx, [rsp + 0x190]
mov qword [rsp + 0x20], rbx
nop word [rax + rax]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x20
jl 0x1800599d0
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x30]
mov r8d, pe_nt_image_headers64
call fcn.180050160
mov esi, reloc.WS2_32.dll_recv
mov r11d, eax
test eax, eax
jne 0x180059b79
mov qword [rsp + 0x360], r15
movzx r15d, byte [rsp + 0x1b3]
nop word [rax + rax]
xor eax, eax
mov rdi, rbx
mov dword [rsp + 0x150], eax
mov dword [rsp + 0x154], eax
mov dword [rsp + 0x158], eax
mov dword [rsp + 0x15c], eax
test rbx, rbx
je 0x180059abf
lea rbx, [rsp + 0x1b0]
lea rax, [rsp + 0x150]
sub rbx, rax
nop dword [rax]
lea rcx, [rsp + 0x150]
mov rdx, rsi
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
xor byte [rcx - 1], al
sub rdx, 1
jne 0x180059a70
mov rax, rdi
add rbx, rsi
cmp rdi, rsi
cmovae rax, rsi
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x30]
sub rdi, rax
call fcn.180050a20
mov r11d, eax
test eax, eax
jne 0x180059b71
test rdi, rdi
jne 0x180059a60
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x150]
inc r15b
add rbp, 0x10
cmp rbp, 0x30
mov rax, qword [rcx]
mov byte [rsp + 0x1b3], r15b
mov qword [rsp + rbp + 0x150], rax
mov rax, qword [rcx + 8]
mov qword [rsp + rbp + 0x158], rax
jl 0x180059a20
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x30]
mov r8d, pe_nt_image_headers64
call fcn.180050160
mov r11d, eax
test eax, eax
jne 0x180059b71
mov rbx, r12
xor r13d, r13d
nop dword [rax]
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.180050a20
mov r11d, eax
test eax, eax
jne 0x180059b6b
lea rcx, [rsp + 0x180]
add r13d, esi
mov eax, dword [rcx]
mov dword [rbx], eax
mov eax, dword [rcx + 4]
mov dword [rbx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rbx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0xc], eax
add rbx, rsi
cmp r13d, 0x30
jl 0x180059b20
mov r13d, 0x1a0
mov r15, qword [rsp + 0x360]
mov rdi, qword [rsp + 0x378]
mov rbp, qword [rsp + 0x388]
mov rbx, qword [rsp + 0x3b8]
lea rax, [rsp + 0x30]
nop word [rax + rax]
mov byte [rax], 0
inc rax
sub r14, 1
jne 0x180059ba0
mov r14, qword [rsp + 0x368]
lea rax, [rsp + 0x1b0]
nop dword [rax]
mov byte [rax], 0
inc rax
sub r13, 1
jne 0x180059bc0
mov r13, qword [rsp + 0x370]
mov eax, Ordinal_50
lea rdx, [rsp + 0x160]
mov rcx, rax
mov byte [rdx], 0
inc rdx
sub rcx, 1
jne 0x180059be4
mov ecx, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x190]
nop dword [rax]
mov byte [rdx], 0
inc rdx
sub rcx, 1
jne 0x180059c00
lea rcx, [rsp + 0x150]
mov byte [rcx], 0
inc rcx
sub rsi, 1
jne 0x180059c14
mov rsi, qword [rsp + 0x380]
test r11d, r11d
je 0x180059c3e
nop dword [rax]
mov byte [r12], 0
inc r12
sub rax, 1
jne 0x180059c30
mov eax, r11d
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x390
pop r12
ret