Function at 0x404730
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, 0x378
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.0040a840
add esp, 0xc
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea ecx, [ebp - 0x21f]
push ecx
call fcn.0040a840
add esp, 0xc
mov byte [ebp - 0x324], 0
push 0x103
push 0
lea edx, [ebp - 0x323]
push edx
call fcn.0040a840
add esp, 0xc
mov eax, dword [0x419d08]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x419d0c]
mov dword [ebp - 0x14], ecx
mov dx, word [0x419d10]
mov word [ebp - 0x10], dx
mov al, byte [0x419d12]
mov byte [ebp - 0xe], al
xor ecx, ecx
mov dword [ebp - 0xd], ecx
mov dword [ebp - 9], ecx
mov byte [ebp - 5], cl
lea edx, [ebp - 0x11c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
mov dword [ebp - 0x350], ecx
mov edx, dword [ebp - 0x33c]
mov al, byte [edx]
mov byte [ebp - 0x32a], al
add dword [ebp - 0x33c], 1
cmp byte [ebp - 0x32a], 0
jne 0x4047f2
mov ecx, dword [ebp - 0x33c]
sub ecx, dword [ebp - 0x350]
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x368], edx
mov dword [ebp - 0x370], ecx
lea eax, [ebp - 0x11c]
add eax, 0xffffffff
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x348]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x32e], dl
add dword [ebp - 0x348], 1
cmp byte [ebp - 0x32e], 0
jne 0x40483d
mov edi, dword [ebp - 0x348]
mov esi, dword [ebp - 0x368]
mov eax, dword [ebp - 0x370]
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 - 0x220]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x220]
push edx
push 0x104
lea eax, [ebp - 0x324]
push eax
call fcn.00408233
add esp, 0xc
push 0x5c
lea ecx, [ebp - 0x324]
push ecx
call fcn.00403ae0
add esp, 8
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x4048d4
mov edx, dword [ebp - 0x34c]
mov byte [edx], 0
mov dword [ebp - 0x328], 0
push 0x419d14
lea eax, [ebp - 0x11c]
push eax
call fcn.0040834c
add esp, 8
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x404906
jmp 0x404bb8
mov ecx, dword [ebp - 0x328]
push ecx
push 1
push 9
push 0x419d18
call fcn.0040759e
add esp, 0x10
mov edx, dword [ebp - 0x328]
push edx
push 1
push 5
push 0x419d24
call fcn.0040759e
add esp, 0x10
lea eax, [ebp - 0x220]
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
add ecx, 1
mov dword [ebp - 0x378], ecx
mov edx, dword [ebp - 0x334]
mov al, byte [edx]
mov byte [ebp - 0x32b], al
add dword [ebp - 0x334], 1
cmp byte [ebp - 0x32b], 0
jne 0x404951
mov ecx, dword [ebp - 0x334]
sub ecx, dword [ebp - 0x378]
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x328]
push edx
push 1
mov eax, dword [ebp - 0x374]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040759e
add esp, 0x10
mov edx, dword [ebp - 0x328]
push edx
push 1
push 2
push 0x419d2c
call fcn.0040759e
add esp, 0x10
mov eax, dword [ebp - 0x328]
push eax
push 1
push 0xa
push 0x419d30
call fcn.0040759e
add esp, 0x10
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x338]
add edx, 1
mov dword [ebp - 0x360], edx
mov eax, dword [ebp - 0x338]
mov cl, byte [eax]
mov byte [ebp - 0x32d], cl
add dword [ebp - 0x338], 1
cmp byte [ebp - 0x32d], 0
jne 0x4049eb
mov edx, dword [ebp - 0x338]
sub edx, dword [ebp - 0x360]
mov dword [ebp - 0x35c], edx
mov eax, dword [ebp - 0x328]
push eax
push 1
mov ecx, dword [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.0040759e
add esp, 0x10
mov eax, dword [ebp - 0x328]
push eax
push 1
push 0xf
push 0x419d3c
call fcn.0040759e
add esp, 0x10
mov ecx, dword [ebp - 0x328]
push ecx
push 1
push 7
push 0x419d4c
call fcn.0040759e
add esp, 0x10
lea edx, [ebp - 0x324]
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
add eax, 1
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x344]
mov dl, byte [ecx]
mov byte [ebp - 0x32c], dl
add dword [ebp - 0x344], 1
cmp byte [ebp - 0x32c], 0
jne 0x404a85
mov eax, dword [ebp - 0x344]
sub eax, dword [ebp - 0x36c]
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x328]
push ecx
push 1
mov edx, dword [ebp - 0x364]
push edx
lea eax, [ebp - 0x324]
push eax
call fcn.0040759e
add esp, 0x10
mov ecx, dword [ebp - 0x328]
push ecx
push 1
push 3
push 0x419d54
call fcn.0040759e
add esp, 0x10
mov edx, dword [ebp - 0x328]
push edx
push 1
push 5
push 0x419d58
call fcn.0040759e
add esp, 0x10
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x340]
mov al, byte [edx]
mov byte [ebp - 0x329], al
add dword [ebp - 0x340], 1
cmp byte [ebp - 0x329], 0
jne 0x404b1f
mov ecx, dword [ebp - 0x340]
sub ecx, dword [ebp - 0x354]
mov dword [ebp - 0x358], ecx
mov edx, dword [ebp - 0x328]
push edx
push 1
mov eax, dword [ebp - 0x358]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040759e
add esp, 0x10
mov edx, dword [ebp - 0x328]
push edx
push 1
push 1
push 0x419d60
call fcn.0040759e
add esp, 0x10
cmp dword [ebp - 0x328], 0
je 0x404b9e
mov eax, dword [ebp - 0x328]
push eax
call fcn.004073d0
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0x419d64
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret