Function at 0x407d78
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a298
push 0x4092a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffe80
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
cmp dword [0x40ca60], 0
je 0x407e4b
push 0
push 2
call dword [0x40c3c8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14c], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x148]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14c], 0x128
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [0x40c3c4]
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x40826f
cmp dword [ebp + 8], 0
jne 0x407e56
jmp 0x40826f
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [ebp - 0x178], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x190], eax
push 0x1c
lea ecx, [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp dword [ebp - 0x158], 0x1000
je 0x407ec3
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40826f
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x170], edx
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x18c], eax
mov word [ebp - 0x180], 0
mov ecx, dword [ebp - 0x18c]
xor edx, edx
mov dx, word [ecx]
test edx, edx
jne 0x407ef5
jmp 0x407f12
mov eax, dword [ebp - 0x18c]
sub eax, 2
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
cmp ecx, dword [ebp - 0x170]
jae 0x407ee4
mov edx, dword [ebp - 0x18c]
cmp edx, dword [ebp - 0x170]
jae 0x407f25
jmp 0x408035
mov eax, dword [ebp - 0x18c]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x407f36
jmp 0x407f53
mov edx, dword [ebp - 0x18c]
sub edx, 2
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
cmp eax, dword [ebp - 0x170]
jae 0x407f25
mov ecx, dword [ebp - 0x18c]
cmp ecx, dword [ebp - 0x170]
jae 0x407f66
jmp 0x408035
mov edx, dword [ebp - 0x18c]
xor eax, eax
mov ax, word [edx]
test eax, eax
jne 0x407f77
jmp 0x407f94
mov ecx, dword [ebp - 0x18c]
sub ecx, 2
mov dword [ebp - 0x18c], ecx
mov edx, dword [ebp - 0x18c]
cmp edx, dword [ebp - 0x170]
jae 0x407f66
mov eax, dword [ebp - 0x18c]
cmp eax, dword [ebp - 0x170]
jae 0x407fa7
jmp 0x408035
mov ecx, dword [ebp - 0x18c]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x407fb8
jmp 0x407fd5
mov eax, dword [ebp - 0x18c]
sub eax, 2
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
cmp ecx, dword [ebp - 0x170]
jae 0x407fa7
mov edx, dword [ebp - 0x18c]
cmp edx, dword [ebp - 0x170]
jae 0x407fe5
jmp 0x408035
mov eax, dword [ebp - 0x18c]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
jne 0x407ff6
jmp 0x408013
mov edx, dword [ebp - 0x18c]
sub edx, 2
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
cmp eax, dword [ebp - 0x170]
jae 0x407fe5
mov ecx, dword [ebp - 0x18c]
cmp ecx, dword [ebp - 0x170]
jae 0x408023
jmp 0x408035
mov edx, dword [ebp - 0x18c]
sub edx, 0x206
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x408067
jmp 0x40826f
push 0x1c
lea edx, [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x18c]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp dword [ebp - 0x158], 0x1000
je 0x4080a2
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40826f
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x15c]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0x10000
jbe 0x4080d0
mov dword [ebp - 0x174], 0x10000
mov ecx, dword [ebp - 0x174]
add ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x16c], eax
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
mov ecx, dword [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 0
push 0x104
mov edx, dword [ebp + 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x16c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ecx, dword [ebp - 0x16c]
xor edx, edx
mov dx, word [ecx + 0x208]
test edx, edx
jne 0x408157
jmp 0x40826f
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x206
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18c]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x40818d
jmp 0x40819e
mov ecx, dword [ebp - 0x18c]
add ecx, 2
mov dword [ebp - 0x18c], ecx
jmp 0x40817c
mov edx, dword [ebp - 0x18c]
xor eax, eax
mov ax, word [edx]
test eax, eax
jne 0x4081af
jmp 0x4081c0
mov ecx, dword [ebp - 0x18c]
add ecx, 2
mov dword [ebp - 0x18c], ecx
jmp 0x40819e
mov edx, dword [ebp - 0x18c]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x4081d1
jmp 0x4081e2
mov ecx, dword [ebp - 0x18c]
add ecx, 2
mov dword [ebp - 0x18c], ecx
jmp 0x4081c0
mov edx, dword [ebp - 0x18c]
xor eax, eax
mov ax, word [edx]
test eax, eax
jne 0x4081f3
jmp 0x408204
mov ecx, dword [ebp - 0x18c]
add ecx, 2
mov dword [ebp - 0x18c], ecx
jmp 0x4081e2
mov edx, dword [ebp - 0x18c]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x408215
jmp 0x408226
mov ecx, dword [ebp - 0x18c]
add ecx, 2
mov dword [ebp - 0x18c], ecx
jmp 0x408204
push 0
push 0
push 0x104
mov edx, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 4], 0xffffffff
jmp 0x40825f
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret