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

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x6bd0c5
call fcn.0066bd6c
sub esp, 0x104
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x110]
push edi
mov dword [ebp + 0x58], esi
call fcn.0050f500
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
lea eax, [ebp + 0x60]
mov dword [ebp - 4], ebx
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.00547851
test al, al
je 0x510dae
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 0xd8]
imul eax, dword [ebp - 0xb4], 0xa0
add eax, dword [ecx + 4]
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.00507a71
lea ecx, [esi + 0x7c]
push eax
call fcn.00427394
lea ecx, [ebp + 0x40]
call fcn.0042756c
mov eax, dword [ebp + 0x60]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp + 0x64]
push ecx
mov ecx, dword [eax + 0xd4]
call fcn.0050f215
lea edi, [esi + 0x64]
mov ecx, edi
mov eax, dword [eax]
add eax, 0x130
push eax
call fcn.004273b6
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x510d9d
mov eax, dword [edi]
push eax
call fcn.00458d4c
test al, al
je 0x510dd0
or dword [esi + 4], 0xffffffff
mov byte [esi], 1
or ebx, 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.0049e08b
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x74
leave
ret
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x510dda
mov eax, dword [edi]
push 0x5c
push eax
call fcn.0066f61b
mov dword [ebp + 0x68], eax
pop ecx
pop ecx
test eax, eax
je 0x510dae
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x510df5
mov ecx, dword [edi]
sub eax, ecx
mov dword [ebp + 0x40], ebx
sar eax, 1
lea ecx, [ebp + 0x40]
push eax
push ebx
xor edx, edx
mov dword [ebp + 0x50], ebx
push edi
mov dword [ebp + 0x54], 7
mov word [ebp + 0x40], dx
call fcn.00437260
cmp dword [ebp + 0x54], 8
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 1
jb 0x510e27
mov ecx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x68]
add eax, 2
push eax
push ecx
lea eax, [ebp]
push 0x6f7fd8
push eax
call fcn.004646d1
add esp, 0x10
lea edi, [esi + 0x4c]
mov ecx, edi
push eax
call fcn.00427394
lea ecx, [ebp]
call fcn.0042756c
mov eax, dword [ebp + 0x54]
mov byte [ebp - 4], bl
cmp eax, 8
jb 0x510e91
mov ecx, dword [ebp + 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x510e88
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
lea eax, [esi + 0x7c]
cmp dword [eax + 0x14], 8
jb 0x510e9c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x54]
push str.__s_
push eax
call fcn.004646d1
add esp, 0xc
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 4], 2
jb 0x510ebc
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x3c]
push str.__s_
push eax
call fcn.004646d1
add esp, 0xc
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 3
jb 0x510ede
mov edx, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x54]
jb 0x510eea
mov ecx, dword [ebp - 0x54]
lea eax, [esi + 0x34]
cmp dword [eax + 0x14], 8
jb 0x510ef5
mov eax, dword [eax]
push edx
push ecx
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004646d1
add esp, 0x10
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.0050fcc3
cmp dword [ebp + 0x3c], 8
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 5
jb 0x510f21
mov ecx, dword [ebp + 0x28]
cmp dword [eax + 0x14], 8
jb 0x510f29
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp]
push str.__s___s
push eax
call fcn.004646d1
lea ecx, [ebp + 0x28]
add esp, 0x10
cmp ecx, eax
je 0x510f4f
mov byte [ebp + 0x68], bl
push dword [ebp + 0x68]
push eax
call fcn.00427543
lea ecx, [ebp]
call fcn.0042756c
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 4
call fcn.0042756c
lea eax, [ebp - 0x24]
push eax
call fcn.0050fcc3
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 4], 6
jb 0x510f7a
mov eax, dword [edi]
push eax
lea eax, [ebp]
push str._s.log
push eax
call fcn.004646d1
add esp, 0xc
lea ecx, [esi + 0x94]
push eax
call fcn.00427394
lea ecx, [ebp]
call fcn.0042756c
push ebx
lea eax, [esi + 0x94]
push eax
call fcn.0045e9c3
lea eax, [esi + 0x94]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x510fbd
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x510fcc
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [esi + 0x94]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x510fe3
mov ecx, dword [eax]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 0xac], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea eax, [ebp + 0x70]
push 2
push 1
push ebx
push eax
call edi
push eax
push dword [esi + 0xac]
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call esi
push 2
push 1
push ebx
lea eax, [ebp + 0x6c]
push eax
call edi
push eax
mov eax, dword [ebp + 0x58]
push dword [eax + 0xac]
call edi
push eax
call esi
mov esi, dword [ebp + 0x58]
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esi + 0x94]
cmp dword [eax + 0x14], 8
jb 0x511060
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0x44
mov dword [esi + 0xac], eax
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.0066f070
xor eax, eax
mov dword [ebp - 0x98], 0x44
lea edi, [ebp + 0x18]
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 + 0x70]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp dword [ebp + 0x3c], 8
lea ecx, [ebp + 0x28]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x6c], 0x100
mov byte [esi], 1
jb 0x5110cf
mov ecx, dword [ebp + 0x28]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x5110db
mov eax, dword [ebp - 0x24]
lea edx, [ebp + 0x18]
push edx
lea edx, [ebp - 0x98]
push edx
push ebx
push ebx
push 0x8004000
push 1
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0x70]
test eax, eax
je 0x511120
call edi
push dword [ebp + 0x6c]
call edi
mov eax, dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 8], eax
call edi
jmp 0x51113e
call edi
push dword [ebp + 0x6c]
call edi
push dword [esi + 0xac]
call edi
or dword [esi + 0xac], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea ecx, [ebp - 0x24]
call fcn.0042756c
lea ecx, [ebp + 0x28]
call fcn.0042756c
lea ecx, [ebp - 0x3c]
call fcn.0042756c
lea ecx, [ebp - 0x54]
call fcn.0042756c
jmp 0x510db1