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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x69f8c1
call fcn.006375a8
sub esp, 0x104
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x110]
push edi
call fcn.0050b300
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.00545109
or edi, 0xffffffff
test al, al
je 0x50ce65
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.0050344a
lea ecx, [ebx + 0x78]
push eax
call fcn.0042623d
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004267c2
mov eax, dword [ebp + 0x60]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp + 0x58]
push ecx
mov ecx, dword [eax + 0xd4]
call fcn.0050afb0
mov eax, dword [ebp + 0x58]
lea esi, [ebx + 0x60]
add eax, 0x124
mov ecx, esi
push eax
call fcn.00426283
cmp dword [esi + 0x14], 8
jb 0x50caf5
mov eax, dword [esi]
jmp 0x50caf7
mov eax, esi
push eax
call fcn.0045f4bc
test al, al
je 0x50cb0c
mov byte [ebx], 1
mov dword [ebx + 4], edi
jmp 0x50ce64
cmp dword [esi + 0x14], 8
jb 0x50cb16
mov eax, dword [esi]
jmp 0x50cb18
mov eax, esi
push 0x5c
push eax
call fcn.006523db
mov dword [ebp + 0x5c], eax
pop ecx
pop ecx
test eax, eax
je 0x50ce64
cmp dword [esi + 0x14], 8
jb 0x50cb37
mov ecx, dword [esi]
jmp 0x50cb39
mov ecx, esi
sub eax, ecx
lea ecx, [ebp]
sar eax, 1
push eax
push 0
push esi
call fcn.0050b108
mov ecx, eax
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], esi
jb 0x50cb59
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x5c]
add eax, 2
push eax
push ecx
lea eax, [ebp + 0x18]
push 0x6d9ef4
push eax
call fcn.004638e7
add esp, 0x10
lea edi, [ebx + 0x48]
mov ecx, edi
push eax
call fcn.0042623d
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004267c2
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004267c2
lea eax, [ebx + 0x78]
cmp dword [eax + 0x14], esi
jb 0x50cba3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x54]
push str.__s_
push eax
call fcn.004638e7
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], esi
jb 0x50cbc2
mov eax, dword [edi]
jmp 0x50cbc4
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push str.__s_
push eax
call fcn.004638e7
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], esi
jae 0x50cbe5
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], esi
jae 0x50cbf0
lea ecx, [ebp - 0x54]
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], esi
jb 0x50cbfa
mov eax, dword [eax]
push edx
push ecx
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.004638e7
add esp, 0x10
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.0050baac
mov ecx, dword [ebp + 0x40]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x54], esi
jae 0x50cc25
lea ecx, [ebp + 0x40]
cmp dword [eax + 0x14], esi
jb 0x50cc2c
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp]
push str.__s___s
push eax
call fcn.004638e7
add esp, 0x10
lea ecx, [ebp + 0x40]
push eax
call fcn.0042623d
push 0
push 1
lea ecx, [ebp]
call fcn.004267c2
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004267c2
lea eax, [ebp - 0x24]
push eax
call fcn.0050baac
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], esi
jb 0x50cc7a
mov eax, dword [edi]
jmp 0x50cc7c
mov eax, edi
push eax
lea eax, [ebp]
push str._s.log
push eax
call fcn.004638e7
add esp, 0xc
lea esi, [ebx + 0x90]
mov ecx, esi
push eax
call fcn.0042623d
push 0
push 1
lea ecx, [ebp]
call fcn.004267c2
push 0
push esi
call fcn.0045eb63
cmp dword [esi + 0x14], 8
jb 0x50ccba
mov eax, dword [esi]
jmp 0x50ccbc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x50cccb
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x50ccda
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 0x50cd57
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.00651ed0
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 0x50cdc8
lea ecx, [ebp + 0x40]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x50cdd4
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 0x50ce17
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 0x50ce35
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.004267c2
push 0
push ebx
lea ecx, [ebp + 0x40]
call fcn.004267c2
push 0
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004267c2
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004267c2
pop esi
lea ecx, [ebp - 0x110]
call fcn.0049a943
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x6c]
pop ebp
ret