Function at 0x1800043f0
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.180003f00
test eax, eax
jne 0x1800046a9
mov ecx, dword [rsp + 0xc0]
call fcn.180004270
test eax, eax
jne 0x1800046a9
lea rcx, [0x180000000]
mov ebp, 0
mov rax, rdi
shl rax, 7
mov r12d, dword [rax + rcx + 0x67cec]
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 0x1800046a4
mov r13d, ebp
sub r13d, ecx
lea eax, [r13 - 2]
cmp edx, eax
ja 0x1800046a4
mov ecx, ebp
call fcn.180035368
mov ecx, ebp
mov rsi, rax
call fcn.180035368
mov ecx, r12d
mov r15, rax
call fcn.180035368
mov r14, rax
test rsi, rsi
je 0x180004683
test r15, r15
je 0x18000467b
test rax, rax
je 0x18000467b
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x30], ebp
mov r9, rsi
test rax, rax
je 0x1800044f0
mov r8d, dword [rsp + 0xa8]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov qword [rsp + 0x20], rcx
jmp 0x180004500
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov ecx, edi
call fcn.1800016a0
mov ebx, eax
test eax, eax
jne 0x18000465f
mov ebx, dword [rsp + 0x98]
lea rcx, [rsi + r12]
xor edx, edx
sub r13d, ebx
sub r13d, 2
mov r8d, r13d
call fcn.180039f30
mov rdx, qword [rsp + 0x90]
lea ecx, [r12 + r13]
mov byte [rcx + rsi], 1
inc ecx
mov r8d, ebx
add rcx, rsi
call fcn.18003c770
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 + 0x68d08]
cmp eax, r12d
je 0x180004585
mov ebx, 9
jmp 0x18000465f
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.1800052d4
mov ebx, eax
test eax, eax
jne 0x18000465f
test r13d, r13d
je 0x1800045cb
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 0x1800045be
mov r9, r15
mov r8d, r13d
mov rdx, rsi
mov ecx, edi
mov dword [rsp + 0x20], r12d
call fcn.1800052d4
mov ebx, eax
test eax, eax
jne 0x18000465f
mov r9, r12
test r12d, r12d
je 0x180004607
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 0x1800045fa
mov rax, qword [rsp + 0xd8]
cmp dword [rax], ebp
jae 0x18000461c
mov dword [rax], ebp
mov ebx, 6
jmp 0x18000465f
mov rbx, qword [rsp + 0xd0]
mov r8, r9
mov rdx, r14
lea rcx, [rbx + 1]
mov byte [rbx], 0
call fcn.18003c770
lea edi, [r12 + 1]
mov r8d, r13d
mov ecx, edi
mov rdx, rsi
add rcx, rbx
call fcn.18003c770
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.180035328
mov rcx, r15
call fcn.180035328
mov rcx, rsi
call fcn.180035328
mov eax, ebx
jmp 0x1800046a9
mov rcx, rsi
call fcn.180035328
test r15, r15
je 0x180004690
mov rcx, r15
call fcn.180035328
test r14, r14
je 0x18000469d
mov rcx, r14
call fcn.180035328
mov eax, reloc.WS2_32.dll_listen
jmp 0x1800046a9
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