Function at 0x4a7e9c
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x20
push 0
push 0
dec ecx
jne 0x4a7ea4
push ecx
push ebx
push esi
push edi
mov eax, 0x4a7bcc
call fcn.004067dc
xor eax, eax
push ebp
push 0x4a86dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.004028ec
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00408680
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, 0x4a86f4
call fcn.00408680
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00403f60
jne 0x4a7f5c
mov eax, dword [0x4aa488]
mov eax, dword [eax]
call fcn.00403e50
test eax, eax
jle 0x4a86be
mov dword [0x4abf54], 1
mov eax, dword [0x4aa488]
mov eax, dword [eax]
call fcn.00403e50
inc eax
mov dword [0x4abf58], eax
mov eax, dword [0x4aa488]
mov eax, dword [eax]
call fcn.00404014
mov dword [0x4abf5c], eax
push 0x4abf54
push 0
push 0x4a
push 0
push 0x4a86fc
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_SendMessageA
jmp 0x4a86be
mov eax, dword [0x4aa494]
mov eax, dword [eax]
mov edx, 0x4a8714
call fcn.00451468
lea edx, [ebp - 0x24]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408cd0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov edx, 0x4a872c
call fcn.004551f4
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
add eax, 0x40
call fcn.00403c08
push 0x4a8740
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4aa174], eax
cmp dword [0x4aa174], 0
jbe 0x4a8052
push 0
push 0
push 0
push 4
mov eax, dword [0x4aa174]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4abf50], eax
mov eax, dword [0x4abf50]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4a8035
lea edx, [ebp - 0x2c]
mov eax, 1
call fcn.004028ec
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004087b4
cmp dword [ebp - 0x28], 0
jne 0x4a86be
push 0
push 0
push 0x4a874c
call sub.user32.dll_RegisterWindowMessageA
push eax
mov eax, dword [0x4abf50]
mov eax, dword [eax]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4a86be
mov eax, dword [0x4abf50]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x4aa174]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x4aa174], eax
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451864
mov ebx, dword [0x4aa520]
mov ebx, dword [ebx]
call ebx
lea edx, [ebp - 0x34]
mov eax, 1
call fcn.004028ec
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00408680
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
mov eax, 0x4a876c
call fcn.00408680
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00403f60
jne 0x4a812d
push 0
push 0
push 0x4a877c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x452be4]
call fcn.00452ce0
mov ebx, eax
push 8
lea edx, [ebp - 0x40]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408cd0
mov eax, dword [ebp - 0x3c]
call fcn.00404014
push eax
push 0x4a8788
lea edx, [ebp - 0x44]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x44]
call fcn.00404014
push eax
push 0x4a8790
push 0
call sub.shell32.dll_ShellExecuteA
push 0x2710
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, ebx
call fcn.00402e4c
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.004519b0
jmp 0x4a86be
lea edx, [ebp - 0x4c]
mov eax, 1
call fcn.004028ec
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408680
mov eax, dword [ebp - 0x48]
push eax
lea edx, [ebp - 0x50]
mov eax, 0x4a87a0
call fcn.00408680
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00403f60
jne 0x4a83a4
xor eax, eax
push ebp
push 0x4a824e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x58]
mov edx, 0x4a87b4
mov eax, 0x4a87c4
call fcn.00408c3c
mov eax, dword [ebp - 0x58]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00408cd0
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0x54]
call fcn.00408b70
test al, al
je 0x4a8244
mov eax, 0x4a87c4
lea ecx, [ebp - 0x68]
mov edx, 0x4a87d8
call fcn.00408c3c
mov eax, dword [ebp - 0x68]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.00408cd0
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x64]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0x64]
push eax
mov eax, 0x4a87c4
lea ecx, [ebp - 0x78]
mov edx, 0x4a87ec
call fcn.00408c3c
mov eax, dword [ebp - 0x78]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.00408cd0
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0x74]
pop edx
call fcn.00408b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a8258
xor eax, eax
push ebp
push 0x4a8389
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4a87c4
lea ecx, [ebp - 0x88]
mov edx, 0x4a87b4
call fcn.00408c3c
mov eax, dword [ebp - 0x88]
push eax
lea edx, [ebp - 0x90]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.00408cd0
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x84]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0x84]
call fcn.00408b70
test al, al
je 0x4a837f
mov eax, 0x4a87c4
lea ecx, [ebp - 0x98]
mov edx, 0x4a87ec
call fcn.00408c3c
mov eax, dword [ebp - 0x98]
push eax
lea edx, [ebp - 0xa0]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.00408cd0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0x94]
push eax
mov eax, 0x4a87c4
lea ecx, [ebp - 0xa8]
mov edx, 0x4a87b4
call fcn.00408c3c
mov eax, dword [ebp - 0xa8]
push eax
lea edx, [ebp - 0xb0]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00408cd0
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa4]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0xa4]
pop edx
call fcn.00408b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a8393
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.004519b0
jmp 0x4a86be
lea edx, [ebp - 0xb8]
mov eax, 1
call fcn.004028ec
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.00408680
mov eax, dword [ebp - 0xb4]
push eax
lea edx, [ebp - 0xbc]
mov eax, 0x4a87fc
call fcn.00408680
mov edx, dword [ebp - 0xbc]
pop eax
call fcn.00403f60
jne 0x4a8400
call fcn.004a5ff4
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.004519b0
jmp 0x4a86be
push 0x4a8740
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4aa174], eax
cmp dword [0x4aa174], 0
jbe 0x4a844c
push 0
push 0
push 0
push 2
mov eax, dword [0x4aa174]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4abf50], eax
mov eax, dword [0x4aa494]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov edx, dword [0x4abf50]
mov dword [edx], eax
xor eax, eax
push ebp
push 0x4a86b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a85bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4a87c4
lea ecx, [ebp - 0xc4]
mov edx, 0x4a87b4
call fcn.00408c3c
mov eax, dword [ebp - 0xc4]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.00408cd0
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc0]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0xc0]
call fcn.00408b70
test al, al
je 0x4a85b5
lea edx, [ebp - 0xd8]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0xd4]
call fcn.00408cd0
mov eax, dword [ebp - 0xd4]
mov edx, 0x4a87c4
lea ecx, [ebp - 0xd0]
call fcn.004551f4
mov eax, dword [ebp - 0xd0]
call fcn.00408b80
test al, al
je 0x4a85b5
lea edx, [ebp - 0xe4]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0xe0]
call fcn.00408cd0
mov eax, dword [ebp - 0xe0]
mov edx, 0x4a87c4
lea ecx, [ebp - 0xdc]
call fcn.004551f4
mov eax, dword [ebp - 0xdc]
push eax
mov eax, 0x4a87c4
lea ecx, [ebp - 0xec]
mov edx, 0x4a87b4
call fcn.00408c3c
mov eax, dword [ebp - 0xec]
push eax
lea edx, [ebp - 0xf4]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.00408cd0
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xe8]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0xe8]
pop edx
call fcn.00408b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a85c9
xor eax, eax
push ebp
push 0x4a863d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4a87c4
lea ecx, [ebp - 0xfc]
mov edx, 0x4a87d8
call fcn.00408c3c
mov eax, dword [ebp - 0xfc]
push eax
lea edx, [ebp - 0x104]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.00451dc4
mov eax, dword [ebp - 0x104]
lea edx, [ebp - 0x100]
call fcn.00408cd0
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0xf8]
pop edx
call fcn.004551f4
mov eax, dword [ebp - 0xf8]
call fcn.00408b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a8647
mov eax, dword [0x4aa494]
mov eax, dword [eax]
mov byte [eax + 0x4b], 0
mov ecx, dword [0x4aa250]
mov eax, dword [0x4aa494]
mov eax, dword [eax]
mov edx, dword [0x49e570]
call fcn.0045187c
cmp dword [0x4aa174], 0
jbe 0x4a8687
mov eax, dword [0x4aa250]
mov eax, dword [eax]
call fcn.00438514
mov edx, dword [0x4abf50]
mov dword [edx], eax
mov eax, dword [0x4aa494]
mov eax, dword [eax]
call fcn.004518fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a86be
mov eax, dword [0x4abf50]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x4aa174]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a86e3
lea eax, [ebp - 0x104]
mov edx, 0x3e
call fcn.00403bd8
ret