Function at 0x180039080
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x138
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
cmp qword [0x18018f2f8], 0xffffffffffffffff
jne 0x1800390b7
mov eax, reloc.WS2_32.dll_recv
jmp 0x1800395fc
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x69726f74
mov dword [rsp + 0x68], 0x30
mov dword [rsp + 0x6c], 0x38
mov dword [rsp + 0x70], 0x42000042
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x8c], 0x70002
lea rax, [rsp + 0x78]
lea rcx, str.The_Magic_Word_
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x38
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x60]
mov edx, 0x228204
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18003916f
mov eax, listen
jmp 0x1800395fc
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0xe8], 0x40
mov dword [rsp + 0xec], 0x28
mov dword [rsp + 0xf0], 0x42000042
mov dword [rsp + 0xf4], 0
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0xf8], eax
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x4c]
call fcn.180039680
mov rcx, rax
call fcn.18003a210
lea rcx, [rsp + 0xfc]
mov rdi, rcx
mov rsi, rax
mov ecx, 9
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0xe0]
mov edx, 0x228214
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180039258
mov eax, listen
jmp 0x1800395fc
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x158]
add rax, 0x1000
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
cmp qword [rsp + 0x40], 0
jne 0x1800392b3
mov eax, reloc.WS2_32.dll_listen
jmp 0x1800395fc
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x78]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x7c]
mov dword [rax + 4], ecx
mov eax, dword [rsp + 0x158]
add rax, 0x68
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0x18
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0x42000042
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x14], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x50], 1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x28], 0x1a000
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x30], rcx
mov eax, dword [rsp + 0x158]
mov rcx, qword [rsp + 0x40]
add rcx, 0x68
mov rdi, rcx
mov rsi, qword [rsp + 0x150]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x158]
mov dword [rax + 0x64], ecx
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 8]
mov r8, qword [rsp + 0x40]
mov edx, 0x228218
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1800393f9
mov r9d, 0x8000
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, recv
jmp 0x1800395fc
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x9c], eax
mov dword [rsp + 0xac], 0
mov dword [rsp + 0xa8], 0x42000042
mov dword [rsp + 0xa0], 0x20
mov dword [rsp + 0xa4], 0x18
mov qword [rsp + 0xb0], 0x1a000
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x98]
mov edx, 0x22824c
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1800394ce
mov r9d, 0x8000
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, send
jmp 0x1800395fc
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x22830b
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0xbc], eax
mov dword [rsp + 0xc0], 0x20
mov dword [rsp + 0xc4], 0x18
mov dword [rsp + 0xc8], 0x42000042
mov dword [rsp + 0xcc], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0xb8]
mov edx, 0x22821c
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r9d, 0x8000
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x18018f2f8], 0xffffffffffffffff
xor eax, eax
add rsp, 0x138
pop rdi
pop rsi
ret