Function at 0x40a500
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e18b
mov eax, dword fs:[0]
push eax
sub esp, 0x8ac
mov eax, dword [0x487b30]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x890], ecx
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.00459420
add esp, 0xc
push 0
call fcn.00433970
add esp, 4
cdq
mov ecx, 5
idiv ecx
mov dword [ebp - 0x430], eax
push 0x24
push 0x104
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x430]
push eax
call fcn.00457988
add esp, 0x10
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x438]
call fcn.004052f0
mov dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x438]
call fcn.0040da90
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
add eax, 1
push eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00405510
mov byte [ebp - 4], 1
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x14]
call fcn.004058c0
mov byte [ebp - 4], 2
push str..exe
lea ecx, [ebp - 0x10]
call fcn.0040dae0
push str.10.0.1
lea ecx, [ebp - 0x14]
call fcn.00405390
push 0x47a640
lea ecx, [ebp - 0x14]
call fcn.00405390
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00443820
push 0x47a648
lea ecx, [ebp - 0x14]
call fcn.00405390
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405390
push 0x47a64c
lea ecx, [ebp - 0x14]
call fcn.00405390
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.00419850
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0xffffffff
je 0x40aaa0
mov dword [ebp - 0x440], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x894], edx
mov eax, dword [ebp - 0x894]
add eax, 1
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x894]
mov dl, byte [ecx]
mov byte [ebp - 0x899], dl
add dword [ebp - 0x894], 1
cmp byte [ebp - 0x899], 0
jne 0x40a6a7
mov eax, dword [ebp - 0x894]
sub eax, dword [ebp - 0x898]
mov dword [ebp - 0x8a0], eax
push 0
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x8a0]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x47a658
push 0x84
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x40a818
mov eax, dword [ebp - 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x40a818
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
je 0x40a818
mov edx, dword [ebp - 0x444]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jle 0x40a818
push 0x47a668
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.0040dc10
add esp, 0xc
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x454]
call fcn.00419850
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0xffffffff
je 0x40a80d
push 0
lea edx, [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x458]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x454]
call fcn.00443840
push str.Analyse
push 0x83
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0
je 0x40aaa0
mov ecx, dword [ebp - 0x460]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
je 0x40aaa0
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x40aaa0
mov eax, dword [ebp - 0x460]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
jle 0x40aaa0
push str.MsAnalyseError.exe
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x470]
push edx
call fcn.0040dc10
add esp, 0xc
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x470]
call fcn.00419850
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0xffffffff
je 0x40aa95
push 0
lea eax, [ebp - 0x884]
push eax
mov ecx, dword [ebp - 0x46c]
push ecx
mov edx, dword [ebp - 0x468]
push edx
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004103c0
mov dword [ebp - 0x888], eax
lea ecx, [ebp - 0x14]
call fcn.00419850
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
jne 0x40a952
mov dword [ebp - 0x8a4], 0
jmp 0x40a9c8
mov edx, dword [ebp - 0x880]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0x3fffffff
jle 0x40a980
mov dword [ebp - 0x8a8], 0
jmp 0x40a9bc
mov eax, dword [ebp - 0x478]
shl eax, 1
call fcn.0045bfa0
mov dword [ebp - 0x8ac], esp
mov eax, dword [ebp - 0x888]
push eax
mov ecx, dword [ebp - 0x478]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x880]
push edx
mov eax, dword [ebp - 0x8ac]
push eax
call fcn.0040f9e0
mov dword [ebp - 0x8a8], eax
mov ecx, dword [ebp - 0x8a8]
mov dword [ebp - 0x8a4], ecx
lea ecx, [ebp - 0x470]
call fcn.00419850
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
jne 0x40a9ee
mov dword [ebp - 0x8b0], 0
jmp 0x40aa64
mov edx, dword [ebp - 0x880]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0x3fffffff
jle 0x40aa1c
mov dword [ebp - 0x8b4], 0
jmp 0x40aa58
mov eax, dword [ebp - 0x478]
shl eax, 1
call fcn.0045bfa0
mov dword [ebp - 0x8b8], esp
mov eax, dword [ebp - 0x888]
push eax
mov ecx, dword [ebp - 0x478]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x880]
push edx
mov eax, dword [ebp - 0x8b8]
push eax
call fcn.0040f9e0
mov dword [ebp - 0x8b4], eax
mov ecx, dword [ebp - 0x8b4]
mov dword [ebp - 0x8b0], ecx
mov edx, dword [ebp - 0x8a4]
push edx
mov eax, dword [ebp - 0x8b0]
push eax
push str._s__upload_startup____s_
lea ecx, [ebp - 0x87c]
push ecx
call fcn.0040ed30
add esp, 0x10
push 0
lea edx, [ebp - 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [ebp - 0x470]
call fcn.00443840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00443840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00443840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00443840
lea esp, [ebp - 0x8bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0045670b
mov esp, ebp
pop ebp
ret 4