Function at 0x409f1d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x423014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 4
push 0x1000
mov dword [ebp - 0x1d4], eax
lea eax, [edi + 0x1b8]
mov dword [ebp - 0x1c8], edx
push eax
push 0
push esi
mov dword [ebp - 0x1cc], esi
mov dword [ebp - 0x1d0], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x40a169
and dword [ebp - 0x1c4], 0
lea eax, [ebp - 0xc8]
push 0x40
push 0
push eax
call fcn.0040bb10
add esp, 0xc
mov eax, 0x5a4d
mov word [ebp - 0xc8], ax
lea eax, [ebp - 0x1c4]
push 0x40
pop ecx
push eax
push ecx
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x8c], ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a169
cmp dword [ebp - 0x1c4], 0x40
jne 0x40a169
push 0xf8
lea eax, [ebp - 0x1c0]
add ebx, 0x40
push 0
push eax
call fcn.0040bb10
xor eax, eax
mov dword [ebp - 0x1c0], 0x4550
inc eax
mov dword [ebp - 0x1ac], 0x200000e0
add esp, 0xc
mov word [ebp - 0x1ba], ax
mov eax, 0x10b
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1c4]
push eax
push 0xf8
lea eax, [ebp - 0x1c0]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a169
mov eax, 0xf8
cmp dword [ebp - 0x1c4], eax
jne 0x40a169
add ebx, eax
mov dword [ebp - 0x2c], 0x7465642e
xor eax, eax
mov dword [ebp - 0x28], 0x72756f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [edi + 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x28
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x160
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a169
cmp dword [ebp - 0x1c4], 0x28
jne 0x40a169
push 0x40
lea eax, [ebp - 0x88]
add ebx, 0x28
push 0
push eax
call fcn.0040bb10
add esp, 0xc
mov dword [ebp - 0x84], 0x727444
lea eax, [edi + 0x58]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x1c4]
push 0x40
pop ecx
push eax
push ecx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
push eax
push ebx
push esi
mov dword [ebp - 0x80], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a169
cmp dword [ebp - 0x1c4], 0x40
jne 0x40a169
and dword [ebp - 0x40], 0
lea eax, [edi + 0x18]
mov esi, dword [ebp - 0x1c8]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
add ebx, 0x40
lea eax, [ebp - 0x1c4]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push 0x18
push eax
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1cc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a169
cmp dword [ebp - 0x1c4], 0x18
jne 0x40a169
mov edi, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1c4]
push eax
push edi
push dword [ebp - 0x1d4]
lea ecx, [ebx + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40a169
cmp dword [ebp - 0x1c4], edi
jne 0x40a169
xor eax, eax
inc eax
jmp 0x40a16b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad62
leave
ret 8