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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6b7357
call fcn.00651da4
sub esp, 0x104
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x110]
push edi
call fcn.0050bbcb
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.00546667
or edi, 0xffffffff
test al, al
je 0x50d73d
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.005041a1
lea ecx, [ebx + 0x78]
push eax
call fcn.004281d1
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004284eb
mov eax, dword [ebp + 0x60]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp + 0x58]
push ecx
mov ecx, dword [eax + 0xd4]
call fcn.0050b8b6
mov eax, dword [ebp + 0x58]
lea esi, [ebx + 0x60]
add eax, 0x124
mov ecx, esi
push eax
call fcn.00428217
cmp dword [esi + 0x14], 8
jb 0x50d3cd
mov eax, dword [esi]
jmp 0x50d3cf
mov eax, esi
push eax
call fcn.0045d475
test al, al
je 0x50d3e4
mov byte [ebx], 1
mov dword [ebx + 4], edi
jmp 0x50d73c
cmp dword [esi + 0x14], 8
jb 0x50d3ee
mov eax, dword [esi]
jmp 0x50d3f0
mov eax, esi
push 0x5c
push eax
call fcn.0066cbdb
mov dword [ebp + 0x5c], eax
pop ecx
pop ecx
test eax, eax
je 0x50d73c
cmp dword [esi + 0x14], 8
jb 0x50d40f
mov ecx, dword [esi]
jmp 0x50d411
mov ecx, esi
sub eax, ecx
lea ecx, [ebp]
sar eax, 1
push eax
push 0
push esi
call fcn.0050b9d3
mov ecx, eax
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], esi
jb 0x50d431
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x5c]
add eax, 2
push eax
push ecx
lea eax, [ebp + 0x18]
push 0x6f42d4
push eax
call fcn.00462014
add esp, 0x10
lea edi, [ebx + 0x48]
mov ecx, edi
push eax
call fcn.004281d1
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004284eb
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004284eb
lea eax, [ebx + 0x78]
cmp dword [eax + 0x14], esi
jb 0x50d47b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x54]
push str.__s_
push eax
call fcn.00462014
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], esi
jb 0x50d49a
mov eax, dword [edi]
jmp 0x50d49c
mov eax, edi
push eax
lea eax, [ebp - 0x3c]
push str.__s_
push eax
call fcn.00462014
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], esi
jae 0x50d4bd
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], esi
jae 0x50d4c8
lea ecx, [ebp - 0x54]
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], esi
jb 0x50d4d2
mov eax, dword [eax]
push edx
push ecx
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.00462014
add esp, 0x10
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.0050c384
mov ecx, dword [ebp + 0x40]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x54], esi
jae 0x50d4fd
lea ecx, [ebp + 0x40]
cmp dword [eax + 0x14], esi
jb 0x50d504
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp]
push str.__s___s
push eax
call fcn.00462014
add esp, 0x10
lea ecx, [ebp + 0x40]
push eax
call fcn.004281d1
push 0
push 1
lea ecx, [ebp]
call fcn.004284eb
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.004284eb
lea eax, [ebp - 0x24]
push eax
call fcn.0050c384
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], esi
jb 0x50d552
mov eax, dword [edi]
jmp 0x50d554
mov eax, edi
push eax
lea eax, [ebp]
push str._s.log
push eax
call fcn.00462014
add esp, 0xc
lea esi, [ebx + 0x90]
mov ecx, esi
push eax
call fcn.004281d1
push 0
push 1
lea ecx, [ebp]
call fcn.004284eb
push 0
push esi
call fcn.0045cacc
cmp dword [esi + 0x14], 8
jb 0x50d592
mov eax, dword [esi]
jmp 0x50d594
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x50d5a3
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x50d5b2
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 0x50d62f
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.0066c620
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 0x50d6a0
lea ecx, [ebp + 0x40]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x50d6ac
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 0x50d6ef
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 0x50d70d
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.004284eb
push 0
push ebx
lea ecx, [ebp + 0x40]
call fcn.004284eb
push 0
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004284eb
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004284eb
pop esi
lea ecx, [ebp - 0x110]
call fcn.0049a5a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x6c]
pop ebp
ret