Function at 0x40c2b0
Capabilities:
Check os version
Create process on windows
Create thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6a4
mov eax, dword [0x4740f4]
xor eax, esp
mov dword [esp + 0x6a0], eax
cmp dword [0x4755b0], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
je 0x40c2eb
mov ebx, dword [0x4755a0]
add ebx, 0xffffffff
jns 0x40c327
xor ebx, ebx
jmp 0x40c327
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push eax
call edi
test eax, eax
je 0x40c729
mov ecx, dword [esi + 0x20]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call edi
mov edx, dword [esi + 0x20]
push 2
mov ebx, eax
push ebx
push 0x100c
push edx
call edi
mov eax, ebx
imul eax, eax, 0x264
add eax, esi
lea edx, [eax + 0x1acb5]
mov dword [esp + 0x14], eax
mov eax, edx
mov dword [esp + 0x20], edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c344
sub eax, edi
jne 0x40c35b
mov ecx, ebx
imul ecx, ecx, 0x1ac
lea edx, [ecx + esi + 0x68]
push 0x44
lea eax, [esp + 0x44]
push 0
push eax
mov dword [esp + 0x18], edx
call fcn.00440150
mov ecx, ebx
imul ecx, ecx, 0x1ac
lea eax, [ecx + esi]
push 0x1ac
lea esi, [eax + 0x64]
lea edx, [esp + 0x2dc]
push 0
mov ecx, 0x6b
lea edi, [esp + 0x134]
mov dword [esp + 0x2c], esi
push edx
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
call fcn.00440150
mov eax, dword [esp + 0x2c]
add eax, 0x1adba
add esp, 0x18
cmp byte [eax], 0
jne 0x40c3fb
mov esi, dword [esp + 0xc]
push esi
lea eax, [esp + 0x594]
push 0x118
push eax
call fcn.00440c6f
push esi
lea ecx, [esp + 0x488]
push 0x118
push ecx
call fcn.00440c6f
add esp, 0x18
lea edx, [esp + 0x590]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
jmp 0x40c428
push eax
lea eax, [esp + 0x594]
push 0x118
push eax
call fcn.00440c6f
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x488]
push 0x118
push edx
call fcn.00440c6f
add esp, 0x18
mov edi, dword [esp + 0x1c]
test dword [edi + 0x1e0], 0x80000000
je 0x40c461
lea ecx, [esp + 0x478]
call fcn.00407ab0
push 0x104
lea eax, [esp + 0x47c]
push eax
lea ecx, [esp + 0x12c]
push ecx
call fcn.00440ef0
add esp, 0xc
lea edx, [esp + 0x120]
push edx
call sub.dxwnd.dll_Ordinal_1
lea esi, [edi + 0x68]
push esi
push ebx
push str.OnRun_idx_d_prog__s__n
mov dword [esp + 0x1c], esi
call fcn.00410ba0
add esp, 0x10
test dword [edi + 0x1e0], 0x20000
je 0x40c4b9
push 0x10
push 0xea61
push 0xea83
call fcn.00410a20
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a0]
xor ecx, esp
call fcn.0043fd57
mov esp, ebp
pop ebp
ret
test byte [edi + 0x1c8], 8
je 0x40c519
push 0x90
lea eax, [esp + 0x90]
push 0
push eax
mov dword [esp + 0x94], 0x94
call fcn.00440150
add esp, 0xc
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c519
cmp dword [esp + 0x8c], 6
jb 0x40c519
push str.self_elevation_n
call fcn.00410ba0
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00403190
add esp, 8
jmp 0x40c51d
mov ebx, dword [esp + 0x10]
test dword [edi + 0x1d0], 0x400
jne 0x40c539
test dword [edi + 0x1d4], 0x40000000
je 0x40c5d3
cmp dword [ebx + 0x60], 0
je 0x40c55f
push 0x41
push 0xea61
push 0xea84
call fcn.00410a20
add esp, 0xc
cmp eax, 1
jne 0x40c55f
mov ecx, ebx
call fcn.00406ae0
push str.export_virtual_registry_n
call fcn.00410ba0
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + 0x1aec4]
push 0x45d8f8
push str.dxwnd.reg
call fcn.0044158d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40c59f
push 0x10
push 0xea63
push 0xea82
call fcn.00410a20
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c5a4
push esi
sub eax, edx
push 1
push eax
push ebx
call fcn.0044234c
push esi
push 0x45d8e8
call fcn.004420db
push esi
call fcn.0044144d
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
add esp, 0x1c
test dword [edi + 0x1e0], 0x2000
je 0x40c5f2
push str.checksafediscversion_n
call fcn.00410ba0
push esi
call fcn.00407980
add esp, 8
test dword [edi + 0x1cc], 0x20000000
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
je 0x40c652
push str.debugger_mode_n
call fcn.00410ba0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push 0x40bc10
push 0
add ecx, 0x1ac64
lea edx, [esp + 0x48c]
push 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c6d6
test dword [edi + 0x1e0], 0x8000
je 0x40c682
push str.injectsuspended_mode_n
call fcn.00410ba0
lea ecx, [esp + 0x594]
push ecx
lea edx, [esp + 0x480]
push edx
call fcn.00407290
add esp, 0xc
jmp 0x40c6d6
push str.setwindowshook_mode_n
call fcn.00410ba0
add esp, 4
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x598]
push edx
push 0
push 0x4000000
push 0
push 0
push 0
lea eax, [esp + 0x498]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x34]
push edx
call ebx
mov ebx, dword [esp + 0x10]
cmp dword [0x4755b0], 0
je 0x40c706
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x475688
push 0x406f10
push 0
push 0
mov dword [0x47568c], eax
mov dword [0x475688], ecx
call esi
push 0
push 0
lea edx, [ebx + 0x64]
push edx
push 0x407960
push 0
push 0
call esi
cmp dword [0x4755b4], 0
je 0x40c729
mov ecx, ebx
call fcn.0040a390
mov ecx, dword [esp + 0x6ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043fd57
mov esp, ebp
pop ebp
ret