Function at 0x5056a0
Capabilities:
Create process on windows
Delete file
Get common file path
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x51b88b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x55c
push ebx
push ebp
push esi
push edi
push 0xc
call fcn.0050b1d3
add esp, 4
mov dword [esp + 0x18], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x574], edi
je 0x5056e8
push str._files...
mov ecx, eax
call fcn.004f8c20
jmp 0x5056ea
xor eax, eax
cmp eax, edi
mov dword [esp + 0x574], 0xffffffff
mov dword [esp + 0x28], eax
jne 0x505707
push 0x8007000e
call fcn.0051a3e0
mov ebx, 1
push 0xc
mov dword [esp + 0x578], ebx
call fcn.0050b1d3
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
mov byte [esp + 0x574], 2
je 0x50573e
mov ecx, dword [esp + 0x57c]
push ecx
mov ecx, eax
call fcn.004f8c20
jmp 0x505740
xor eax, eax
cmp eax, edi
mov byte [esp + 0x574], bl
mov dword [esp + 0x30], eax
jne 0x505759
push 0x8007000e
call fcn.0051a3e0
lea edx, [esp + 0x30]
lea eax, [esp + 0x1c]
push edx
push str.Enumerating
push eax
mov byte [esp + 0x580], 3
call fcn.00501a70
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, eax
mov byte [esp + 0x57c], 4
call fcn.004f8a30
mov eax, dword [eax]
mov byte [esp + 0x574], 5
cmp eax, edi
je 0x5057a1
mov edi, dword [eax]
mov ebp, dword [esp + 0x584]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [ebp + 0x14]
push ebx
call esi
push edi
mov ecx, ebp
call fcn.004f8950
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x34]
call fcn.004f8bd0
lea ecx, [esp + 0x1c]
call fcn.004f8bd0
lea ecx, [esp + 0x30]
call fcn.004f8bd0
lea ecx, [esp + 0x28]
mov dword [esp + 0x574], 0xffffffff
call fcn.004f8bd0
lea eax, [esp + 0x94]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x94]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00502990
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x574], 6
test eax, eax
je 0x505833
mov eax, dword [eax]
jmp 0x505835
xor eax, eax
push eax
mov eax, dword [esp + 0x580]
push eax
lea ecx, [esp + 0x2a4]
push str.cmd.exe__c_chcp_65001__set_DIRCMD___cmd__c_dir__4__a__s__s____s_
push ecx
call fcn.0050adff
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x68]
add esp, 0x10
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x54], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x40]
lea eax, [esp + 0x50]
push edx
push eax
push 0
push 0
push 0x8000000
push 0
push 0
lea ecx, [esp + 0x2b8]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x5058ad
lea ecx, [esp + 0x14]
call fcn.004f8bd0
xor al, al
jmp 0x505bdd
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push 0
push eax
push 2
mov dword [esp + 0x4c], edx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ecx, dword [esp + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
test al, al
je 0x505948
mov eax, dword [esp + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x40]
push ecx
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x505911
mov edi, dword [eax]
jmp 0x505913
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x505934
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x20
jne 0x505934
push edi
call ebx
test eax, eax
je 0x505926
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x505941
call fcn.004f8ce0
xor al, al
jmp 0x505bdd
mov edx, dword [esp + 0x40]
push edx
call edi
push 0xc
call fcn.0050b1d3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x574], 7
je 0x505977
push str._files...
mov ecx, eax
call fcn.004f8c20
jmp 0x505979
xor eax, eax
test eax, eax
mov byte [esp + 0x574], 6
mov dword [esp + 0x18], eax
jne 0x505993
push 0x8007000e
call fcn.0051a3e0
push 0xc
mov byte [esp + 0x578], 8
call fcn.0050b1d3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x574], 9
je 0x5059c6
mov ecx, dword [esp + 0x57c]
push ecx
mov ecx, eax
call fcn.004f8c20
jmp 0x5059c8
xor eax, eax
test eax, eax
mov byte [esp + 0x574], 8
mov dword [esp + 0x20], eax
jne 0x5059e2
push 0x8007000e
call fcn.0051a3e0
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push str.Processing
push eax
mov byte [esp + 0x580], 0xa
call fcn.00501a70
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, eax
mov byte [esp + 0x57c], 0xb
call fcn.004f8a30
mov eax, dword [eax]
mov byte [esp + 0x574], 0xc
test eax, eax
je 0x505a2c
mov edi, dword [eax]
jmp 0x505a2e
xor edi, edi
push ebx
call esi
push edi
mov ecx, ebp
call fcn.004f8950
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
xor esi, esi
cmp ecx, esi
je 0x505a53
call fcn.004f8ce0
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
je 0x505a64
call fcn.004f8ce0
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x20]
cmp ecx, esi
je 0x505a75
call fcn.004f8ce0
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x574], 6
cmp ecx, esi
je 0x505a8a
call fcn.004f8ce0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x505a96
mov eax, dword [eax]
jmp 0x505a98
xor eax, eax
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push eax
call fcn.004fb080
mov edi, eax
push esi
push edi
call fcn.004fb3a0
push esi
push esi
push esi
push 2
push esi
push edi
mov dword [esp + 0x58], eax
call fcn.004fb260
push esi
push esi
mov ebx, eax
push esi
push 4
push ebx
call fcn.004fb2f0
mov ebp, eax
add esp, 0x50
cmp ebp, esi
mov esi, dword [esp + 0x580]
mov byte [esp + 0x13], 0
je 0x505b0a
mov eax, dword [esp + 0x584]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ecx
push ebp
call fcn.00504f90
add esp, 0x10
mov byte [esp + 0x13], al
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x505b24
mov eax, dword [eax]
jmp 0x505b26
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x505b3d
mov edx, dword [eax]
mov dword [esp + 0x18], edx
jmp 0x505b41
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, ebp
jbe 0x505bb9
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
add eax, 4
mov eax, dword [eax]
test eax, eax
je 0x505b5c
mov eax, dword [eax]
jmp 0x505b5e
xor eax, eax
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.0050c360
add esp, 8
test eax, eax
jne 0x505bab
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
test ebx, ebx
je 0x505b89
mov ecx, ebx
call fcn.005080f0
push ebx
call fcn.0050b1c8
add esp, 4
mov eax, dword [esi + 4]
dec eax
mov ecx, eax
mov dword [esi + 4], eax
mov eax, dword [esi]
add ecx, ebp
shl ecx, 2
lea edx, [eax + edi*4 + 4]
push ecx
lea eax, [eax + edi*4]
push edx
push eax
call fcn.0050b230
add esp, 0xc
mov eax, dword [esi + 4]
inc edi
add ebp, 0x3fffffff
cmp edi, eax
jb 0x505b4a
mov ecx, dword [esp + 0x57c]
mov dx, word [ecx]
push edx
call fcn.0050a2e0
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x505bd9
call fcn.004f8ce0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x56c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x568
ret