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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6aac75
call fcn.006426c4
sub esp, 0x104
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x110]
push edi
call fcn.0050f19b
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebx + 0x18]
push eax
call fcn.0054a132
or edi, 0xffffffff
test al, al
je 0x510d12
mov eax, dword [ebp + 0x60]
push esi
mov ecx, dword [eax + 0xd8]
imul eax, dword [ebp - 0xb4], 0x9c
add eax, dword [ecx + 4]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.005072ed
lea ecx, [ebx + 0x78]
push eax
call fcn.00428071
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004285f6
mov eax, dword [ebp + 0x60]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp + 0x58]
push ecx
mov ecx, dword [eax + 0xd4]
call fcn.0050ee86
mov eax, dword [ebp + 0x58]
lea esi, [ebx + 0x60]
add eax, 0x124
mov ecx, esi
push eax
call fcn.004280b7
cmp dword [esi + 0x14], 8
jb 0x5109a2
mov eax, dword [esi]
jmp 0x5109a4
mov eax, esi
push eax
call fcn.004618ab
test al, al
je 0x5109b9
mov byte [ebx], 1
mov dword [ebx + 4], edi
jmp 0x510d11
cmp dword [esi + 0x14], 8
jb 0x5109c3
mov eax, dword [esi]
jmp 0x5109c5
mov eax, esi
push 0x5c
push eax
call fcn.0065d51b
mov dword [ebp + 0x5c], eax
pop ecx
pop ecx
test eax, eax
je 0x510d11
cmp dword [esi + 0x14], 8
jb 0x5109e4
mov ecx, dword [esi]
jmp 0x5109e6
mov ecx, esi
sub eax, ecx
lea ecx, [ebp]
sar eax, 1
push eax
push 0
push esi
call fcn.0050efa3
mov ecx, eax
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], esi
jb 0x510a06
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x5c]
add eax, 2
push eax
push ecx
lea eax, [ebp + 0x18]
push 0x6e77fc
push eax
call fcn.00465d7f
add esp, 0x10
lea edi, [ebx + 0x48]
mov ecx, edi
push eax
call fcn.00428071
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004285f6
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004285f6
lea eax, [ebx + 0x78]
cmp dword [eax + 0x14], esi
jb 0x510a50
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x54]
push str.__s_
push eax
call fcn.00465d7f
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], esi
jb 0x510a6f
mov eax, dword [edi]
jmp 0x510a71
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push str.__s_
push eax
call fcn.00465d7f
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], esi
jae 0x510a92
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], esi
jae 0x510a9d
lea ecx, [ebp - 0x54]
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], esi
jb 0x510aa7
mov eax, dword [eax]
push edx
push ecx
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.00465d7f
add esp, 0x10
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.0050f959
mov ecx, dword [ebp + 0x40]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x54], esi
jae 0x510ad2
lea ecx, [ebp + 0x40]
cmp dword [eax + 0x14], esi
jb 0x510ad9
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp]
push str.__s___s
push eax
call fcn.00465d7f
add esp, 0x10
lea ecx, [ebp + 0x40]
push eax
call fcn.00428071
push 0
push 1
lea ecx, [ebp]
call fcn.004285f6
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004285f6
lea eax, [ebp - 0x24]
push eax
call fcn.0050f959
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], esi
jb 0x510b27
mov eax, dword [edi]
jmp 0x510b29
mov eax, edi
push eax
lea eax, [ebp]
push str._s.log
push eax
call fcn.00465d7f
add esp, 0xc
lea esi, [ebx + 0x90]
mov ecx, esi
push eax
call fcn.00428071
push 0
push 1
lea ecx, [ebp]
call fcn.004285f6
push 0
push esi
call fcn.00460f52
cmp dword [esi + 0x14], 8
jb 0x510b67
mov eax, dword [esi]
jmp 0x510b69
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x510b78
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x510b87
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebx + 0xa8], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea eax, [ebp + 0x68]
push 2
push 1
push 0
push eax
call edi
push eax
push dword [ebx + 0xa8]
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call esi
push 2
push 1
push 0
lea eax, [ebp + 0x64]
push eax
call edi
push eax
push dword [ebx + 0xa8]
call edi
push eax
call esi
push dword [ebx + 0xa8]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
lea eax, [ebx + 0x90]
cmp dword [eax + 0x14], 8
jb 0x510c04
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0x44
mov dword [ebx + 0xa8], eax
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.0065d010
xor eax, eax
mov dword [ebp - 0x98], 0x44
lea edi, [ebp + 0x30]
add esp, 0xc
stosd dword es:[edi], eax
push 0xfffffffffffffff6
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp dword [ebp + 0x54], 8
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x6c], 0x100
mov byte [ebx], 1
jae 0x510c75
lea ecx, [ebp + 0x40]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x510c81
lea eax, [ebp - 0x24]
lea edx, [ebp + 0x30]
push edx
lea edx, [ebp - 0x98]
push edx
xor edx, edx
push edx
push edx
push 0x8004000
push 1
push edx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
push dword [ebp + 0x68]
test eax, eax
je 0x510cc4
call esi
push dword [ebp + 0x64]
call esi
mov eax, dword [ebp + 0x38]
push dword [ebp + 0x34]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebx + 8], eax
call esi
xor edi, edi
jmp 0x510ce2
call esi
push dword [ebp + 0x64]
call esi
push dword [ebx + 0xa8]
call esi
or dword [ebx + 0xa8], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
xor ebx, ebx
lea ecx, [ebp - 0x24]
push 0
inc ebx
push ebx
call fcn.004285f6
push 0
push ebx
lea ecx, [ebp + 0x40]
call fcn.004285f6
push 0
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004285f6
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004285f6
pop esi
lea ecx, [ebp - 0x110]
call fcn.0049e439
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x6c]
pop ebp
ret