Function at 0x411a20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
push str.DetourCopyPayloadToProcess
lea ecx, [ebp - 0x1c8]
call fcn.00407b80
mov eax, dword [ebp + 0x14]
add eax, 0x1b8
mov dword [ebp - 0x1d0], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x1d0]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0
jne 0x411aa4
mov dword [ebp - 0x1d4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1d4]
jmp 0x411e1d
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1c4], 0
push 0x40
push 0
lea ecx, [ebp - 0xc4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 0x5a4d
mov word [ebp - 0xc4], dx
mov dword [ebp - 0x88], 0x40
lea eax, [ebp - 0x1c4]
push eax
push 0x40
lea ecx, [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411b11
cmp dword [ebp - 0x1c4], 0x40
je 0x411b31
mov dword [ebp - 0x1d8], 0
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1d8]
jmp 0x411e1d
mov ecx, dword [ebp - 0x1c0]
add ecx, 0x40
mov dword [ebp - 0x1c0], ecx
push 0xf8
push 0
lea edx, [ebp - 0x1bc]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1bc], 0x4550
mov eax, 0xe0
mov word [ebp - 0x1a8], ax
mov ecx, 0x2000
mov word [ebp - 0x1a6], cx
mov edx, 1
mov word [ebp - 0x1b6], dx
lea eax, [ebp - 0x1c4]
push eax
push 0xf8
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411bb8
cmp dword [ebp - 0x1c4], 0xf8
je 0x411bd8
mov dword [ebp - 0x1dc], 0
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1dc]
jmp 0x411e1d
mov ecx, dword [ebp - 0x1c0]
add ecx, 0xf8
mov dword [ebp - 0x1c0], ecx
push 0x28
push 0
lea edx, [ebp - 0x44]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 8
push 0x46389c
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x1c0]
add ecx, 0x28
sub ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0x14]
add edx, 0x58
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x1c4]
push eax
push 0x28
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411c53
cmp dword [ebp - 0x1c4], 0x28
je 0x411c73
mov dword [ebp - 0x1e0], 0
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1e0]
jmp 0x411e1d
mov ecx, dword [ebp - 0x1c0]
add ecx, 0x28
mov dword [ebp - 0x1c0], ecx
push 0x40
push 0
lea edx, [ebp - 0x84]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x84], 0x40
mov dword [ebp - 0x80], 0x727444
mov dword [ebp - 0x7c], 0x40
mov eax, dword [ebp + 0x14]
add eax, 0x58
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x1c4]
push ecx
push 0x40
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411ce4
cmp dword [ebp - 0x1c4], 0x40
je 0x411d04
mov dword [ebp - 0x1e4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1e4]
jmp 0x411e1d
mov edx, dword [ebp - 0x1c0]
add edx, 0x40
mov dword [ebp - 0x1c0], edx
push 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0x14]
add ecx, 0x18
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x1c4]
push edx
push 0x18
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411d78
cmp dword [ebp - 0x1c4], 0x18
je 0x411d98
mov dword [ebp - 0x1e8], 0
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1e8]
jmp 0x411e1d
mov eax, dword [ebp - 0x1c0]
add eax, 0x18
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0x1c4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x411dd6
mov eax, dword [ebp - 0x1c4]
cmp eax, dword [ebp + 0x14]
je 0x411df3
mov dword [ebp - 0x1ec], 0
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1ec]
jmp 0x411e1d
mov ecx, dword [ebp - 0x1c0]
add ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x1f0], 1
lea ecx, [ebp - 0x1c8]
call fcn.00407aa0
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret 0x10