Function at 0x4026e0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x402734
push str.ERROR_01
call fcn.00401070
add esp, 4
xor al, al
jmp 0x40300f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x18
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x58]
add edx, 4
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax]
cmp ecx, 0x14c
je 0x402770
push str.ERROR_02
call fcn.00401070
add esp, 4
push 4
push 0x3000
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 0x38]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4027aa
push str.ERROR_03
call fcn.00401070
add esp, 4
xor al, al
jmp 0x40300f
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
mov byte [ebp + 0x20], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
movzx ecx, byte [ebp + 0x20]
mov dword [ebp - 0x18], ecx
push 0
push 0x1000
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40285a
push str.ERROR_04
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
mov ecx, dword [ebp - 0x58]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0x58]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x90], 0
jmp 0x40288f
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x50]
add eax, 0x28
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x6c]
movzx edx, word [ecx + 2]
cmp dword [ebp - 0x90], edx
je 0x402900
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x10], 0
je 0x4028fb
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4028fb
push str.ERROR_05
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
jmp 0x402877
push 4
push 0x3000
push 0x1c
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x402947
push str.ERROR_06
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
push 0
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40299f
push str.ERROR_07
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
push 0x40
push 0x3000
push 0x1000
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x4029fe
push str.ERROR_08
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
push 0
push 0x1000
push 0x403020
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402a6f
push str.ERROR_09
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x402aeb
push str.ERROR_10
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 0
jne 0x402bef
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 8], 0x103
je 0x402b3b
push str.ERROR_11
call fcn.00401070
add esp, 4
xor al, al
jmp 0x40300f
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push 0
push 0x1c
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x74], 0x404040
jne 0x402bcc
push str.ERROR_12
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x40300f
cmp dword [ebp - 0x74], 0x505050
jne 0x402be2
push str.ERROR_13
call fcn.00401070
add esp, 4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402aff
push 0x1400000
call fcn.004120e4
add esp, 4
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x402c19
push str.ERROR_14
call fcn.00401070
add esp, 4
xor al, al
jmp 0x40300f
push 0x1400000
push 0
mov edx, dword [ebp - 0x70]
push edx
call fcn.0040b840
add esp, 0xc
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x402c5e
push 0
push 0x1000
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402c5e
push str.ERROR_15
call fcn.00401070
add esp, 4
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x402ea7
mov edx, dword [ebp - 0x58]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x58]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x94], 0
jmp 0x402c9f
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x28
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x6c]
movzx eax, word [edx + 2]
cmp dword [ebp - 0x94], eax
je 0x402ea7
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 8], 0
je 0x402ea2
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x402cd6
mov dword [ebp - 0xb0], 0
jmp 0x402d71
mov dword [ebp - 0x8c], str..pdata
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dl, byte [ecx]
mov byte [ebp - 0x66], dl
mov eax, dword [ebp - 0x8c]
cmp dl, byte [eax]
jne 0x402d2f
cmp byte [ebp - 0x66], 0
je 0x402d23
mov ecx, dword [ebp - 0x78]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x61], dl
mov eax, dword [ebp - 0x8c]
cmp dl, byte [eax + 1]
jne 0x402d2f
add dword [ebp - 0x78], 2
add dword [ebp - 0x8c], 2
cmp byte [ebp - 0x61], 0
jne 0x402ce6
mov dword [ebp - 0xa8], 0
jmp 0x402d3a
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xbc], edx
cmp dword [ebp - 0xbc], 0
jne 0x402d5b
mov dword [ebp - 0xac], 1
jmp 0x402d65
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x402e70
mov dword [ebp - 0x84], str..rsrc
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
mov al, byte [edx]
mov byte [ebp - 0x62], al
mov ecx, dword [ebp - 0x84]
cmp al, byte [ecx]
jne 0x402de3
cmp byte [ebp - 0x62], 0
je 0x402dd7
mov edx, dword [ebp - 0x88]
mov al, byte [edx + 1]
mov byte [ebp - 0x63], al
mov ecx, dword [ebp - 0x84]
cmp al, byte [ecx + 1]
jne 0x402de3
add dword [ebp - 0x88], 2
add dword [ebp - 0x84], 2
cmp byte [ebp - 0x63], 0
jne 0x402d91
mov dword [ebp - 0xb4], 0
jmp 0x402dee
sbb edx, edx
or edx, 1
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x402e70
mov dword [ebp - 0x7c], str..reloc
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov al, byte [edx]
mov byte [ebp - 0x64], al
mov ecx, dword [ebp - 0x7c]
cmp al, byte [ecx]
jne 0x402e50
cmp byte [ebp - 0x64], 0
je 0x402e44
mov edx, dword [ebp - 0x80]
mov al, byte [edx + 1]
mov byte [ebp - 0x65], al
mov ecx, dword [ebp - 0x7c]
cmp al, byte [ecx + 1]
jne 0x402e50
add dword [ebp - 0x80], 2
add dword [ebp - 0x7c], 2
cmp byte [ebp - 0x65], 0
jne 0x402e10
mov dword [ebp - 0xb8], 0
jmp 0x402e5b
sbb edx, edx
or edx, 1
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x402ea2
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402ea2
push str.ERROR_16
call fcn.00401070
add esp, 4
jmp 0x402c87
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
je 0x402f97
mov edx, dword [ebp - 0x58]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x58]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x98], 0
jmp 0x402ee8
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x28
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x6c]
movzx eax, word [edx + 2]
cmp dword [ebp - 0x98], eax
je 0x402f6d
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 8], 0
je 0x402f68
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x9c], 2
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x24]
and eax, 0x80000000
jbe 0x402f2a
mov dword [ebp - 0x9c], 4
jmp 0x402f42
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x24]
and edx, 0x20000000
jbe 0x402f42
mov dword [ebp - 0x9c], 0x20
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x402ed0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 2
mov edx, dword [ebp - 0x58]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + eax + 0x24]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0x1000
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402fc1
push str.ERROR_17
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x402fe7
push str.ERROR_18
call fcn.00401070
add esp, 4
push 0x8000
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x40300d
push str.ERROR_19
call fcn.00401070
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409de7
mov esp, ebp
pop ebp
ret