Function at 0x412880
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac068
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x677e70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4128c8
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [eax], 0
lea ebx, [ecx + 8]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], ebx
push eax
mov ecx, ebx
call fcn.004139d0
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.004139b0
mov esi, dword [ebp - 0x2c]
cmp esi, dword [eax + 8]
setne al
test al, al
je 0x412bfe
mov ebx, dword [ebp + 0xc]
nop
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x41290b
xor eax, eax
jmp 0x41290d
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov edi, esi
mov eax, dword [eax + 4]
dec ecx
shr edi, 2
and esi, 3
and ecx, edi
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 4]
dec eax
cmp eax, 5
ja case.default.0x412931
jmp dword [eax*4 + 0x412c20]
test edx, edx
jne 0x412940
xor eax, eax
jmp 0x412942
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + esi*4]
push dword [edi + 0xc]
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x4128af
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 8]
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je case.default.0x412931
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.default.0x412931
test edx, edx
jne 0x4129b9
xor eax, eax
jmp 0x4129bb
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
push 1
push 0
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + esi*4]
push dword [eax + 0xc]
push dword [eax + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp case.default.0x412931
test edx, edx
jne 0x4129ee
xor eax, eax
jmp 0x4129f0
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov dword [ebp - 0x20], 0
mov eax, dword [eax + ecx*4]
mov ebx, dword [eax + esi*4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
call fcn.00404520
test eax, eax
je 0x412c14
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, eax
lea ecx, [esi + 0x10]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 2
lea edi, [ebx + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi]
call fcn.0042d960
push dword [edi]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x412ad3
push str..pending
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00413ba0
add esp, 0xc
push dword [eax]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412a91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..pending
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00413ba0
add esp, 0xc
push 5
push dword [edi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412aca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412aec
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call edi
push 0
mov dword [ebp - 4], 0xffffffff
call edi
mov ebx, dword [ebp + 0xc]
jmp case.default.0x412931
test edx, edx
jne 0x412b11
xor eax, eax
jmp 0x412b13
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + esi*4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp case.default.0x412931
test edx, edx
jne 0x412b38
xor eax, eax
jmp 0x412b3a
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx + 8]
call fcn.00410180
jmp case.default.0x412931
test edx, edx
jne 0x412b5e
xor eax, eax
jmp 0x412b60
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + esi*4]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x412b86
push ecx
push str.UTIL_NSPACE::Com::RunCmd_1
jmp 0x412bc5
push dword [esi + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00413b00
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x412bb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x412bbf
call esi
jmp case.default.0x412931
push ecx
push str.UTIL_NSPACE::Com::RunCmd_2
push 2
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
test ebx, ebx
je 0x412bd9
call ebx
push ecx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004138e0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x40]
push eax
call fcn.004139b0
mov esi, dword [ebp - 0x2c]
cmp esi, dword [eax + 8]
jne 0x412900
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404b10
nop
cmp byte [ecx], ch
inc ecx
add byte [ecx - 0x19ffbed7], dh
sub dword [ecx], eax
or dword [ebx], ebp
inc ecx
add byte [eax], dh
sub eax, dword [ecx]
push esi
sub eax, dword [ecx]
int3