Function at 0x4033a9
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 [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.004082f0
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.004082f0
push esi
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.004082f0
mov esi, str.sanfdr.bat
lea edi, [ebp - 0x324]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0x319]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x324]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40343a
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40344a
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.00405ce3
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.004055e0
add esp, 0x14
test eax, eax
je 0x40349f
mov byte [eax], bl
lea eax, [ebp - 0x20c]
push 0x415cf4
push eax
call fcn.00405dfc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4035eb
push esi
xor edi, edi
inc edi
push edi
push 9
push str.:Repeat_r_n
call fcn.00405056
push esi
push edi
push 5
push str.del__
call fcn.00405056
lea ecx, [ebp - 0x108]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034e7
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00405056
push esi
push edi
push 2
push 0x415d0c
call fcn.00405056
push esi
push edi
push 0xa
push str.if_exist__
call fcn.00405056
lea ecx, [ebp - 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403527
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00405056
push esi
push edi
push 0xf
push str.__goto_Repeat_r_n
call fcn.00405056
push esi
push edi
push 7
push str.rmdir__
call fcn.00405056
lea ecx, [ebp - 0x310]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403567
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.00405056
push esi
push edi
push 3
push 0x415d0c
call fcn.00405056
push esi
push edi
push 5
push str.del__
call fcn.00405056
lea ecx, [ebp - 0x20c]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035a7
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.00405056
push esi
push edi
push edi
push 0x415d34
call fcn.00405056
push esi
call fcn.00404e88
add esp, 0x24
lea eax, [ebp - 0x20c]
push ebx
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404706
leave
ret