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

Disassembly:
push ebp
sub esp, 0x44c
lea ebp, [esp - 4]
mov eax, dword [0x439360]
xor eax, ebp
mov dword [ebp + 0x44c], eax
push 0x68
mov eax, 0x42f838
call fcn.0040bbc1
mov eax, dword [ebp + 0x458]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x45c]
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x225]
push ebx
push eax
mov dword [ebp - 0x10], ecx
mov byte [ebp + 0x224], bl
call fcn.0040c050
push esi
lea eax, [ebp + 0x329]
push ebx
push eax
mov byte [ebp + 0x328], bl
call fcn.0040c050
add esp, 0x18
lea eax, [ebp + 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.launch.exe
lea eax, [ebp + 0x224]
push eax
mov edi, str._s_s
lea eax, [ebp + 0x328]
push edi
push eax
call fcn.0040c97f
add esp, 0x10
push dword [ebp - 0x10]
lea ecx, [ebp - 0x74]
call fcn.00401540
push str._launch.exe
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call fcn.00408af6
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00402360
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x408c0e
lea eax, [ebp + 4]
push ebx
lea ecx, [ebp + 0x328]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x408c54
push ebx
push 1
lea ecx, [ebp]
call fcn.00402360
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x44c]
xor ecx, ebp
call fcn.0040b3d8
add ebp, 0x450
leave
ret 8
push esi
lea eax, [ebp + 0x121]
push ebx
push eax
mov byte [ebp + 0x120], bl
call fcn.0040c050
push dword [ebp - 0x14]
lea eax, [ebp + 0x120]
push dword [ebp - 0x18]
push str._x__s__o__s___r
push 0x104
push eax
call fcn.0040c9fc
push esi
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.0040c050
push str.launch.txt
lea eax, [ebp + 0x224]
push eax
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.0040c97f
lea eax, [ebp + 0x1c]
push 0x4306a8
push eax
call fcn.0040e73a
mov esi, eax
add esp, 0x44
cmp esi, ebx
jne 0x408cd4
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp]
call fcn.00402360
mov eax, esi
jmp 0x408c2f
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x42c], bl
lea edi, [ebp + 0x42d]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0xa
lea eax, [ebp + 0x42c]
push eax
push dword [0x43abc4]
call fcn.0041f12c
push esi
push 0x1e
lea eax, [ebp + 0x42c]
push 0x1e
push eax
call fcn.0040e5f4
push esi
call fcn.0040c646
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040c050
mov eax, dword [0x43abc4]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x328]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x120]
mov dword [ebp - 0x44], eax
add esp, 0x2c
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, 1
je 0x408d69
or esi, 0xffffffff
jmp 0x408cc2
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408d69
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [ebp - 0x1c]
jmp 0x408cc2