Function at 0x4205c3
Capabilities:
Create process on windows
Delete file
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ec
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0xc]
push 0x44
pop esi
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x4e8]
push esi
push eax
call section..text
push ebx
lea eax, [ebp - 0x4a0]
push esi
push eax
mov dword [ebp - 0x4e8], esi
call section..text
push ebx
lea eax, [ebp - 0x454]
push 0x10
push eax
mov dword [ebp - 0x4a0], esi
call section..text
mov esi, 0x104
push esi
call fcn.004315aa
push esi
mov dword [ebp - 0x438], eax
call fcn.004315aa
mov edi, 0x208
push edi
mov dword [ebp - 0x430], eax
call fcn.004315aa
push edi
mov dword [ebp - 0x418], eax
call fcn.004315aa
add esp, 0x34
push dword [ebp - 0x418]
mov edi, eax
push esi
mov dword [ebp - 0x428], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
test eax, eax
je 0x4208ee
push ebx
push 0x453ee4
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x420698
push edi
jmp 0x4208ee
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov edi, 0x80
push edi
push 2
push ebx
push 3
push 0x10000000
push dword [ebp - 0x428]
call esi
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
je 0x42070c
push ebx
push 1
push 2
lea eax, [ebp - 0x464]
push eax
mov dword [ebp - 0x474], 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x4a0]
push eax
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push dword [ebp - 0x40c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4208e8
push 0xffffffffffffffff
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebx
push edi
push 3
push ebx
push 3
push 0x80000000
push dword [ebp - 0x428]
mov dword [ebp - 0x444], eax
call esi
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x40c], ebx
cmp dword [ebp - 0x420], ebx
je 0x4207c7
push ebx
push edi
push 4
push ebx
push 3
push 0x10000004
push dword [ebp - 0x420]
call esi
mov dword [ebp - 0x40c], eax
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x410], ebx
mov edi, 0x3ff
jmp 0x420855
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x408], bl
cmp dword [ebp - 0x40c], ebx
je 0x420855
push 2
push ebx
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp - 0x410]
mov dword [ebp - 0x424], eax
push ebx
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LockFile]
push ebx
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push dword [ebp - 0x410]
push ebx
push dword [ebp - 0x424]
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x4207da
cmp dword [ebp - 0x40c], ebx
je 0x42088d
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x444], ebx
je 0x4208e8
cmp dword [ebp - 0x440], ebx
jne 0x4208e8
push dword [ebp - 0x428]
call fcn.004315b5
push dword [ebp - 0x418]
call fcn.004315b5
push dword [ebp - 0x430]
call fcn.004315b5
push dword [ebp - 0x438]
call fcn.004315b5
add esp, 0x10
xor eax, eax
jmp 0x42091c
push dword [ebp - 0x428]
call fcn.004315b5
push dword [ebp - 0x418]
call fcn.004315b5
push dword [ebp - 0x430]
call fcn.004315b5
push dword [ebp - 0x438]
call fcn.004315b5
mov eax, 0x643
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043159b
leave
ret