Function at 0x40b9b0
Capabilities:
Create process on windows
Delete file
Get common file path
Get file version info
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bced
mov eax, dword fs:[0]
push eax
sub esp, 0xb6c
mov eax, dword [0x726100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xacc], ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xac4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xab8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xad0], eax
lea eax, [ebp - 0x24c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0xaf8]
call fcn.00408e90
push 4
sub esp, 0x1c
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0xac0], esi
mov ecx, esi
push 0
push edi
mov dword [esi + 0xc], 0x69142c
mov dword [esi + 0x14], 0x691434
call fcn.00408da0
lea ecx, [ebp - 0xaf8]
mov dword [esi], vtable.zpath.0
call fcn.0040ccd0
test al, al
jne 0x40ba69
mov edi, 0xfffffce0
jmp 0x40c024
lea eax, [ebp - 0xab4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0xac8], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x40c00e
test byte [ebp - 0xab4], 0x10
jne 0x40c00e
push str.0.0.0.0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xafc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xabc], eax
test eax, eax
je 0x40bb44
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425615
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0xabc]
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40bb3b
lea eax, [ebp - 0xac0]
push eax
lea eax, [ebp - 0xabc]
push eax
push 0x6913d0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bb3b
mov ecx, dword [ebp - 0xabc]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x44]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push edi
call fcn.0042561e
add esp, 4
mov eax, dword [ebp - 0xad0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x40bb72
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x6913d0
lea eax, [ebp - 0x454]
push eax
call edi
jmp 0x40bb84
push 0x6910b0
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0xab8]
test eax, eax
jne 0x40bb94
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x454]
push eax
call edi
cmp dword [ebp - 0xac4], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x40bcf3
lea eax, [ebp - 0x24c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
call edi
dec eax
cmp word [ebx + eax*2], 0x5c
je 0x40bbd8
nop
dec eax
cmp word [ebx + eax*2], 0x5c
jne 0x40bbd0
lea eax, [eax + 1]
lea eax, [ebx + eax*2]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x24c]
push eax
call edi
mov ecx, 0x5f
mov word [ebp + eax*2 - 0x24e], cx
lea eax, [ebp - 0x24c]
push eax
push ebx
push dword [ebp - 0xac4]
lea eax, [ebp - 0x864]
push str.__s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x40
lea eax, [ebp - 0xb74]
mov dword [ebp - 0xb78], 0x44
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0xb34], xmm0
call fcn.00617a20
mov ecx, dword [ebp - 0xacc]
add esp, 0x20
xor eax, eax
mov dword [ebp - 0xb4c], 1
mov word [ebp - 0xb48], ax
xor edx, edx
lea eax, [ebp - 0xb34]
cmp byte [ecx], dl
push eax
lea eax, [ebp - 0xb78]
push eax
push 0
push 0
mov eax, 0x10
cmove eax, edx
push eax
push edx
push edx
push edx
lea eax, [ebp - 0x864]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
push dword [ebp - 0xb34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x40bcb6
push esi
call ebx
or esi, 0xffffffff
mov dword [ebp - 0xac8], esi
lea eax, [ebp - 0xab4]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp esi, edi
je 0x40bce4
cmp esi, 0xffffffff
je 0x40bcdc
test ebx, ebx
je 0x40bcdc
push esi
call ebx
mov esi, edi
mov dword [ebp - 0xac8], esi
cmp esi, 0xffffffff
jne 0x40bcf3
mov edi, 0xfffffcde
jmp 0x40c013
lea ecx, [ebp - 0xb24]
call fcn.00408e90
push 0
sub esp, 0x1c
mov byte [ebp - 4], 5
mov edi, esp
lea eax, [ebp - 0x24c]
mov dword [ebp - 0xac0], edi
mov ecx, edi
push 0
push eax
mov dword [edi + 0xc], 0x69142c
mov dword [edi + 0x14], 0x691434
call fcn.00408da0
lea ecx, [ebp - 0xb24]
mov dword [edi], vtable.zpath.0
call fcn.0040cba0
test al, al
je 0x40bfd6
mov ebx, dword [ebp - 0xa94]
mov eax, dword [ebp - 0xaf4]
add ebx, 2
mov dword [ebp - 0xab8], 0
push 2
cmp eax, 0xffffffff
je 0x40bd78
lea ecx, [ebp - 0xab8]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40bd85
mov ecx, dword [ebp - 0xad4]
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
push dword [ebp - 0xa94]
lea eax, [ebp - 0x65c]
push 0x691570
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0xa88]
add esp, 0xc
push eax
call edi
push 0
lea ecx, [ebp - 0xab8]
push ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa88]
push eax
push dword [ebp - 0xaf4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp - 0xab8]
cmp ecx, 0xffffffff
je 0x40bf9d
lea eax, [ebp - 0x454]
push eax
call edi
push 0
lea ecx, [ebp - 0xab8]
push ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0xaf4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp - 0xab8]
cmp ecx, 0xffffffff
je 0x40bf9d
lea eax, [ebp - 0x44]
push eax
call edi
lea ecx, [ebp - 0xaf8]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040dd70
cmp eax, 0xffffffff
je 0x40bf9d
lea eax, [ebp - 0x65c]
push eax
call edi
lea ecx, [ebp - 0xaf8]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.0040dd70
cmp eax, 0xffffffff
je 0x40bf9d
cmp ebx, 0x4000
jbe 0x40bf31
nop dword [eax + eax]
push 0x4000
call fcn.00425615
add esp, 4
lea ecx, [ebp - 0xb24]
mov edi, eax
push 0x4000
push edi
call fcn.0040d600
mov dword [ebp - 0xabc], eax
cmp eax, 0xffffffff
je 0x40bffe
push 2
push 0
lea ecx, [ebp - 0xaf8]
call fcn.0040dc70
push dword [ebp - 0xa94]
lea eax, [ebp - 0x65c]
push 0x691570
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xac0]
push 0
push eax
push dword [ebp - 0xabc]
push edi
push dword [ebp - 0xaf4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or ecx, 0xffffffff
test eax, eax
push edi
cmovne ecx, dword [ebp - 0xac0]
cmp ecx, 0xffffffff
je 0x40bf95
sub ebx, dword [ebp - 0xabc]
call fcn.0042561e
add esp, 4
cmp ebx, 0x4000
ja 0x40be90
test ebx, ebx
je 0x40bfac
push ebx
call fcn.00425615
add esp, 4
lea ecx, [ebp - 0xb24]
mov edi, eax
push ebx
push edi
call fcn.0040d600
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bffe
push 2
push 0
lea ecx, [ebp - 0xaf8]
call fcn.0040dc70
push dword [ebp - 0xa94]
lea eax, [ebp - 0x65c]
push 0x691570
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xaf8]
push ebx
push edi
call fcn.0040dd70
push edi
cmp eax, 0xffffffff
jne 0x40bfa4
call fcn.0042561e
add esp, 4
mov edi, 0xfffffcdd
jmp 0x40bfd8
call fcn.0042561e
add esp, 4
cmp dword [ebp - 0xac4], 0
je 0x40bfcd
lea ecx, [ebp - 0xb24]
call fcn.0040c2d0
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xacc]
inc dword [eax + 4]
xor edi, edi
lea ecx, [ebp - 0xb24]
mov byte [ebp - 4], 0x10
mov dword [ebp - method.is::file_lite.virtual_0], vtable.is::file_lite.0
call fcn.0040c2d0
lea ecx, [ebp - 0xb1c]
call fcn.00409300
jmp 0x40c013
push edi
call fcn.0042561e
add esp, 4
mov edi, 0xfffffcdc
jmp 0x40bfd8
mov edi, 0xfffffcdf
cmp esi, 0xffffffff
je 0x40c024
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40c024
push esi
call eax
lea ecx, [ebp - 0xaf8]
mov dword [ebp - 4], 0x11
mov dword [ebp - method.is::file_lite.virtual_0], vtable.is::file_lite.0
call fcn.0040c2d0
lea ecx, [ebp - 0xaf0]
call fcn.00409300
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f4722
mov esp, ebp
pop ebp
ret 0x14