Function at 0x407510
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f028
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x44206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x7c0e2304
lea edi, [ecx + 0x14]
mov eax, dword [ebp - 0x24]
mov edx, 0x7c524cc0
mov ecx, dword [edi]
sub edx, eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x20], edi
mov eax, dword [edx]
xor edx, edx
lea esi, [eax*2 + 0x319cf238]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push eax
mov eax, 0x69d39446
sub eax, esi
push eax
call fcn.0040a010
add esp, 8
test eax, eax
jne 0x407580
cmp dword [ebp - 0x14], eax
jne 0x4075ad
mov ecx, dword [edi]
lea eax, [ebp - 0x14]
push eax
mov eax, 0x69d39482
mov edx, 0x69d394a2
sub eax, esi
sub edx, esi
push eax
call fcn.0040a010
mov ebx, dword [ebp - 0x14]
mov edi, eax
add esp, 8
test edi, edi
jne 0x407618
test ebx, ebx
je 0x407618
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
mov esi, 0x69d394b6
sub esi, dword [ebp - 0x18]
mov ecx, eax
mov dword [ebp - 0x24], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4075c0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 3]
test esi, esi
je 0x4075f2
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4075e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4075e0
sub ecx, edx
inc edi
sar ecx, 1
add edi, ecx
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4076c1
lea edi, [eax + 8]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x407630
test ebx, ebx
jne 0x407630
mov edi, 0x8009000d
mov eax, 0x69d391d6
lea ecx, [ebp - 0x1c]
sub eax, esi
push eax
call fcn.0040a9d0
push edi
mov eax, 0x69d391f2
mov dword [ebp - 4], 0
sub eax, esi
push eax
lea eax, [ebp - 0x1c]
push str.___s_:_d
push eax
call fcn.0040c330
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov eax, 0x69d394c6
sub eax, esi
push eax
mov eax, 0x69d39222
sub eax, esi
push eax
call fcn.0040aaf0
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b3e0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4076a4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x20]
call fcn.00408fd0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4076db
push esi
mov esi, dword [ebp - 0x24]
push esi
push str.__s___s
push edi
push ebx
call fcn.00409410
add esp, 0x14
jmp 0x4076ee
mov esi, dword [ebp - 0x24]
push esi
push str.__s_
push edi
push ebx
call fcn.00409410
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40770e
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 0x6f
jmp 0x407612
push 0x44
xor edi, edi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00416710
add esp, 0xc
mov dword [ebp - 0x78], 0x44
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407753
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
jmp 0x40775b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x407612
mov byte [ebp - 0xd], 1
jmp 0x4076a4