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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9070
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4da064]
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 - 0x430], edi
mov dword [ebp - 0x428], esi
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x46b061
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 1
push dword [edi]
mov eax, dword [ebp + 8]
push str.msiexec.exe
push dword [eax]
lea eax, [ebp - 0x434]
push eax
call fcn.00407380
mov eax, dword [esi]
add esp, 0x10
cmp dword [eax - 0xc], 0
je 0x46a85d
mov eax, dword [ebp - 0x434]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x46b057
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x46a81f
push esi
lea ecx, [ebp - 0x434]
call fcn.00401fc0
mov eax, dword [ebp - 0x434]
mov ecx, 0x20
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x434]
cmp esi, dword [eax - 8]
jg 0x46b057
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x434]
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x434]
mov eax, dword [ebp - 0x428]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402030
xorps xmm0, xmm0
mov dword [ebp - 0x48c], 0x44
movlpd qword [ebp - 0x488], xmm0
movlpd qword [ebp - 0x480], xmm0
movlpd qword [ebp - 0x478], xmm0
movlpd qword [ebp - 0x470], xmm0
movlpd qword [ebp - 0x468], xmm0
movlpd qword [ebp - 0x460], xmm0
movlpd qword [ebp - 0x458], xmm0
movlpd qword [ebp - 0x450], xmm0
movups xmmword [ebp - 0x448], xmm0
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x46b061
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x420]
push 0x104
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x46aa1e
call esi
mov edi, eax
test edi, edi
je 0x46ab49
call fcn.004262e0
or esi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x46aa14
call fcn.004262e0
test byte [eax + 0x20], 1
je 0x46aa14
call fcn.004262e0
mov dword [ebp - 0x438], eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
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.00402030
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.00402030
push edi
lea ecx, [ebp - 0x424]
call fcn.00425f50
mov edi, eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x428]
push 0
push 0x4bb6d8
call fcn.00402030
push ecx
push edi
push ecx
mov ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x428]
push eax
call fcn.00426590
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a9f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46aa14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 0xe000001f
jmp 0x46aff5
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46aa27
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00407090
lea ecx, [edi - 1]
test ecx, ecx
js 0x46b057
mov eax, dword [ebp - 0x42c]
mov edi, dword [eax - 0xc]
cmp ecx, edi
jg 0x46b057
cmp word [eax + ecx*2], 0x5c
je 0x46aac1
lea esi, [edi + 1]
test esi, esi
js 0x46b057
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x46aa9a
push esi
lea ecx, [ebp - 0x42c]
call fcn.00401fc0
mov eax, dword [ebp - 0x42c]
mov ecx, 0x5c
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x42c]
cmp esi, dword [eax - 8]
jg 0x46b057
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x42c]
mov word [eax + esi*2], cx
push 8
push str.system32
lea ecx, [ebp - 0x42c]
call fcn.00402030
mov eax, dword [ebp - 0x42c]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x46b057
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x46ab0a
push esi
lea ecx, [ebp - 0x42c]
call fcn.00401fc0
mov eax, dword [ebp - 0x42c]
mov ecx, 0x5c
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x42c]
cmp esi, dword [eax - 8]
jg 0x46b057
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x42c]
push 0xb
push str.msiexec.exe
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x42c]
call fcn.00402030
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x46ac63
call esi
mov edi, eax
call fcn.004262e0
or esi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x46aff5
call fcn.004262e0
test byte [eax + 0x20], 1
je 0x46aff5
call fcn.004262e0
mov dword [ebp - 0x430], eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x424]
push 0x19
push str.GetModuleFileName_failed.
call fcn.00402030
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.00402030
push edi
lea ecx, [ebp - 0x424]
call fcn.004260d0
mov dword [ebp - 0x438], eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x428]
push 0
push 0x4bb6d8
call fcn.00402030
push ecx
push dword [ebp - 0x438]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x430]
push eax
call fcn.00426590
mov byte [ebp - 4], 0x10
mov eax, esi
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ac5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46afd4
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x46b061
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.00406f20
test al, al
jne 0x46acc7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46aca5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00407090
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x424]
mov edx, dword [ebp - 0x430]
call fcn.0046da00
mov edi, eax
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x424]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ad02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x46ae01
call fcn.004262e0
cmp byte [eax + 0x1c], 0
je 0x46aff5
call fcn.004262e0
test byte [eax + 0x20], 1
je 0x46aff5
call fcn.004262e0
mov dword [ebp - 0x438], eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x424]
push 0x1e
push str.VerifyDigitalSignature_failed.
call fcn.00402030
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.00402030
push edi
lea ecx, [ebp - 0x424]
call fcn.00425f50
mov dword [ebp - 0x430], eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x428]
push 0
push 0x4bb6d8
call fcn.00402030
push ecx
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x438]
push eax
call fcn.00426590
mov byte [ebp - 4], 0x1d
mov eax, esi
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46adfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46afd4
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x48c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x434]
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46ae46
push 0xffffffffffffffff
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
jmp 0x46aff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004262e0
cmp byte [eax + 0x1c], 0
je 0x46aff5
call fcn.004262e0
test byte [eax + 0x20], 1
je 0x46aff5
call fcn.004262e0
mov dword [ebp - 0x438], eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x424]
push 0xf
push str.CreateProcess__
call fcn.00402030
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x46aee1
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x430], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46aec1
sub edx, dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
sar edx, 1
push edx
push eax
call fcn.00402030
push 0x15
push str.__with_command_line__
lea ecx, [ebp - 0x424]
call fcn.00402030
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x46af30
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x430], ecx
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46af10
sub edx, dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
sar edx, 1
push edx
push eax
call fcn.00402030
push str.__failed.
lea ecx, [ebp - 0x424]
call fcn.0040b8a0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.00402030
push edi
lea ecx, [ebp - 0x424]
call fcn.004260d0
mov dword [ebp - 0x430], eax
call fcn.004039e0
test eax, eax
je 0x46b061
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x428]
push 0
push 0x4bb6d8
call fcn.00402030
push ecx
push dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x438]
push eax
call fcn.00426590
mov byte [ebp - 4], 0x27
mov eax, esi
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46afd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46aff5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b016
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x46b038
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0047615e
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00402150
push 0x80004005
call fcn.00402150
int3