Function at 0x1800053e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x1802380a6]
call fcn.180141d70
nop
mov dword [rbp + 4], 0
cmp qword [rbp + 0x3c0], 0
je 0x180005458
mov rax, qword [rbp + 0x3c0]
mov qword [rax], 0
cmp qword [rbp + 0x3c8], 0
je 0x180005470
mov rax, qword [rbp + 0x3c8]
mov qword [rax], 0
cmp qword [rbp + 0x3d0], 0
je 0x180005488
mov rax, qword [rbp + 0x3d0]
mov qword [rax], 0
cmp qword [rbp + 0x3b8], 0
jne 0x18000549c
mov eax, 0x57
jmp 0x180005a63
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021f878], eax
je 0x1800054b4
mov eax, 0x10dd
jmp 0x180005a63
cmp dword [0x18021f87c], 0
je 0x1800054c8
mov eax, dword [0x18021f87c]
jmp 0x180005a63
cmp qword [rbp + 0x3b0], 0
jne 0x1800054dc
mov eax, 6
jmp 0x180005a63
mov rax, qword [rbp + 0x3b0]
cmp qword [rax], 0
jne 0x18000550f
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x18021f87c], eax
mov rax, qword [rbp + 0x3b0]
mov qword [0x18021f880], rax
mov eax, dword [rbp + 4]
jmp 0x180005a63
mov rax, qword [rbp + 0x3b0]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.180005aa0
mov qword [rbp + 0x28], rax
xor edx, edx
mov rcx, qword [rbp + 0x3b8]
call fcn.180005aa0
mov qword [rbp + 0x3b8], rax
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x3b8], rax
jne 0x180005571
cmp dword [0x18021f870], 0
je 0x18000556d
jmp 0x1800055db
jmp 0x1800055d2
cmp qword [rbp + 0x3c8], 0
je 0x180005589
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
cmp qword [rbp + 0x3d0], 0
je 0x1800055a4
mov rax, qword [rbp + 0x3d0]
mov rcx, qword [rbp + 0x3b8]
mov qword [rax], rcx
mov ecx, 0x30
call fcn.180141a80
mov qword [rbp + 0x348], rax
mov rax, qword [rbp + 0x348]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x180005677
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x18021f87c], eax
cmp qword [rbp + 0x48], 0
je 0x18000560c
mov rcx, qword [rbp + 0x48]
call fcn.1800042a0
nop
mov qword [rbp + 0x48], 0
cmp qword [rbp + 0x3c0], 0
je 0x18000560c
mov rax, qword [rbp + 0x3c0]
mov qword [rax], 0
cmp qword [rbp + 0x68], 0
je 0x180005661
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x368], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x368]
call fcn.180141ae0
cmp qword [rbp + 0x368], 0
jne 0x180005646
mov qword [rbp + 0x378], 0
jmp 0x180005659
mov qword [rbp + 0x68], 0x8123
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x68], 0
mov rax, qword [rbp + 0x3b0]
mov qword [0x18021f880], rax
mov eax, dword [rbp + 4]
jmp 0x180005a63
mov rcx, qword [rbp + 0x28]
call fcn.180003ac0
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x180005697
mov dword [rbp + 4], 8
jmp 0x1800055d2
cmp qword [rbp + 0x3c0], 0
je 0x1800056af
mov rax, qword [rbp + 0x3c0]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp + 0x48]
add rax, 0x40
mov r8d, 8
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140D.dll_memset
nop
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
add rax, 0x1e
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x104], 5
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jae 0x180005847
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x148], rax
mov dword [rbp + 0x164], 0
lea rax, [rbp + 0x164]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x88]
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0xa8]
call fcn.18013bfa0
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x88]
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rbp + 0x164]
add rcx, qword [rbp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x124]
movzx ecx, byte [rbp + 0xe4]
and cl, 7
mov rdx, qword [rbp + 0x48]
movzx eax, byte [rdx + rax + 0x40]
and al, 0xf8
or al, cl
mov ecx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x48]
mov byte [rdx + rcx + 0x40], al
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xa8]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x124]
and al, 0x1f
shl al, 3
mov rdx, qword [rbp + 0x48]
movzx ecx, byte [rdx + rcx + 0x40]
and cl, 7
or cl, al
movzx eax, cl
mov ecx, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x48]
mov byte [rdx + rcx + 0x40], al
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x124]
cmp rax, 8
jb 0x180005830
jmp 0x180005847
mov rcx, qword [rbp + 0x148]
call fcn.180003f00
test eax, eax
je 0x180005842
jmp 0x180005847
jmp 0x18000570e
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jae 0x1800058a6
mov rcx, qword [rbp + 0x88]
call fcn.180004570
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0
jne 0x180005872
jmp 0x1800058a6
movsxd rax, dword [rbp + 0x184]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0xe4], eax
jmp 0x180005847
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jb 0x1800058c0
mov eax, dword [rbp + 0x124]
cmp rax, 8
jbe 0x1800058dc
mov dword [rbp + 4], 9
cmp dword [0x18021f870], 0
je 0x1800058d7
jmp 0x1800055db
jmp 0x1800055d2
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xa8], rax
jbe 0x1800058ed
int3
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xa8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x48]
mov byte [rcx + 0x1e], al
mov rax, qword [rbp + 0x48]
movzx ecx, byte [rbp + 0xe4]
mov byte [rax + 0x3e], cl
mov eax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x48]
add rcx, 0x20
mov r8d, eax
mov rdx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memcpy
nop
mov eax, dword [rbp + 0xe4]
mov ecx, dword [rbp + 0x104]
mov edx, 0x1e
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jbe 0x180005956
mov dword [rbp + 4], 6
jmp 0x1800055d2
mov eax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x48]
mov qword [rcx + 0x48], rax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x3b8]
mov qword [rax + 0x50], rcx
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax + 0x1e]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x48]
add rax, 0x48
mov rdx, rax
mov rcx, qword [rbp + 0xa8]
call fcn.1800044c0
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xa8]
call fcn.1800043c0
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0x1a4], 0
mov eax, dword [rbp + 0xe4]
lea r9, [rbp + 0x1a4]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180005a09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x1800055d2
mov rax, qword [rbp + 0x68]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x3b0]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x28]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x1a4]
mov dword [rax + 0x28], ecx
mov rax, qword [rbp + 0x68]
mov rcx, qword [0x18021f890]
mov qword [rax], rcx
mov rax, qword [rbp + 0x68]
mov qword [0x18021f890], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180141b40
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.180141fc0
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret