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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddf60
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x47f7ff
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x430]
mov eax, dword [ebp + 8]
push dword [ecx]
push str.msiexec.exe
push dword [eax]
lea eax, [ebp - 0x434]
push eax
call fcn.00408d80
mov eax, dword [ebp - 0x428]
add esp, 0x10
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x47eea3
mov eax, dword [ebp - 0x434]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x47f7f5
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x47ee65
push esi
lea ecx, [ebp - 0x434]
call fcn.00402540
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 0x47f7f5
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.004025b0
xorps xmm0, xmm0
mov dword [ebp - 0x494], 0x44
movlpd qword [ebp - 0x490], xmm0
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
movups xmmword [ebp - 0x450], xmm0
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x47f7ff
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
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, eax
test esi, esi
jne 0x47f0c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x438], eax
test eax, eax
je 0x47f1ec
call fcn.0042b3e0
or edi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x47f0b3
call fcn.0042b3e0
test byte [eax + 0x20], 1
je 0x47f0b3
call fcn.0042b3e0
mov dword [ebp - 0x43c], eax
call fcn.004046f0
mov dword [ebp - 0x428], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x428]
call esi
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.004025b0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004025b0
push dword [ebp - 0x438]
lea ecx, [ebp - 0x424]
call fcn.0042adf0
mov dword [ebp - 0x428], eax
call fcn.004046f0
mov dword [ebp - 0x438], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x438]
call esi
add eax, 0x10
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x430]
push 0
push 0x4ed694
call fcn.004025b0
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x430]
push ecx
mov ecx, dword [ebp - 0x43c]
push eax
call fcn.0042b770
mov byte [ebp - 4], 6
mov eax, edi
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f086
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
mov byte [ebp - 4], 3
mov eax, edi
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f0b3
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 0x430], 0xe000001f
jmp 0x47f773
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f0d0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00403890
lea ecx, [esi - 1]
test ecx, ecx
js 0x47f7f5
mov eax, dword [ebp - 0x42c]
mov edi, dword [eax - 0xc]
cmp ecx, edi
jg 0x47f7f5
cmp word [eax + ecx*2], 0x5c
je 0x47f16a
lea esi, [edi + 1]
test esi, esi
js 0x47f7f5
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x47f143
push esi
lea ecx, [ebp - 0x42c]
call fcn.00402540
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 0x47f7f5
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.004025b0
mov eax, dword [ebp - 0x42c]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x47f7f5
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x47f1b3
push esi
lea ecx, [ebp - 0x42c]
call fcn.00402540
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 0x47f7f5
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.004025b0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x47f346
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x430], eax
call fcn.0042b3e0
or edi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x47f773
call fcn.0042b3e0
test byte [eax + 0x20], 1
je 0x47f773
call fcn.0042b3e0
mov dword [ebp - 0x440], eax
call fcn.004046f0
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x43c]
call esi
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.004025b0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004025b0
push dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
call fcn.0042b090
mov dword [ebp - 0x438], eax
call fcn.004046f0
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x43c]
call esi
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x428]
push 0
push 0x4ed694
call fcn.004025b0
push ecx
push dword [ebp - 0x438]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x440]
push eax
call fcn.0042b770
mov byte [ebp - 4], 0x10
mov eax, edi
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f341
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
jmp 0x47f746
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x47f7ff
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
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.00403700
test al, al
jne 0x47f3b4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f392
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00403890
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x424]
mov edx, dword [ebp - 0x430]
push 0
call fcn.00482770
add esp, 4
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov ecx, dword [ebp - 0x424]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f407
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
cmp dword [ebp - 0x430], 0
je 0x47f543
call fcn.0042b3e0
cmp byte [eax + 0x1c], 0
je 0x47f773
call fcn.0042b3e0
test byte [eax + 0x20], 1
je 0x47f773
call fcn.0042b3e0
mov dword [ebp - 0x438], eax
call fcn.004046f0
mov dword [ebp - 0x440], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x440]
call esi
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.004025b0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004025b0
push dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
call fcn.0042adf0
mov dword [ebp - 0x43c], eax
call fcn.004046f0
mov dword [ebp - 0x440], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x440]
call esi
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x428]
push 0
push 0x4ed694
call fcn.004025b0
push ecx
push dword [ebp - 0x43c]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x438]
push eax
call fcn.0042b770
mov byte [ebp - 4], 0x1d
mov eax, edi
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f53e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
jmp 0x47f746
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x494]
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 0x47f590
push 0xffffffffffffffff
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x430], 0
jmp 0x47f773
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x430], eax
call fcn.0042b3e0
cmp byte [eax + 0x1c], 0
je 0x47f773
call fcn.0042b3e0
test byte [eax + 0x20], 1
je 0x47f773
call fcn.0042b3e0
mov dword [ebp - 0x438], eax
call fcn.004046f0
mov dword [ebp - 0x440], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x440]
call esi
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x424]
push 0xf
push str.CreateProcess__
call fcn.004025b0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x47f63c
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x47f620
sub edx, esi
lea ecx, [ebp - 0x424]
sar edx, 1
push edx
push eax
call fcn.004025b0
push 0x15
push str.__with_command_line__
lea ecx, [ebp - 0x424]
call fcn.004025b0
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x47f67c
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x47f660
sub edx, esi
lea ecx, [ebp - 0x424]
sar edx, 1
push edx
push eax
call fcn.004025b0
push str.__failed.
lea ecx, [ebp - 0x424]
call fcn.0040d900
push 0xc
push str._LastError:
lea ecx, [ebp - 0x424]
call fcn.004025b0
push dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
call fcn.0042b090
mov dword [ebp - 0x43c], eax
call fcn.004046f0
mov dword [ebp - 0x440], eax
test eax, eax
je 0x47f7ff
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x440]
call esi
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x428]
push 0
push 0x4ed694
call fcn.004025b0
push ecx
push dword [ebp - 0x43c]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0x438]
push eax
call fcn.0042b770
mov byte [ebp - 4], 0x27
mov eax, edi
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f746
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
mov byte [ebp - 4], 3
mov eax, edi
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f773
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f7a1
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x434]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47f7d2
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x430]
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.004a1cf0
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00402720
push 0x80004005
call fcn.00402720
int3