Function at 0x40be60
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c3c5
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x438040]
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 - 0x22c], 0
mov ecx, 0x438aac
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40beeb
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40beeb
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Installing_KB:
push 0x1e
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40beeb
cmp byte [0x438ab9], 0
je 0x40beeb
mov ecx, 0x438ab0
call fcn.004043a0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004031f0
mov dword [ebp - 0x22c], 2
mov byte [ebp - 4], 2
call fcn.00401920
mov ecx, eax
test ecx, ecx
je 0x40c50e
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x5c
push dword [ebp - 0x224]
add eax, 0x10
mov dword [ebp - 0x22c], 6
mov dword [ebp - 0x220], eax
call fcn.00410ed2
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x40bfb7
sub eax, dword [ebp - 0x224]
sar eax, 1
test eax, eax
jle 0x40bfb7
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
call fcn.004075e0
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 3
call fcn.00403180
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
mov eax, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x22c], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfe9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.KB2999226.msu
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x21c]
call fcn.00402e00
add esp, 4
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c023
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov esi, dword [ebp - 0x21c]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c0ae
test esi, esi
je 0x40c0ae
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c0ae
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c060
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
mov ecx, 0x438aac
push eax
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c0ae
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c0ae
mov ecx, 0x438ab0
call fcn.004043a0
mov eax, dword [ebp - 0x21c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x264], xmm0
mov dword [ebp - 0x254], 0
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x26c], 0x3c
mov dword [ebp - 0x268], 0x40
cmp dword [eax - 4], 1
jle 0x40c119
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00401540
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - 0x258], 0x433f20
mov dword [ebp - 0x250], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c45b
cmp dword [ebp - 0x234], 0
je 0x40c45b
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c1bc
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c1bc
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.ShellExecuteEx_succeeded
push 0x30
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c1bc
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c1bc
mov ecx, 0x438ab0
call fcn.004043a0
cmp byte [0x439814], 0
je 0x40c1cc
mov bl, 1
jmp 0x40c4ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x439830]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x37
ja 0x40c1e5
test edx, edx
jne 0x40c1ff
push 5
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c266
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c266
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Waiting_for_process_to_complete
push 0x3e
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c266
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c266
mov ecx, 0x438ab0
call fcn.004043a0
push 0x927c0
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x228], eax
test eax, eax
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
jne 0x40c3fa
call eax
test al, al
je 0x40c2ec
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c2ec
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Process_completed
push 0x22
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c2ec
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c2ec
mov ecx, 0x438ab0
call fcn.004043a0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [ebp - 0x220]
call fcn.00401320
mov byte [ebp - 4], 6
lea eax, [ebp - 0x220]
push dword [ebp - 0x228]
push str.Process_exit_code:__u
push eax
call fcn.00407c20
mov eax, dword [vtable.CLogImplW.0]
add esp, 0xc
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
mov esi, dword [ebp - 0x220]
test al, al
je 0x40c3b5
test esi, esi
je 0x40c3b5
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c3b5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c367
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
mov ecx, 0x438aac
push eax
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c3b5
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c3b5
mov ecx, 0x438ab0
call fcn.004043a0
cmp dword [ebp - 0x228], 0
je 0x40c3c8
mov ecx, 0x11
call fcn.00408c20
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c4ce
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40c4ce
call eax
test al, al
je 0x40c454
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c454
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Failed_to_wait_process_to_complete
push 0x44
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c454
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c454
mov ecx, 0x438ab0
call fcn.004043a0
mov ecx, 0x10
jmp 0x40c4c7
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c4c2
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c4c2
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.ShellExecuteEx_failed
push 0x2a
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c4c2
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c4c2
mov ecx, 0x438ab0
call fcn.004043a0
mov ecx, 0xf
call fcn.00408c20
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40c4f0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0040f784
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004016f0
int3