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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6a8965
call fcn.00640244
sub esp, 0x104
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x110]
push edi
call fcn.0050e263
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.005488bb
or edi, 0xffffffff
test al, al
je 0x50fdd5
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.00506795
lea ecx, [ebx + 0x78]
push eax
call fcn.00427c6d
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004281f2
mov eax, dword [ebp + 0x60]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp + 0x58]
push ecx
mov ecx, dword [eax + 0xd4]
call fcn.0050df13
mov eax, dword [ebp + 0x58]
lea esi, [ebx + 0x60]
add eax, 0x124
mov ecx, esi
push eax
call fcn.00427cb3
cmp dword [esi + 0x14], 8
jb 0x50fa65
mov eax, dword [esi]
jmp 0x50fa67
mov eax, esi
push eax
call fcn.00461054
test al, al
je 0x50fa7c
mov byte [ebx], 1
mov dword [ebx + 4], edi
jmp 0x50fdd4
cmp dword [esi + 0x14], 8
jb 0x50fa86
mov eax, dword [esi]
jmp 0x50fa88
mov eax, esi
push 0x5c
push eax
call fcn.0065b08b
mov dword [ebp + 0x5c], eax
pop ecx
pop ecx
test eax, eax
je 0x50fdd4
cmp dword [esi + 0x14], 8
jb 0x50faa7
mov ecx, dword [esi]
jmp 0x50faa9
mov ecx, esi
sub eax, ecx
lea ecx, [ebp]
sar eax, 1
push eax
push 0
push esi
call fcn.0050e06b
mov ecx, eax
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], esi
jb 0x50fac9
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x5c]
add eax, 2
push eax
push ecx
lea eax, [ebp + 0x18]
push 0x6e475c
push eax
call fcn.004654e1
add esp, 0x10
lea edi, [ebx + 0x48]
mov ecx, edi
push eax
call fcn.00427c6d
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004281f2
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004281f2
lea eax, [ebx + 0x78]
cmp dword [eax + 0x14], esi
jb 0x50fb13
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x54]
push str.__s_
push eax
call fcn.004654e1
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], esi
jb 0x50fb32
mov eax, dword [edi]
jmp 0x50fb34
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push str.__s_
push eax
call fcn.004654e1
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], esi
jae 0x50fb55
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], esi
jae 0x50fb60
lea ecx, [ebp - 0x54]
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], esi
jb 0x50fb6a
mov eax, dword [eax]
push edx
push ecx
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.004654e1
add esp, 0x10
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.0050ea1c
mov ecx, dword [ebp + 0x40]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x54], esi
jae 0x50fb95
lea ecx, [ebp + 0x40]
cmp dword [eax + 0x14], esi
jb 0x50fb9c
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp]
push str.__s___s
push eax
call fcn.004654e1
add esp, 0x10
lea ecx, [ebp + 0x40]
push eax
call fcn.00427c6d
push 0
push 1
lea ecx, [ebp]
call fcn.004281f2
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004281f2
lea eax, [ebp - 0x24]
push eax
call fcn.0050ea1c
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], esi
jb 0x50fbea
mov eax, dword [edi]
jmp 0x50fbec
mov eax, edi
push eax
lea eax, [ebp]
push str._s.log
push eax
call fcn.004654e1
add esp, 0xc
lea esi, [ebx + 0x90]
mov ecx, esi
push eax
call fcn.00427c6d
push 0
push 1
lea ecx, [ebp]
call fcn.004281f2
push 0
push esi
call fcn.004606fb
cmp dword [esi + 0x14], 8
jb 0x50fc2a
mov eax, dword [esi]
jmp 0x50fc2c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x50fc3b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x50fc4a
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 0x50fcc7
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.0065ab80
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 0x50fd38
lea ecx, [ebp + 0x40]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x50fd44
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 0x50fd87
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 0x50fda5
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.004281f2
push 0
push ebx
lea ecx, [ebp + 0x40]
call fcn.004281f2
push 0
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004281f2
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004281f2
pop esi
lea ecx, [ebp - 0x110]
call fcn.0049dceb
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x6c]
pop ebp
ret