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

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x6b3652
call fcn.00664608
sub esp, 0x104
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x110]
push edi
mov dword [ebp + 0x58], esi
call fcn.00502744
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.0053aaaf
test al, al
je 0x503ff2
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.004fac95
lea ecx, [esi + 0x7c]
push eax
call fcn.00427924
lea ecx, [ebp + 0x40]
call fcn.00427afc
mov eax, dword [ebp + 0x60]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp + 0x64]
push ecx
mov ecx, dword [eax + 0xd4]
call fcn.00502459
lea edi, [esi + 0x64]
mov ecx, edi
mov eax, dword [eax]
add eax, 0x130
push eax
call fcn.00427946
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x503fe1
mov eax, dword [edi]
push eax
call fcn.0045270f
test al, al
je 0x504014
or dword [esi + 4], 0xffffffff
mov byte [esi], 1
or ebx, 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.004911bc
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 0x50401e
mov eax, dword [edi]
push 0x5c
push eax
call fcn.00667e5b
mov dword [ebp + 0x68], eax
pop ecx
pop ecx
test eax, eax
je 0x503ff2
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x504039
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.00437771
cmp dword [ebp + 0x54], 8
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 1
jb 0x50406b
mov ecx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x68]
add eax, 2
push eax
push ecx
lea eax, [ebp]
push 0x6eddb8
push eax
call fcn.004577f2
add esp, 0x10
lea edi, [esi + 0x4c]
mov ecx, edi
push eax
call fcn.00427924
lea ecx, [ebp]
call fcn.00427afc
mov eax, dword [ebp + 0x54]
mov byte [ebp - 4], bl
cmp eax, 8
jb 0x5040d5
mov ecx, dword [ebp + 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x5040cc
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
lea eax, [esi + 0x7c]
cmp dword [eax + 0x14], 8
jb 0x5040e0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x54]
push str.__s_
push eax
call fcn.004577f2
add esp, 0xc
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 4], 2
jb 0x504100
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x3c]
push str.__s_
push eax
call fcn.004577f2
add esp, 0xc
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 3
jb 0x504122
mov edx, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x54]
jb 0x50412e
mov ecx, dword [ebp - 0x54]
lea eax, [esi + 0x34]
cmp dword [eax + 0x14], 8
jb 0x504139
mov eax, dword [eax]
push edx
push ecx
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004577f2
add esp, 0x10
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.00502f07
cmp dword [ebp + 0x3c], 8
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 5
jb 0x504165
mov ecx, dword [ebp + 0x28]
cmp dword [eax + 0x14], 8
jb 0x50416d
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp]
push str.__s___s
push eax
call fcn.004577f2
lea ecx, [ebp + 0x28]
add esp, 0x10
cmp ecx, eax
je 0x504193
mov byte [ebp + 0x68], bl
push dword [ebp + 0x68]
push eax
call fcn.00427ad3
lea ecx, [ebp]
call fcn.00427afc
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 4
call fcn.00427afc
lea eax, [ebp - 0x24]
push eax
call fcn.00502f07
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 4], 6
jb 0x5041be
mov eax, dword [edi]
push eax
lea eax, [ebp]
push str._s.log
push eax
call fcn.004577f2
add esp, 0xc
lea ecx, [esi + 0x94]
push eax
call fcn.00427924
lea ecx, [ebp]
call fcn.00427afc
push ebx
lea eax, [esi + 0x94]
push eax
call fcn.00451ac8
lea eax, [esi + 0x94]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x504201
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x504210
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 0x504227
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 0x5042a4
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.006678b0
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 0x504313
mov ecx, dword [ebp + 0x28]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x50431f
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 0x504364
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 0x504382
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.00427afc
lea ecx, [ebp + 0x28]
call fcn.00427afc
lea ecx, [ebp - 0x3c]
call fcn.00427afc
lea ecx, [ebp - 0x54]
call fcn.00427afc
jmp 0x503ff5