Function at 0x180039960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x138
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
call fcn.180037e80
mov qword [0x18036c700], rax
cmp qword [0x18036c700], 0
jne 0x1800399b9
mov eax, 3
jmp 0x180039eac
lea rdx, [rsp + 0x114]
lea rcx, [rsp + 0x40]
call fcn.180039f30
mov rcx, rax
call fcn.18003a150
mov rdx, rax
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [0x18036c6f8]
lea r8, [rsp + 0xd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x180039a12
cmp qword [0x18036c6f8], 0
jne 0x180039a1c
mov eax, 6
jmp 0x180039eac
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rdx, [rsp + 0xfd]
lea rcx, [rsp + 0x41]
call fcn.180039fd0
mov rcx, rax
call fcn.18003a110
mov rdx, rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlInitString]
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [0x18036c6f8]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x180039a8b
cmp qword [rsp + 0x60], 0
jne 0x180039a95
mov eax, 7
jmp 0x180039eac
cmp dword [0x18036c6f4], 0x3ad7
jae 0x180039b6f
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x42]
call fcn.18003a000
mov rcx, rax
call fcn.18003a250
mov rdx, rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlInitString]
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [0x18036c6f8]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x180039b00
cmp qword [rsp + 0x68], 0
jne 0x180039b0a
mov eax, 8
jmp 0x180039eac
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x43]
call fcn.18003a030
mov rcx, rax
call fcn.18003a1d0
mov rdx, rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlInitString]
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, qword [0x18036c6f8]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x180039b65
cmp qword [rsp + 0x70], 0
jne 0x180039b6f
mov eax, 9
jmp 0x180039eac
mov ecx, 0x48
call fcn.1800dbf60
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x180039ba3
mov rcx, qword [rsp + 0x90]
call fcn.180036080
mov qword [rsp + 0x98], rax
jmp 0x180039baf
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
call fcn.180036180
add rax, 0x1000
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
cmp qword [rsp + 0x30], 0
jne 0x180039c26
mov eax, 0xa
jmp 0x180039eac
mov dword [rsp + 0x3c], 0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0x48
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0xb9
mov rax, qword [0x18036c6f8]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov rcx, qword [0x18036c700]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rcx], rax
cmp dword [0x18036c6f4], 0x3ad7
jae 0x180039d47
mov eax, 1
imul rax, rax, 0xa
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0x48
mov eax, 1
imul rax, rax, 0xb
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0xba
mov rax, qword [0x18036c6f8]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov rcx, qword [0x18036c700]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rcx], rax
mov eax, 1
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0x49
mov eax, 1
imul rax, rax, 0x15
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0xb8
mov rax, qword [0x18036c6f8]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov rcx, qword [0x18036c700]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0x16
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rcx], rax
mov dword [rsp + 0x3c], 0x1e
jmp 0x180039d4f
mov dword [rsp + 0x3c], 0xa
mov eax, dword [rsp + 0x3c]
add eax, 0x300
mov dword [rsp + 0x54], eax
cmp dword [0x18036c6f4], 0x3ad7
jae 0x180039d88
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1801419d0]
lea rdi, [rcx + rax]
mov rsi, rdx
mov ecx, 0x1e0
rep movsb byte [rdi], byte [rsi]
jmp 0x180039da6
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
lea rdx, str._SUVH
lea rdi, [rcx + rax]
mov rsi, rdx
mov ecx, 0x141
rep movsb byte [rdi], byte [rsi]
lea r8, [0x180039000]
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x48]
call fcn.1800361a0
nop
lea rcx, [rsp + 0xb8]
call fcn.180005110
movzx eax, al
test eax, eax
je 0x180039df2
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0xb8]
call fcn.180005290
mov eax, dword [rsp + 0x50]
jmp 0x180039eac
mov rcx, qword [rsp + 0x48]
call fcn.180036180
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xb8]
call fcn.180005270
mov ecx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
mov rsi, rax
mov rax, qword [rsp + 0xa8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x48]
call fcn.180036180
add rax, 0x1000
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
call fcn.180039080
cmp qword [rsp + 0x30], 0
je 0x180039e93
mov qword [rsp + 0x78], 0
mov r9d, 0x8000
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0xb8]
call fcn.180005290
mov eax, dword [rsp + 0x5c]
add rsp, 0x138
pop rdi
pop rsi
ret