Function at 0x4041ab
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 [0x41a038]
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.00409320
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00409320
push esi
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.00409320
mov esi, 0x418cf4
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 0x40423c
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40424c
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.00406d13
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.00406610
add esp, 0x14
test eax, eax
je 0x4042a1
mov byte [eax], bl
lea eax, [ebp - 0x20c]
push 0x418d00
push eax
call fcn.00406e2c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4043ed
push esi
xor edi, edi
inc edi
push edi
push 9
push 0x418d04
call fcn.00406085
push esi
push edi
push 5
push 0x418d10
call fcn.00406085
lea ecx, [ebp - 0x108]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4042e9
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00406085
push esi
push edi
push 2
push 0x418d18
call fcn.00406085
push esi
push edi
push 0xa
push 0x418d1c
call fcn.00406085
lea ecx, [ebp - 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404329
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00406085
push esi
push edi
push 0xf
push 0x418d28
call fcn.00406085
push esi
push edi
push 7
push 0x418d38
call fcn.00406085
lea ecx, [ebp - 0x310]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404369
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.00406085
push esi
push edi
push 3
push 0x418d18
call fcn.00406085
push esi
push edi
push 5
push 0x418d10
call fcn.00406085
lea ecx, [ebp - 0x20c]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4043a9
push esi
sub ecx, edx
push edi
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.00406085
push esi
push edi
push edi
push 0x418d40
call fcn.00406085
push esi
call fcn.00405eb7
add esp, 0x24
lea eax, [ebp - 0x20c]
push ebx
push ebx
push ebx
push eax
push 0x418d44
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.0040565b
leave
ret