Function at 0x10009800
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x1004e040]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x2c], eax
xor bl, bl
lea eax, [esp + 0xc]
push eax
push 8
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100098e0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x19
push dword [esp + 0x1c]
call edi
test eax, eax
jne 0x100098da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100098da
push dword [esp + 0x10]
call fcn.10024da9
mov esi, eax
add esp, 4
test esi, esi
je 0x100098d4
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push esi
push 0x19
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x100098cb
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
test eax, eax
je 0x100098cb
mov al, byte [eax]
test al, al
je 0x100098cb
movzx eax, al
dec eax
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
test eax, eax
je 0x100098cb
mov eax, dword [eax]
cmp eax, 0x2000
jae 0x100098c1
mov bl, 1
jmp 0x100098cb
cmp eax, 0x3000
sbb bl, bl
add bl, 3
push esi
call fcn.10024d8e
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xc]
call esi
push pe_nt_image_headers32
lea eax, [esp + 0x48]
mov byte [esp + 0x1b], bl
push 0
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x4c], 0x114
call fcn.10021070
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100099e3
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100099e3
cmp dword [esp + 0x44], 6
jb 0x1000998d
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push 0x12
push dword [esp + 0x28]
call edi
test eax, eax
je 0x100099e3
cmp dword [esp + 0x28], 3
jne 0x1000998d
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x14]
push eax
push 0x13
push dword [esp + 0x28]
call edi
test eax, eax
je 0x100099e3
cmp dword [esp + 0xc], 0
jne 0x100099a9
lea eax, [esp + 0xc]
push eax
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x100099e3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x44
push eax
lea eax, [esp + 0x15c]
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x100099e3
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100099f6
push eax
call esi
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10009a01
push eax
call esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.10008190
push 0x23
push str.action1__isAdmin:___Integrity:_
mov dword [esp + 0x24], str.B:disk17joiner_srccustom_actionCustomAction.cpp
mov ecx, dword [eax + 0x114]
lea eax, [esp + 0x1f]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 0x125
movq xmm0, qword [esp + 0x28]
push eax
sub esp, 0x10
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x10046738
call fcn.10014d40
push dword [esp + 0x2c]
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
test esi, esi
je 0x10009c14
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov ecx, esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.10009090
mov ebx, dword [esp + 0x1c]
test al, al
mov eax, dword [esp + 0x20]
jne 0x10009b94
sub esp, 8
mov dword [esp + 0x3c], str.B:disk17joiner_srccustom_actionCustomAction.cpp
mov eax, esp
mov dword [esp + 0x40], 0x12c
mov dword [eax], str.Cant_get_DB_binaries_list.
mov dword [eax + 4], 0x1b
call fcn.10008190
movq xmm0, qword [esp + 0x3c]
push 4
sub esp, 0xc
mov ecx, dword [eax + 0x114]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x10046738
call fcn.10006bf0
test ebx, ebx
je 0x10009c62
mov eax, dword [esp + 0x20]
mov edi, ebx
cmp edi, eax
je 0x10009b4a
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x10009b30
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10009b22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009c82
mov eax, edx
push ecx
push eax
call fcn.1001f77c
mov eax, dword [esp + 0x28]
add esp, 8
xor ecx, ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
add edi, 0x18
cmp edi, eax
jne 0x10009af3
mov ecx, dword [esp + 0x24]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x10009b85
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009c82
push ecx
push ebx
call fcn.1001f77c
add esp, 8
jmp 0x10009c62
mov edi, ebx
cmp edi, eax
je 0x10009bbc
nop word [eax + eax]
mov edx, edi
mov ecx, esi
call fcn.10009570
test al, al
jne 0x10009ae1
mov eax, dword [esp + 0x20]
add edi, 0x18
cmp edi, eax
jne 0x10009ba0
test ebx, ebx
je 0x10009c5e
push ecx
mov edx, eax
mov ecx, ebx
call fcn.1000e560
mov ecx, dword [esp + 0x28]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x10009c08
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009c82
push ecx
push ebx
call fcn.1001f77c
add esp, 8
jmp 0x10009c5e
sub esp, 8
mov dword [esp + 0x3c], str.B:disk17joiner_srccustom_actionCustomAction.cpp
mov eax, esp
mov dword [esp + 0x40], 0x139
mov dword [eax], str.action3.MsiGetActiveDatabase_fail.
mov dword [eax + 4], 0x22
call fcn.10008190
movq xmm0, qword [esp + 0x3c]
push 4
sub esp, 0xc
mov ecx, dword [eax + 0x114]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x10046738
call fcn.10006bf0
test esi, esi
je 0x10009c69
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ecx, dword [esp + 0x1a4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001f73e
mov esp, ebp
pop ebp
ret 4
call fcn.100247bf
int3