Function at 0x401330
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Enumerate process modules
Execute shellcode via indirect call
Resume thread
Suspend thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xad25c
call fcn.00401fc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.start__r_n
call fcn.00401e48
add esp, 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x29038]
push ecx
call fcn.00401020
add esp, 8
push 0x10
push 0
lea edx, [ebp - 0xad1fc]
push edx
call fcn.004012f0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0xad25c]
push eax
call fcn.004012f0
add esp, 0xc
mov dword [ebp - 0xad25c], 0x44
lea ecx, [ebp - 0xad1fc]
push ecx
lea edx, [ebp - 0xad25c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x29038]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0xad1fc]
mov dword [ebp - 0xad19c], ecx
push str.NtQueryInformationProcess
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xad200], eax
mov dword [ebp - 0xad1ec], 0x18
lea edx, [ebp - 0xad1ec]
push edx
push 0x18
lea eax, [ebp - 0xad218]
push eax
push 0
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [ebp - 0xad200]
mov dword [ebp - 0xad1d8], 0
mov edx, dword [ebp - 0xad214]
mov dword [ebp - 0xad1d8], edx
mov eax, dword [ebp - 0xad1d8]
push eax
push 0x40f194
call fcn.00401e48
add esp, 8
mov dword [ebp - 0xad1a0], 0x1000
lea ecx, [ebp - 0xad1a0]
push ecx
push 0x1000
lea edx, [ebp - 0x5038]
push edx
mov eax, dword [ebp - 0xad1d8]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [ebp - 0x5030]
mov dword [ebp - 0xad1c4], edx
mov eax, dword [ebp - 0xad1c4]
push eax
push 0x40f19c
call fcn.00401e48
add esp, 8
lea ecx, [ebp - 0xad1a0]
push ecx
push 0x40
lea edx, [ebp - 0xad0a0]
push edx
mov eax, dword [ebp - 0xad1c4]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0xad1a0]
push edx
push 0xf8
lea eax, [ebp - 0xad198]
push eax
mov ecx, dword [ebp - 0xad1c4]
add ecx, dword [ebp - 0xad064]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0xad1c4]
add eax, dword [ebp - 0xad170]
mov dword [ebp - 0xad1a4], eax
mov ecx, dword [ebp - 0xad1a4]
push ecx
push 0x40f1a4
call fcn.00401e48
add esp, 8
mov byte [ebp - 0xad1bc], 0xeb
mov byte [ebp - 0xad1bb], 0xfe
lea edx, [ebp - 0xad1a0]
push edx
push 0x1000
lea eax, [ebp - 0x4038]
push eax
mov ecx, dword [ebp - 0xad1a4]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0xad1b4], 0
mov dword [ebp - 0xad1d0], 0
lea eax, [ebp - 0xad1b4]
push eax
push 0x40
push 2
mov ecx, dword [ebp - 0xad1a4]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 0xad1a0]
push eax
push 2
lea ecx, [ebp - 0xad1bc]
push ecx
mov edx, dword [ebp - 0xad1a4]
push edx
mov eax, dword [ebp - 0xad19c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0xad1d0]
push ecx
mov edx, dword [ebp - 0xad1b4]
push edx
push 2
mov eax, dword [ebp - 0xad1a4]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebp - 0xad1f8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0xad1e0], 0
mov dword [ebp - 0xad1c8], 0
lea eax, [ebp - 0xad1e4]
push eax
push 0x4000
lea ecx, [ebp - 0xad038]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x401612
push str.retry_r_n
call fcn.00401e48
add esp, 4
push 0x64
call fcn.00401320
add esp, 4
jmp 0x4015d6
mov dword [ebp - 0xad1b8], 0
jmp 0x40162d
mov eax, dword [ebp - 0xad1b8]
add eax, 1
mov dword [ebp - 0xad1b8], eax
mov ecx, dword [ebp - 0xad1e4]
shr ecx, 2
cmp dword [ebp - 0xad1b8], ecx
jge 0x401713
mov dword [ebp - 0xad1cc], str.kernel32.dll
push 0x2000
lea edx, [ebp - 0x7038]
push edx
mov eax, dword [ebp - 0xad1b8]
mov ecx, dword [ebp + eax*4 - 0xad038]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x40170e
lea eax, [ebp - 0x7038]
push eax
call section..text
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0xad1cc]
push ecx
call section..text
add esp, 4
cmp esi, eax
jle 0x40170e
lea edx, [ebp - 0x7038]
push edx
call section..text
add esp, 4
lea esi, [ebp + eax*2 - 0x7038]
mov eax, dword [ebp - 0xad1cc]
push eax
call section..text
add esp, 4
shl eax, 1
sub esi, eax
push esi
mov ecx, dword [ebp - 0xad1cc]
push ecx
call fcn.00401180
add esp, 8
test eax, eax
jne 0x40170e
lea edx, [ebp - 0x7038]
push edx
push str.findmod__s_r_n
call fcn.00401ef7
add esp, 8
mov dword [ebp - 0xad1e0], 1
mov eax, dword [ebp - 0xad1b8]
mov ecx, dword [ebp + eax*4 - 0xad038]
mov dword [ebp - 0xad1c8], ecx
jmp 0x401713
jmp 0x40161e
cmp dword [ebp - 0xad1e0], 0
je 0x4015d6
mov edx, dword [ebp - 0xad1c8]
push edx
push str.k32__x_r_n
call fcn.00401e48
add esp, 8
mov eax, dword [ebp - 0xad1c8]
mov dword [ebp - 0xad1ac], eax
lea ecx, [ebp - 0xad1a0]
push ecx
push 0x40
lea edx, [ebp - 0xad0a0]
push edx
mov eax, dword [ebp - 0xad1ac]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0xad1a0]
push edx
push 0xf8
lea eax, [ebp - 0xad198]
push eax
mov ecx, dword [ebp - 0xad1ac]
add ecx, dword [ebp - 0xad064]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0xad1ac]
add edx, dword [ebp + ecx - 0xad120]
mov dword [ebp - 0xad1e8], edx
lea eax, [ebp - 0xad1a0]
push eax
push 0x28
lea ecx, [ebp - 0xad060]
push ecx
mov edx, dword [ebp - 0xad1e8]
push edx
mov eax, dword [ebp - 0xad19c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0xad04c]
push ecx
push str._x_r_n
call fcn.00401e48
add esp, 8
lea edx, [ebp - 0xad1a0]
push edx
mov eax, dword [ebp - 0xad04c]
shl eax, 2
push eax
lea ecx, [ebp - 0x69038]
push ecx
mov edx, dword [ebp - 0xad1ac]
add edx, dword [ebp - 0xad044]
push edx
mov eax, dword [ebp - 0xad19c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ebp - 0xad1a0]
push ecx
mov edx, dword [ebp - 0xad048]
shl edx, 2
push edx
lea eax, [ebp - 0xa9038]
push eax
mov ecx, dword [ebp - 0xad1ac]
add ecx, dword [ebp - 0xad040]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0xad1a0]
push eax
mov ecx, dword [ebp - 0xad048]
shl ecx, 1
push ecx
lea edx, [ebp - 0x27038]
push edx
mov eax, dword [ebp - 0xad1ac]
add eax, dword [ebp - 0xad03c]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0xad1d4], 0
mov dword [ebp - 0xad1c0], 0
jmp 0x40189e
mov edx, dword [ebp - 0xad1c0]
add edx, 1
mov dword [ebp - 0xad1c0], edx
mov eax, dword [ebp - 0xad1c0]
cmp eax, dword [ebp - 0xad048]
jae 0x401949
lea ecx, [ebp - 0xad1a0]
push ecx
push 0x20
lea edx, [ebp - 0x2038]
push edx
mov eax, dword [ebp - 0xad1c0]
mov ecx, dword [ebp - 0xad1ac]
add ecx, dword [ebp + eax*4 - 0xa9038]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push str.LoadLibraryW
lea eax, [ebp - 0x2038]
push eax
call fcn.00401060
add esp, 8
test eax, eax
jne 0x401944
lea ecx, [ebp - 0x2038]
push ecx
push str._s_r_n
call fcn.00401e48
add esp, 8
mov edx, dword [ebp - 0xad1c0]
movzx eax, word [ebp + edx*2 - 0x27038]
mov ecx, dword [ebp - 0xad1ac]
add ecx, dword [ebp + eax*4 - 0x69038]
mov dword [ebp - 0xad1d4], ecx
mov edx, dword [ebp - 0xad1d4]
push edx
push str.ll__x_r_n
call fcn.00401e48
add esp, 8
jmp 0x401949
jmp 0x40188f
mov eax, dword [ebp - 0xad1f8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x40
push 0x3000
push 0x1000
push 0
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xad1b0], eax
mov edx, dword [ebp - 0xad1b0]
push edx
push str.inj__x_r_n
call fcn.00401e48
add esp, 8
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0xb8
mov byte [ebp - 0x2f], 1
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 0xa3
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0xeb
mov byte [ebp - 0x25], 0xfe
mov byte [ebp - 0x24], 0x51
mov byte [ebp - 0x23], 0xb9
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x51
mov byte [ebp - 0x1d], 0xb8
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x17], 0xd0
mov byte [ebp - 0x16], 0x59
mov byte [ebp - 0x15], 0xb8
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0xe0
mov dword [ebp - 0xad1a8], 0
push 0x14
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1038]
push ecx
call fcn.004012c0
add esp, 0xc
mov edx, dword [ebp - 0xad1a8]
add edx, 0x14
mov dword [ebp - 0xad1a8], edx
mov eax, dword [ebp - 0xad1b0]
mov dword [ebp - 0x102a], eax
mov ecx, dword [ebp - 0xad1a8]
mov edx, dword [ebp - 0xad1b0]
lea eax, [edx + ecx + 0x16]
mov dword [ebp - 0x22], eax
mov ecx, dword [ebp - 0xad1d4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xad1a4]
mov dword [ebp - 0x14], edx
push 0x16
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xad1a8]
lea edx, [ebp + ecx - 0x1038]
push edx
call fcn.004012c0
add esp, 0xc
mov eax, dword [ebp - 0xad1a8]
add eax, 0x16
mov dword [ebp - 0xad1a8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xad1dc], ecx
mov edx, dword [ebp - 0xad1dc]
push edx
mov eax, dword [ebp - 0xad1a8]
lea ecx, [ebp + eax - 0x1038]
push ecx
call fcn.00401020
add esp, 8
mov edx, dword [ebp - 0xad1dc]
push edx
call section..text
add esp, 4
mov ecx, dword [ebp - 0xad1a8]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0xad1a8], edx
lea eax, [ebp - 0xad1a0]
push eax
mov ecx, dword [ebp - 0xad1a8]
push ecx
lea edx, [ebp - 0x1038]
push edx
mov eax, dword [ebp - 0xad1b0]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [ebp - 0xc], 0xb8
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0xff
mov byte [ebp - 6], 0xe0
mov edx, dword [ebp - 0xad1b0]
add edx, 8
mov dword [ebp - 0xb], edx
lea eax, [ebp - 0xad1b4]
push eax
push 0x40
push 7
mov ecx, dword [ebp - 0xad1a4]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 0xad1a0]
push eax
push 7
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xad1a4]
push edx
mov eax, dword [ebp - 0xad19c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0xad1d0]
push ecx
mov edx, dword [ebp - 0xad1b4]
push edx
push 7
mov eax, dword [ebp - 0xad1a4]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebp - 0xad1f8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.checking_r_n
call fcn.00401e48
add esp, 4
push 0x64
call fcn.00401320
add esp, 4
lea eax, [ebp - 0xad1a0]
push eax
push 0x1000
lea ecx, [ebp - 0x3038]
push ecx
mov edx, dword [ebp - 0xad1b0]
push edx
mov eax, dword [ebp - 0xad19c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x3038]
test eax, eax
je 0x401bc4
mov ecx, dword [ebp - 0xad1f8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea edx, [ebp - 0xad1b4]
push edx
push 0x40
push 7
mov eax, dword [ebp - 0xad1a4]
push eax
mov ecx, dword [ebp - 0xad19c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea edx, [ebp - 0xad1a0]
push edx
push 7
lea eax, [ebp - 0x4038]
push eax
mov ecx, dword [ebp - 0xad1a4]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0xad1d0]
push eax
mov ecx, dword [ebp - 0xad1b4]
push ecx
push 7
mov edx, dword [ebp - 0xad1a4]
push edx
mov eax, dword [ebp - 0xad19c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x14
push 0x90
lea ecx, [ebp - 0x38]
push ecx
call fcn.004012f0
add esp, 0xc
lea edx, [ebp - 0xad1a0]
push edx
push 0x14
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xad1b0]
push ecx
mov edx, dword [ebp - 0xad19c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0xad1f8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401fa6
mov esp, ebp
pop ebp
ret