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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6798b5
call fcn.0062921c
sub esp, 0x104
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x110]
push edi
call fcn.00502672
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.00538a07
or edi, 0xffffffff
test al, al
je 0x5041d7
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.004faa30
lea ecx, [ebx + 0x78]
push eax
call fcn.004232e6
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.0042386b
mov eax, dword [ebp + 0x60]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp + 0x58]
push ecx
mov ecx, dword [eax + 0xd4]
call fcn.00502322
mov eax, dword [ebp + 0x58]
lea esi, [ebx + 0x60]
add eax, 0x124
mov ecx, esi
push eax
call fcn.0042332c
cmp dword [esi + 0x14], 8
jb 0x503e67
mov eax, dword [esi]
jmp 0x503e69
mov eax, esi
push eax
call fcn.00455ae5
test al, al
je 0x503e7e
mov byte [ebx], 1
mov dword [ebx + 4], edi
jmp 0x5041d6
cmp dword [esi + 0x14], 8
jb 0x503e88
mov eax, dword [esi]
jmp 0x503e8a
mov eax, esi
push 0x5c
push eax
call fcn.0062e51b
mov dword [ebp + 0x5c], eax
pop ecx
pop ecx
test eax, eax
je 0x5041d6
cmp dword [esi + 0x14], 8
jb 0x503ea9
mov ecx, dword [esi]
jmp 0x503eab
mov ecx, esi
sub eax, ecx
lea ecx, [ebp]
sar eax, 1
push eax
push 0
push esi
call fcn.0050247a
mov ecx, eax
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], esi
jb 0x503ecb
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x5c]
add eax, 2
push eax
push ecx
lea eax, [ebp + 0x18]
push 0x6b180c
push eax
call fcn.004607f4
add esp, 0x10
lea edi, [ebx + 0x48]
mov ecx, edi
push eax
call fcn.004232e6
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.0042386b
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0042386b
lea eax, [ebx + 0x78]
cmp dword [eax + 0x14], esi
jb 0x503f15
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x54]
push str.__s_
push eax
call fcn.004607f4
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], esi
jb 0x503f34
mov eax, dword [edi]
jmp 0x503f36
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push str.__s_
push eax
call fcn.004607f4
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], esi
jae 0x503f57
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], esi
jae 0x503f62
lea ecx, [ebp - 0x54]
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], esi
jb 0x503f6c
mov eax, dword [eax]
push edx
push ecx
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.004607f4
add esp, 0x10
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.00502e1e
mov ecx, dword [ebp + 0x40]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x54], esi
jae 0x503f97
lea ecx, [ebp + 0x40]
cmp dword [eax + 0x14], esi
jb 0x503f9e
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp]
push str.__s___s
push eax
call fcn.004607f4
add esp, 0x10
lea ecx, [ebp + 0x40]
push eax
call fcn.004232e6
push 0
push 1
lea ecx, [ebp]
call fcn.0042386b
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.0042386b
lea eax, [ebp - 0x24]
push eax
call fcn.00502e1e
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], esi
jb 0x503fec
mov eax, dword [edi]
jmp 0x503fee
mov eax, edi
push eax
lea eax, [ebp]
push str._s.log
push eax
call fcn.004607f4
add esp, 0xc
lea esi, [ebx + 0x90]
mov ecx, esi
push eax
call fcn.004232e6
push 0
push 1
lea ecx, [ebp]
call fcn.0042386b
push 0
push esi
call fcn.0045ba8d
cmp dword [esi + 0x14], 8
jb 0x50402c
mov eax, dword [esi]
jmp 0x50402e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x50403d
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x50404c
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 0x5040c9
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.0062e010
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 0x50413a
lea ecx, [ebp + 0x40]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x504146
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 0x504189
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 0x5041a7
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.0042386b
push 0
push ebx
lea ecx, [ebp + 0x40]
call fcn.0042386b
push 0
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042386b
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.0042386b
pop esi
lea ecx, [ebp - 0x110]
call fcn.004970e9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x6c]
pop ebp
ret