Function at 0x4619f0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497670
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x428], esi
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4622ac
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], 1
push dword [edi]
mov eax, dword [ebp + 8]
push str.msiexec.exe
push dword [eax]
lea eax, [ebp - 0x43c]
push eax
call fcn.00408580
mov eax, dword [esi]
add esp, 0x10
cmp dword [eax - 0xc], 0
je 0x461ae1
mov eax, dword [ebp - 0x43c]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x4622b6
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x461aaf
push esi
lea ecx, [ebp - 0x43c]
call fcn.00402330
mov eax, dword [ebp - 0x43c]
mov ecx, 0x20
mov word [eax + edi*2], cx
cmp esi, dword [eax - 8]
jg 0x4622b6
mov dword [eax - 0xc], esi
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x43c]
mov eax, dword [ebp - 0x428]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004023a0
xorps xmm0, xmm0
mov dword [ebp - 0x490], 0x44
movlpd qword [ebp - 0x48c], xmm0
movlpd qword [ebp - 0x484], xmm0
movlpd qword [ebp - 0x47c], xmm0
movlpd qword [ebp - 0x474], xmm0
movlpd qword [ebp - 0x46c], xmm0
movlpd qword [ebp - 0x464], xmm0
movlpd qword [ebp - 0x45c], xmm0
movlpd qword [ebp - 0x454], xmm0
movups xmmword [ebp - 0x44c], xmm0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4622c0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x434], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [ebp - 0x43c]
mov dword [ebp - 0x430], eax
test eax, eax
jne 0x461cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x461df6
call fcn.00420c00
cmp byte [eax + 0x1c], 0
je 0x461cb1
call fcn.00420c00
test byte [eax + 0x20], 1
je 0x461cb1
call fcn.00420c00
mov dword [ebp - 0x430], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4622ca
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x424]
push 0x23
push str.Unable_to_resolve_msiexec.exe_path.
call fcn.004023a0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004023a0
push dword [ebp - 0x428]
lea ecx, [ebp - 0x424]
call fcn.004207e0
mov dword [ebp - 0x428], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4622d4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x42c]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x42c]
push ecx
mov ecx, dword [ebp - 0x430]
push eax
call fcn.00420d60
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461c8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461cb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x42c], 0xe000001f
jmp 0x46224f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461cd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.00407350
mov ecx, dword [ebp - 0x430]
sub ecx, 1
js 0x4622b6
mov eax, dword [ebp - 0x434]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x430], edx
cmp ecx, edx
jg 0x4622b6
cmp word [eax + ecx*2], 0x5c
je 0x461d6e
lea esi, [edx + 1]
test esi, esi
js 0x4622de
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x461d4d
push esi
lea ecx, [ebp - 0x434]
call fcn.00402330
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x430]
mov edx, 0x5c
mov word [eax + ecx*2], dx
cmp esi, dword [eax - 8]
jg 0x4622b6
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
push 8
push str.system32
lea ecx, [ebp - 0x434]
call fcn.004023a0
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x430], ecx
lea esi, [ecx + 1]
test esi, esi
js 0x4622e8
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x461dbd
push esi
lea ecx, [ebp - 0x434]
call fcn.00402330
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x430]
mov edx, 0x5c
mov word [eax + ecx*2], dx
cmp esi, dword [eax - 8]
jg 0x4622b6
xor ecx, ecx
mov dword [eax - 0xc], esi
push 0xb
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x434]
push str.msiexec.exe
call fcn.004023a0
mov esi, dword [ebp - 0x434]
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x461f1d
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x42c], eax
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x46224f
call fcn.00420c00
test byte [eax + 0x20], 1
je 0x46224f
call fcn.00420c00
mov dword [ebp - 0x438], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4622f2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x424]
push 0x19
push str.GetModuleFileName_failed.
call fcn.004023a0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004023a0
push dword [ebp - 0x42c]
lea ecx, [ebp - 0x424]
call fcn.00420960
mov dword [ebp - 0x430], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4622fc
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x428]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x438]
push eax
call fcn.00420d60
mov byte [ebp - 4], 0x12
or eax, 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461f18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46222d
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00407430
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x428]
mov edx, dword [ebp - 0x438]
call fcn.004650a0
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461f6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x42c], 0
je 0x462077
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x46224f
call fcn.00420c00
test byte [eax + 0x20], 1
je 0x46224f
call fcn.00420c00
mov dword [ebp - 0x430], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x462306
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x424]
push 0x1e
push str.VerifyDigitalSignature_failed.
call fcn.004023a0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004023a0
push dword [ebp - 0x42c]
lea ecx, [ebp - 0x424]
call fcn.004207e0
mov dword [ebp - 0x438], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x462310
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x428]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
push dword [ebp - 0x438]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x430]
push eax
call fcn.00420d60
mov byte [ebp - 4], 0x20
or eax, 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462072
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46222d
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x490]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4620ba
push 0xffffffffffffffff
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x42c], 0
jmp 0x46224f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x42c], eax
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x46224f
call fcn.00420c00
test byte [eax + 0x20], 1
je 0x46224f
call fcn.00420c00
mov dword [ebp - 0x430], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x46231a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x424]
push 0xf
push str.CreateProcess__
call fcn.004023a0
test esi, esi
je 0x46214c
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462130
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x424]
call fcn.004023a0
push 0x15
push str.__with_command_line__
lea ecx, [ebp - 0x424]
call fcn.004023a0
test edi, edi
je 0x462183
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462167
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x424]
call fcn.004023a0
push str.__failed.
lea ecx, [ebp - 0x424]
call fcn.0040c520
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004023a0
push dword [ebp - 0x42c]
lea ecx, [ebp - 0x424]
call fcn.00420960
mov dword [ebp - 0x438], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x462324
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x428]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
push dword [ebp - 0x438]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x430]
push eax
call fcn.00420d60
mov byte [ebp - 4], 0x2c
or eax, 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46222d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46224f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46226d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x462289
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004024c0
push 0x80070057
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80070057
call fcn.004024c0
push 0x80070057
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
int3