Function at 0x10002150
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023521
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x1002f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x19c], esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x100026f3
mov dword [ebp - 0x1c4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x114]
movups xmmword [ebp - 0x1d4], xmm0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100021c1
sub eax, edx
lea ecx, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10004630
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c0]
mov eax, edx
mov ecx, dword [ebp - 0x1c4]
sub eax, ecx
push 0x12
push str.000installer.msi
cmp eax, 0x12
jb 0x10002236
cmp edx, 0xf
lea esi, [ebp - 0x1d4]
lea eax, [ecx + 0x12]
cmova esi, dword [ebp - 0x1d4]
add esi, ecx
mov dword [ebp - 0x1c4], eax
push esi
call fcn.10008c80
mov byte [esi + 0x12], 0
lea eax, [ebp - 0x1d4]
mov esi, dword [ebp - 0x19c]
add esp, 0xc
jmp 0x10002250
mov byte [ebp - 0x1d8], 0
lea ecx, [ebp - 0x1d4]
push dword [ebp - 0x1d8]
push 0x12
call fcn.10004ca0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x144], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x134], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c0]
cmp ecx, 0xf
jbe 0x100022b6
mov edx, dword [ebp - 0x1d4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100022ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002715
push ecx
push edx
call fcn.100077d5
add esp, 8
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0xf
mov byte [ebp - 0x1d4], 0
test ecx, ecx
jne 0x10002325
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x130]
cmp ecx, 0xf
jbe 0x100026e3
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002316
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002715
push ecx
push edx
call fcn.100077d5
add esp, 8
jmp 0x100026e3
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0xc
jb 0x10002710
cmp dword [ebp - 0x130], 0xf
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x144]
lea edi, [ebp - 0x1b8]
cmova edx, eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1dc], edx
mov esi, 0xf
lea edx, [ecx + 0xc]
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1a0], edx
movups xmmword [ebp - 0x1b8], xmm0
cmp edx, esi
jbe 0x1000241a
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x100023ad
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
jmp 0x100023cd
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x100023f5
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x1000271a
push ecx
call fcn.10007806
add esp, 4
test eax, eax
je 0x10002715
mov ecx, dword [ebp - 0x134]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x1a0]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10002414
test eax, eax
je 0x10002412
push eax
call fcn.10007806
mov ecx, dword [ebp - 0x134]
add esp, 4
mov edx, dword [ebp - 0x1a0]
mov edi, eax
jmp 0x10002414
xor edi, edi
mov dword [ebp - 0x1b8], edi
movq xmm0, qword [str.msiexec__i__]
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x1a4], esi
movq qword [edi], xmm0
mov eax, dword [0x1002bb18]
push ecx
push dword [ebp - 0x1dc]
mov dword [edi + 8], eax
lea eax, [edi + 0xc]
push eax
call fcn.10008c80
mov eax, dword [ebp - 0x1a0]
add esp, 0xc
mov byte [edi + eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1a4]
mov eax, edx
mov ecx, dword [ebp - 0x1a8]
sub eax, ecx
push 5
push str.___qn
cmp eax, 5
jb 0x100024a7
cmp edx, 0xf
lea esi, [ebp - 0x1b8]
lea eax, [ecx + 5]
cmova esi, dword [ebp - 0x1b8]
add esi, ecx
mov dword [ebp - 0x1a8], eax
push esi
call fcn.10008c80
add esp, 0xc
mov byte [esi + 5], 0
lea eax, [ebp - 0x1b8]
jmp 0x100024c1
mov byte [ebp - 0x1e0], 0
lea ecx, [ebp - 0x1b8]
push dword [ebp - 0x1e0]
push 5
call fcn.10004ca0
mov dword [ebp - 0x11c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x12c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x11c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1a4]
cmp ecx, 0xf
jbe 0x10002545
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000253b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002715
push ecx
push edx
call fcn.100077d5
add esp, 8
cmp dword [ebp - 0x118], 0xf
lea ecx, [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x1a8], 0
push ecx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1a4], 0xf
push 0
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x1b8], 0
cmova eax, dword [ebp - 0x12c]
push 0
push eax
push 0
movlpd qword [ebp - 0x184], xmm0
movlpd qword [ebp - 0x17c], xmm0
movlpd qword [ebp - 0x174], xmm0
movlpd qword [ebp - 0x16c], xmm0
movlpd qword [ebp - 0x164], xmm0
movlpd qword [ebp - 0x15c], xmm0
movlpd qword [ebp - 0x154], xmm0
movlpd qword [ebp - 0x14c], xmm0
mov dword [ebp - 0x188], 0x44
movups xmmword [ebp - 0x198], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10002621
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.CreateProcess_failed__
mov ecx, 0x10030128
call fcn.10004090
mov ecx, eax
call fcn.10002720
mov edx, 0x1002bb20
mov ecx, eax
call fcn.10004090
push eax
call fcn.10004340
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x198]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x194]
call edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x10002683
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002679
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002715
push ecx
push edx
call fcn.100077d5
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp eax, 0xf
jbe 0x100026dd
mov edx, dword [ebp - 0x1bc]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100026d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002715
push ecx
push edx
call fcn.100077d5
add esp, 8
mov esi, dword [ebp - 0x19c]
inc esi
mov dword [ebp - 0x19c], esi
cmp esi, 1
jl 0x10002185
xor eax, eax
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.100077c7
mov esp, ebp
pop ebp
ret
call fcn.10001360
call fcn.1000e0a1
call fcn.100012c0
int3