Function at 0x420f33
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, 0x4f4
mov eax, dword [0x455090]
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 - 0x428], eax
mov eax, dword [ebp + 0xc]
push 0x44
pop esi
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x4a8]
push esi
push eax
call section..text
push ebx
lea eax, [ebp - 0x4f0]
push esi
push eax
mov dword [ebp - 0x4a8], esi
call section..text
push ebx
lea eax, [ebp - 0x45c]
push 0x10
push eax
mov dword [ebp - 0x4f0], esi
call section..text
mov edi, 0x104
push edi
call fcn.004302aa
push edi
mov dword [ebp - 0x430], eax
call fcn.004302aa
mov esi, 0x208
push esi
mov dword [ebp - 0x414], eax
call fcn.004302aa
push esi
mov dword [ebp - 0x420], eax
call fcn.004302aa
mov esi, eax
add esp, 0x34
mov dword [ebp - 0x444], esi
call fcn.0040117d
test al, al
je 0x421030
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
test eax, eax
je 0x421217
push ebx
push 0x451588
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x421011
push esi
jmp 0x421217
push ebx
mov esi, 0x80
push esi
push 2
push ebx
push 3
push 0x10000000
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x42107a
push dword [ebp - 0x430]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42100b
push dword [ebp - 0x414]
push ebx
push 0x451590
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x42100b
push ebx
mov esi, 0x80
push esi
push 2
push ebx
push 3
push 0x10000000
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40c], eax
cmp eax, 0xffffffff
je 0x421119
call fcn.0040117d
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push 1
push 2
test al, al
je 0x4210dc
lea eax, [ebp - 0x4b4]
push eax
mov dword [ebp - 0x4c4], 0x100
call edi
push eax
push dword [ebp - 0x40c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b0], eax
jmp 0x421119
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x47c], 0x100
call edi
push eax
push dword [ebp - 0x40c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x468], eax
call fcn.0040117d
test al, al
je 0x42115b
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x4f0]
push eax
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push dword [ebp - 0x428]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
jmp 0x421208
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x440], eax
call fcn.00401326
mov edi, eax
inc edi
push edi
call fcn.004302aa
push dword [ebp - 0x428]
mov dword [ebp - 0x43c], edi
lea edi, [ebp - 0x43c]
mov dword [ebp - 0x438], eax
call fcn.00401108
xor ecx, ecx
call fcn.00401326
mov edi, eax
inc edi
push edi
call fcn.004302aa
mov dword [ebp - 0x42c], edi
push ebx
lea edi, [ebp - 0x42c]
mov dword [ebp - 0x428], eax
call fcn.00401108
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x4a8]
push eax
push dword [ebp - 0x428]
push ebx
push 0x8000020
push 1
push ebx
push ebx
push dword [ebp - 0x438]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x428]
mov edi, eax
call fcn.004302b5
push dword [ebp - 0x438]
call fcn.004302b5
pop ecx
pop ecx
cmp edi, ebx
jne 0x421254
call fcn.0040117d
push dword [ebp - 0x444]
call fcn.004302b5
push dword [ebp - 0x420]
call fcn.004302b5
push dword [ebp - 0x414]
call fcn.004302b5
push dword [ebp - 0x430]
call fcn.004302b5
add esp, 0x10
mov eax, 0x643
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043029b
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x440]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x40c]
call edi
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x428], eax
call fcn.0040117d
push ebx
push esi
push 3
push ebx
push 3
push 0x80000000
test al, al
je 0x4212b4
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4212c0
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x41c], ebx
je 0x42134e
call fcn.0040117d
test al, al
je 0x4212f5
push ebx
push esi
push 4
push ebx
push 3
push 0x10000004
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x42134e
mov ecx, dword [ebp - 0x41c]
call fcn.00401326
mov edi, eax
inc edi
push edi
call fcn.004302aa
push dword [ebp - 0x41c]
mov dword [ebp - 0x43c], edi
lea edi, [ebp - 0x43c]
mov dword [ebp - 0x438], eax
call fcn.00401108
pop ecx
pop ecx
push ebx
push esi
push 4
push ebx
push 3
push 0x10000004
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x438]
mov edi, eax
call fcn.004302b5
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x410], ebx
jmp 0x4213bf
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x408], bl
cmp edi, ebx
je 0x4213bf
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp - 0x410]
mov dword [ebp - 0x440], eax
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
push ebx
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push dword [ebp - 0x410]
push ebx
push dword [ebp - 0x440]
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push ebx
lea eax, [ebp - 0x410]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x42135c
cmp edi, ebx
je 0x4213f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040117d
test al, al
je 0x421415
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x421421
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x428], ebx
je 0x421211
cmp dword [ebp - 0x44c], ebx
jne 0x421211
push dword [ebp - 0x444]
call fcn.004302b5
push dword [ebp - 0x420]
call fcn.004302b5
push dword [ebp - 0x414]
call fcn.004302b5
push dword [ebp - 0x430]
call fcn.004302b5
add esp, 0x10
xor eax, eax
jmp 0x421245