Function at 0x180004fa0
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x1802380a6]
call fcn.180140630
mov dword [rbp + 4], 0
cmp qword [rbp + 0x3c0], 0
je 0x180005017
mov rax, qword [rbp + 0x3c0]
mov qword [rax], 0
cmp qword [rbp + 0x3c8], 0
je 0x18000502f
mov rax, qword [rbp + 0x3c8]
mov qword [rax], 0
cmp qword [rbp + 0x3d0], 0
je 0x180005047
mov rax, qword [rbp + 0x3d0]
mov qword [rax], 0
cmp qword [rbp + 0x3b8], 0
jne 0x18000505b
mov eax, 0x57
jmp 0x18000561f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021f908], eax
je 0x180005073
mov eax, 0x10dd
jmp 0x18000561f
cmp dword [0x18021f90c], 0
je 0x180005087
mov eax, dword [0x18021f90c]
jmp 0x18000561f
cmp qword [rbp + 0x3b0], 0
jne 0x18000509b
mov eax, 6
jmp 0x18000561f
mov rax, qword [rbp + 0x3b0]
cmp qword [rax], 0
jne 0x1800050ce
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x18021f90c], eax
mov rax, qword [rbp + 0x3b0]
mov qword [0x18021f910], rax
mov eax, dword [rbp + 4]
jmp 0x18000561f
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.180005650
mov qword [rbp + 0x28], rax
xor edx, edx
mov rcx, qword [rbp + 0x3b8]
call fcn.180005650
mov qword [rbp + 0x3b8], rax
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x3b8], rax
jne 0x180005130
cmp dword [0x18021f900], 0
je 0x18000512c
jmp 0x18000519a
jmp 0x180005191
cmp qword [rbp + 0x3c8], 0
je 0x180005148
mov rax, qword [rbp + 0x3c8]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
cmp qword [rbp + 0x3d0], 0
je 0x180005163
mov rax, qword [rbp + 0x3d0]
mov rcx, qword [rbp + 0x3b8]
mov qword [rax], rcx
mov ecx, 0x30
call fcn.180140350
mov qword [rbp + 0x348], rax
mov rax, qword [rbp + 0x348]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x180005235
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x18021f90c], eax
cmp qword [rbp + 0x48], 0
je 0x1800051ca
mov rcx, qword [rbp + 0x48]
call fcn.180003e90
mov qword [rbp + 0x48], 0
cmp qword [rbp + 0x3c0], 0
je 0x1800051ca
mov rax, qword [rbp + 0x3c0]
mov qword [rax], 0
cmp qword [rbp + 0x68], 0
je 0x18000521f
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x368], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x368]
call fcn.1801403a0
cmp qword [rbp + 0x368], 0
jne 0x180005204
mov qword [rbp + 0x378], 0
jmp 0x180005217
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 [0x18021f910], rax
mov eax, dword [rbp + 4]
jmp 0x18000561f
mov rcx, qword [rbp + 0x28]
call fcn.1800036b0
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x180005255
mov dword [rbp + 4], 8
jmp 0x180005191
cmp qword [rbp + 0x3c0], 0
je 0x18000526d
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
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 0x180005404
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.18013a870
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 0x1800053ed
jmp 0x180005404
mov rcx, qword [rbp + 0x148]
call fcn.180003af0
test eax, eax
je 0x1800053ff
jmp 0x180005404
jmp 0x1800052cb
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jae 0x180005463
mov rcx, qword [rbp + 0x88]
call fcn.180004150
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0
jne 0x18000542f
jmp 0x180005463
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 0x180005404
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jb 0x18000547d
mov eax, dword [rbp + 0x124]
cmp rax, 8
jbe 0x180005499
mov dword [rbp + 4], 9
cmp dword [0x18021f900], 0
je 0x180005494
jmp 0x18000519a
jmp 0x180005191
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xa8], rax
jbe 0x1800054aa
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
mov eax, dword [rbp + 0xe4]
mov ecx, dword [rbp + 0x104]
mov edx, 0x1e
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jbe 0x180005512
mov dword [rbp + 4], 6
jmp 0x180005191
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.1800040a0
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xa8]
call fcn.180003fa0
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 0x1800055c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x180005191
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 [0x18021f920]
mov qword [rax], rcx
mov rax, qword [rbp + 0x68]
mov qword [0x18021f920], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret