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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2f
push 0
push 0
dec ecx
jne 0x4d4748
push ecx
push ebx
push esi
push edi
mov eax, 0x4d43c8
call fcn.0040699c
xor eax, eax
push ebp
push 0x4d52af
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.0040293c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040890c
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, 0x4d52c8
call fcn.0040890c
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00403fb0
jne 0x4d4800
mov eax, dword [0x4d8004]
mov eax, dword [eax]
call fcn.00403ea0
test eax, eax
jle 0x4d5291
mov dword [0x4d9ff4], 1
mov eax, dword [0x4d8004]
mov eax, dword [eax]
call fcn.00403ea0
inc eax
mov dword [0x4d9ff8], eax
mov eax, dword [0x4d8004]
mov eax, dword [eax]
call fcn.00404064
mov dword [0x4d9ffc], eax
push 0x4d9ff4
push 0
push 0x4a
push 0
push 0x4d52d0
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_SendMessageA
jmp 0x4d5291
mov eax, dword [0x4d8010]
mov eax, dword [eax]
mov edx, 0x4d52e8
call fcn.00452e9c
lea edx, [ebp - 0x24]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408f90
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov edx, 0x4d5300
call fcn.0045baf8
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
add eax, 0x40
call fcn.00403c58
push 0x4d5314
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4d7cb8], eax
cmp dword [0x4d7cb8], 0
jbe 0x4d48f6
push 0
push 0
push 0
push 4
mov eax, dword [0x4d7cb8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4d9ff0], eax
mov eax, dword [0x4d9ff0]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4d48d9
lea edx, [ebp - 0x2c]
mov eax, 1
call fcn.0040293c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00408a40
cmp dword [ebp - 0x28], 0
jne 0x4d5291
push 0
push 0
push 0x4d5320
call sub.user32.dll_RegisterWindowMessageA
push eax
mov eax, dword [0x4d9ff0]
mov eax, dword [eax]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4d5291
mov eax, dword [0x4d9ff0]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x4d7cb8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x4d7cb8], eax
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.00453298
mov ebx, dword [0x4d80b0]
mov ebx, dword [ebx]
call ebx
lea edx, [ebp - 0x34]
mov eax, 1
call fcn.0040293c
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0040890c
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
mov eax, 0x4d5340
call fcn.0040890c
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00403fb0
jne 0x4d49d1
push 0
push 0
push 0x4d5350
xor ecx, ecx
mov dl, 1
mov eax, dword [0x454630]
call fcn.0045472c
mov ebx, eax
push 8
lea edx, [ebp - 0x40]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408f90
mov eax, dword [ebp - 0x3c]
call fcn.00404064
push eax
push 0x4d535c
lea edx, [ebp - 0x44]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x44]
call fcn.00404064
push eax
push 0x4d5364
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.00402e9c
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004533e4
jmp 0x4d5291
lea edx, [ebp - 0x4c]
mov eax, 1
call fcn.0040293c
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0040890c
mov eax, dword [ebp - 0x48]
push eax
lea edx, [ebp - 0x50]
mov eax, 0x4d5374
call fcn.0040890c
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00403fb0
jne 0x4d4e7f
xor eax, eax
push ebp
push 0x4d4c10
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004d0bac
lea ecx, [ebp - 0x58]
mov edx, 0x4d5388
mov eax, 0x4d5398
call fcn.00408efc
mov eax, dword [ebp - 0x58]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00408f90
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x54]
call fcn.00408e30
test al, al
je 0x4d4aed
mov eax, 0x4d5398
lea ecx, [ebp - 0x68]
mov edx, 0x4d53ac
call fcn.00408efc
mov eax, dword [ebp - 0x68]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.00408f90
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x64]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x64]
push eax
mov eax, 0x4d5398
lea ecx, [ebp - 0x78]
mov edx, 0x4d53c0
call fcn.00408efc
mov eax, dword [ebp - 0x78]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.00408f90
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x74]
pop edx
call fcn.00408e58
lea ecx, [ebp - 0x88]
mov edx, 0x4d5388
mov eax, 0x4d53d0
call fcn.00408efc
mov eax, dword [ebp - 0x88]
push eax
lea edx, [ebp - 0x90]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.00408f90
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x84]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x84]
call fcn.00408e30
test al, al
je 0x4d4c06
mov eax, 0x4d53d0
lea ecx, [ebp - 0x98]
mov edx, 0x4d53ac
call fcn.00408efc
mov eax, dword [ebp - 0x98]
push eax
lea edx, [ebp - 0xa0]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.00408f90
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x94]
push eax
mov eax, 0x4d53d0
lea ecx, [ebp - 0xa8]
mov edx, 0x4d53c0
call fcn.00408efc
mov eax, dword [ebp - 0xa8]
push eax
lea edx, [ebp - 0xb0]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00408f90
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa4]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0xa4]
pop edx
call fcn.00408e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4c1a
xor eax, eax
push ebp
push 0x4d4e64
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4d5398
lea ecx, [ebp - 0xb8]
mov edx, 0x4d5388
call fcn.00408efc
mov eax, dword [ebp - 0xb8]
push eax
lea edx, [ebp - 0xc0]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.00408f90
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xb4]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0xb4]
call fcn.00408e30
test al, al
je 0x4d4d41
mov eax, 0x4d5398
lea ecx, [ebp - 0xc8]
mov edx, 0x4d53c0
call fcn.00408efc
mov eax, dword [ebp - 0xc8]
push eax
lea edx, [ebp - 0xd0]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.00408f90
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xc4]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0xc4]
push eax
mov eax, 0x4d5398
lea ecx, [ebp - 0xd8]
mov edx, 0x4d5388
call fcn.00408efc
mov eax, dword [ebp - 0xd8]
push eax
lea edx, [ebp - 0xe0]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0xe0]
lea edx, [ebp - 0xdc]
call fcn.00408f90
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xd4]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0xd4]
pop edx
call fcn.00408e58
mov eax, 0x4d53d0
lea ecx, [ebp - 0xe8]
mov edx, 0x4d5388
call fcn.00408efc
mov eax, dword [ebp - 0xe8]
push eax
lea edx, [ebp - 0xf0]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0xf0]
lea edx, [ebp - 0xec]
call fcn.00408f90
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xe4]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0xe4]
call fcn.00408e30
test al, al
je 0x4d4e5a
mov eax, 0x4d53d0
lea ecx, [ebp - 0xf8]
mov edx, 0x4d53c0
call fcn.00408efc
mov eax, dword [ebp - 0xf8]
push eax
lea edx, [ebp - 0x100]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xfc]
call fcn.00408f90
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0xf4]
push eax
mov eax, 0x4d53d0
lea ecx, [ebp - 0x108]
mov edx, 0x4d5388
call fcn.00408efc
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x110]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00408f90
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x104]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x104]
pop edx
call fcn.00408e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4e6e
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004533e4
jmp 0x4d5291
lea edx, [ebp - 0x118]
mov eax, 1
call fcn.0040293c
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.0040890c
mov eax, dword [ebp - 0x114]
push eax
lea edx, [ebp - 0x11c]
mov eax, 0x4d53e8
call fcn.0040890c
mov edx, dword [ebp - 0x11c]
pop eax
call fcn.00403fb0
jne 0x4d4edb
call fcn.004d0cec
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004533e4
jmp 0x4d5291
lea edx, [ebp - 0x124]
mov eax, 1
call fcn.0040293c
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.0040890c
mov eax, dword [ebp - 0x120]
push eax
lea edx, [ebp - 0x128]
mov eax, 0x4d53f8
call fcn.0040890c
mov edx, dword [ebp - 0x128]
pop eax
call fcn.00403fb0
jne 0x4d4fac
mov eax, dword [0x4d8010]
mov eax, dword [eax]
mov byte [eax + 0x4b], 1
call fcn.0045c374
test al, al
jne 0x4d4f42
call fcn.0045c3cc
test al, al
je 0x4d4fb7
mov eax, 0x4da000
call fcn.004d3be8
test eax, eax
jne 0x4d4fb7
lea edx, [ebp - 0x130]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408f90
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x134]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov edx, dword [ebp - 0x134]
xor ecx, ecx
xor eax, eax
call fcn.004d3d10
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004533e4
jmp 0x4d5291
mov eax, dword [0x4d8010]
mov eax, dword [eax]
mov byte [eax + 0x4b], 0
push 0x4d5314
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4d7cb8], eax
cmp dword [0x4d7cb8], 0
jbe 0x4d5003
push 0
push 0
push 0
push 2
mov eax, dword [0x4d7cb8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4d9ff0], eax
mov eax, dword [0x4d8010]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov edx, dword [0x4d9ff0]
mov dword [edx], eax
xor eax, eax
push ebp
push 0x4d528a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4d5176
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4d5398
lea ecx, [ebp - 0x13c]
mov edx, 0x4d5388
call fcn.00408efc
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408f90
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x138]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x138]
call fcn.00408e30
test al, al
je 0x4d516c
lea edx, [ebp - 0x150]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00408f90
mov eax, dword [ebp - 0x14c]
mov edx, 0x4d5398
lea ecx, [ebp - 0x148]
call fcn.0045baf8
mov eax, dword [ebp - 0x148]
call fcn.00408e40
test al, al
je 0x4d516c
lea edx, [ebp - 0x15c]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.00408f90
mov eax, dword [ebp - 0x158]
mov edx, 0x4d5398
lea ecx, [ebp - 0x154]
call fcn.0045baf8
mov eax, dword [ebp - 0x154]
push eax
mov eax, 0x4d5398
lea ecx, [ebp - 0x164]
mov edx, 0x4d5388
call fcn.00408efc
mov eax, dword [ebp - 0x164]
push eax
lea edx, [ebp - 0x16c]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.00408f90
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x160]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x160]
pop edx
call fcn.00408e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5180
xor eax, eax
push ebp
push 0x4d51f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4d5398
lea ecx, [ebp - 0x174]
mov edx, 0x4d53ac
call fcn.00408efc
mov eax, dword [ebp - 0x174]
push eax
lea edx, [ebp - 0x17c]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.004537f8
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.00408f90
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x170]
pop edx
call fcn.0045baf8
mov eax, dword [ebp - 0x170]
call fcn.00408e40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d51fe
call fcn.004c7698
mov ecx, dword [0x4d7db8]
mov eax, dword [0x4d8010]
mov eax, dword [eax]
mov edx, dword [0x4c5274]
call fcn.004532b0
cmp dword [0x4d7cb8], 0
jbe 0x4d5238
mov eax, dword [0x4d7db8]
mov eax, dword [eax]
call fcn.00439e38
mov edx, dword [0x4d9ff0]
mov dword [edx], eax
xor eax, eax
push ebp
push 0x4d525c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d8010]
mov eax, dword [eax]
call fcn.00453330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5266
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5291
mov eax, dword [0x4d9ff0]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x4d7cb8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d52b6
lea eax, [ebp - 0x17c]
mov edx, 0x5c
call fcn.00403c28
ret