Function at 0x1008ad40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [0x101b9578]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 4
mov dword [esp + 0x1d8], eax
mov eax, dword [ebp + 0x14]
push 0x1000
add eax, 0x1b8
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
xor eax, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x1008b00d
mov ecx, 0x10
lea edi, [esp + 0x190]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
mov edi, 0x40
push edi
lea edx, [esp + 0x198]
push edx
push esi
push ebx
mov dword [esp + 0x24], eax
mov word [esp + 0x1a4], 0x5a4d
mov dword [esp + 0x1e0], edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1008b00b
cmp dword [esp + 0x10], edi
jne 0x1008b00b
add esi, edi
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x10]
push eax
push 0xf8
lea ecx, [esp + 0x60]
push ecx
push esi
push ebx
mov dword [esp + 0x6c], 0x4550
mov word [esp + 0x80], 0xe0
mov word [esp + 0x82], 0x2000
mov word [esp + 0x72], 1
mov word [esp + 0x84], 0x10b
call edi
test eax, eax
je 0x1008b00b
cmp dword [esp + 0x10], 0xf8
jne 0x1008b00b
mov eax, dword [str..detour]
mov ecx, dword [0x1017e8d8]
xor edx, edx
mov dword [esp + 0x168], edx
mov dword [esp + 0x16c], edx
mov dword [esp + 0x170], edx
mov dword [esp + 0x174], edx
mov dword [esp + 0x178], edx
mov dword [esp + 0x17c], edx
mov dword [esp + 0x180], edx
mov dword [esp + 0x168], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x184], edx
mov dword [esp + 0x188], edx
add eax, 0x58
mov dword [esp + 0x18c], edx
add esi, 0xf8
mov dword [esp + 0x16c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x178], eax
lea eax, [esp + 0x10]
push eax
mov edx, esi
sub edx, ecx
push 0x28
lea ecx, [esp + 0x170]
push ecx
push esi
add edx, 0x28
push ebx
mov dword [esp + 0x188], edx
call edi
test eax, eax
je 0x1008b00b
cmp dword [esp + 0x10], 0x28
jne 0x1008b00b
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, 0x40
add eax, 0x58
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
add esi, 0x28
push esi
push ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x727444
mov dword [esp + 0x34], ecx
call edi
test eax, eax
je 0x1008b00b
cmp dword [esp + 0x10], 0x40
jne 0x1008b00b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], ecx
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], ecx
mov dword [esp + 0x164], ecx
add edx, 0x18
mov dword [esp + 0x154], ecx
mov ecx, dword [eax]
mov dword [esp + 0x150], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x158], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x15c], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x18
mov dword [esp + 0x168], ecx
lea ecx, [esp + 0x158]
push ecx
add esi, 0x40
push esi
push ebx
mov dword [esp + 0x178], edx
call edi
test eax, eax
je 0x1008b00b
cmp dword [esp + 0x10], 0x18
jne 0x1008b00b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
add esi, 0x18
push esi
push ebx
call edi
test eax, eax
je 0x1008b00b
mov edx, dword [ebp + 0x14]
cmp dword [esp + 0x10], edx
jne 0x1008b00b
mov eax, 1
mov ecx, dword [esp + 0x1d4]
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [esp + 0x1d4]
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10