Function at 0x1800044c0
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.180003fd0
test eax, eax
jne 0x180004779
mov ecx, dword [rsp + 0xc0]
call fcn.180004340
test eax, eax
jne 0x180004779
lea rcx, [0x180000000]
mov ebp, 0
mov rax, rdi
shl rax, 7
mov r12d, dword [rax + rcx + 0x4610c]
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 0x180004774
mov r13d, ebp
sub r13d, ecx
lea eax, [r13 - 2]
cmp edx, eax
ja 0x180004774
mov ecx, ebp
call fcn.180019d3c
mov ecx, ebp
mov rsi, rax
call fcn.180019d3c
mov ecx, r12d
mov r15, rax
call fcn.180019d3c
mov r14, rax
test rsi, rsi
je 0x180004753
test r15, r15
je 0x18000474b
test rax, rax
je 0x18000474b
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x30], ebp
mov r9, rsi
test rax, rax
je 0x1800045c0
mov r8d, dword [rsp + 0xa8]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov qword [rsp + 0x20], rcx
jmp 0x1800045d0
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov ecx, edi
call fcn.180001770
mov ebx, eax
test eax, eax
jne 0x18000472f
mov ebx, dword [rsp + 0x98]
lea rcx, [rsi + r12]
xor edx, edx
sub r13d, ebx
sub r13d, 2
mov r8d, r13d
call fcn.180019ff0
mov rdx, qword [rsp + 0x90]
lea ecx, [r12 + r13]
mov byte [rcx + rsi], 1
inc ecx
mov r8d, ebx
add rcx, rsi
call fcn.18001a330
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 + 0x47128]
cmp eax, r12d
je 0x180004655
mov ebx, 9
jmp 0x18000472f
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.1800053a4
mov ebx, eax
test eax, eax
jne 0x18000472f
test r13d, r13d
je 0x18000469b
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 0x18000468e
mov r9, r15
mov r8d, r13d
mov rdx, rsi
mov ecx, edi
mov dword [rsp + 0x20], r12d
call fcn.1800053a4
mov ebx, eax
test eax, eax
jne 0x18000472f
mov r9, r12
test r12d, r12d
je 0x1800046d7
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 0x1800046ca
mov rax, qword [rsp + 0xd8]
cmp dword [rax], ebp
jae 0x1800046ec
mov dword [rax], ebp
mov ebx, 6
jmp 0x18000472f
mov rbx, qword [rsp + 0xd0]
mov r8, r9
mov rdx, r14
lea rcx, [rbx + 1]
mov byte [rbx], 0
call fcn.18001a330
lea edi, [r12 + 1]
mov r8d, r13d
mov ecx, edi
mov rdx, rsi
add rcx, rbx
call fcn.18001a330
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.180019cfc
mov rcx, r15
call fcn.180019cfc
mov rcx, rsi
call fcn.180019cfc
mov eax, ebx
jmp 0x180004779
mov rcx, rsi
call fcn.180019cfc
test r15, r15
je 0x180004760
mov rcx, r15
call fcn.180019cfc
test r14, r14
je 0x18000476d
mov rcx, r14
call fcn.180019cfc
mov eax, reloc.WS2_32.dll_listen
jmp 0x180004779
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