Function at 0x18000460c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
movsxd rdi, dword [rsp + 0xc8]
mov ecx, edi
call fcn.18000411c
test eax, eax
jne 0x1800048c5
mov ecx, dword [rsp + 0xc0]
call fcn.18000448c
test eax, eax
jne 0x1800048c5
lea rcx, [0x180000000]
mov ebp, 0
mov rax, rdi
shl rax, 7
mov r12d, dword [rax + rcx + 0x45d0c]
mov eax, dword [rsp + 0xb0]
test al, 7
lea ecx, [r12 + r12]
setne bpl
shr eax, 3
add ebp, eax
lea eax, [rbp - 2]
cmp ecx, eax
jae 0x1800048c0
mov r13d, ebp
sub r13d, ecx
lea eax, [r13 - 2]
cmp edx, eax
ja 0x1800048c0
mov ecx, ebp
call fcn.180019df0
mov ecx, ebp
mov rsi, rax
call fcn.180019df0
mov ecx, r12d
mov r15, rax
call fcn.180019df0
mov r14, rax
test rsi, rsi
je 0x18000489f
test r15, r15
je 0x180004897
test rax, rax
je 0x180004897
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x30], ebp
mov r9, rsi
test rax, rax
je 0x18000470c
mov r8d, dword [rsp + 0xa8]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov qword [rsp + 0x20], rcx
jmp 0x18000471c
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov ecx, edi
call fcn.1800018bc
mov ebx, eax
test eax, eax
jne 0x18000487b
mov ebx, dword [rsp + 0x98]
lea rcx, [rsi + r12]
xor edx, edx
sub r13d, ebx
sub r13d, 2
mov r8d, r13d
call fcn.18001a0a0
mov rdx, qword [rsp + 0x90]
lea ecx, [r12 + r13]
mov byte [rcx + rsi], 1
inc ecx
mov r8d, ebx
add rcx, rsi
call fcn.18001a490
movsxd rax, dword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
lea r9, [rax + rax*4]
lea rax, [0x180000000]
mov edx, r12d
add r9, r9
mov rcx, r14
call qword [rax + r9*8 + 0x46d28]
cmp eax, r12d
je 0x1800047a1
mov ebx, 9
jmp 0x18000487b
mov r13d, ebp
mov r9, r15
mov r8d, r12d
sub r13d, r12d
mov rdx, r14
mov ecx, edi
dec r13d
mov dword [rsp + 0x20], r13d
call fcn.1800054f0
mov ebx, eax
test eax, eax
jne 0x18000487b
test r13d, r13d
je 0x1800047e7
mov rcx, r15
mov rdx, rsi
mov r8d, r13d
sub rcx, rsi
mov al, byte [rcx + rdx]
xor byte [rdx], al
inc rdx
dec r8
jne 0x1800047da
mov r9, r15
mov r8d, r13d
mov rdx, rsi
mov ecx, edi
mov dword [rsp + 0x20], r12d
call fcn.1800054f0
mov ebx, eax
test eax, eax
jne 0x18000487b
mov r9, r12
test r12d, r12d
je 0x180004823
mov rdx, r15
mov rcx, r14
mov r8, r12
sub rdx, r14
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
dec r8
jne 0x180004816
mov rax, qword [rsp + 0xd8]
cmp dword [rax], ebp
jae 0x180004838
mov dword [rax], ebp
mov ebx, 6
jmp 0x18000487b
mov rbx, qword [rsp + 0xd0]
mov r8, r9
mov rdx, r14
lea rcx, [rbx + 1]
mov byte [rbx], 0
call fcn.18001a490
lea edi, [r12 + 1]
mov r8d, r13d
mov ecx, edi
mov rdx, rsi
add rcx, rbx
call fcn.18001a490
mov rcx, qword [rsp + 0xd8]
sub edi, r12d
lea eax, [rbp - 1]
add eax, edi
xor ebx, ebx
mov dword [rcx], eax
mov rcx, r14
call fcn.180019db0
mov rcx, r15
call fcn.180019db0
mov rcx, rsi
call fcn.180019db0
mov eax, ebx
jmp 0x1800048c5
mov rcx, rsi
call fcn.180019db0
test r15, r15
je 0x1800048ac
mov rcx, r15
call fcn.180019db0
test r14, r14
je 0x1800048b9
mov rcx, r14
call fcn.180019db0
mov eax, reloc.WS2_32.dll_listen
jmp 0x1800048c5
mov eax, reloc.WS2_32.dll_shutdown
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret