Function at 0x10002c50
Capabilities:
Get token membership

Disassembly:
sub esp, 0x230
mov eax, dword [0x10044040]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov ebx, dword [esp + 0x240]
lea edi, [esp + 0x38]
mov ecx, 0x13
lea eax, [esp + 0x85]
mov esi, str.C:_Windows_System32_cscript.exe___Nologo_C:_Windows_System32_slmgr.vbs__ipk
rep movsd dword es:[edi], dword [esi]
push 0x1b3
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.10015b20
add esp, 0xc
mov esi, ebx
cmp byte [ebx], 0
je 0x10002ca6
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x10002ca0
sub esi, ebx
lea edi, [esi + 0x58]
cmp edi, 0x200
jg 0x10002e9e
push esi
lea eax, [esp + 0x88]
push ebx
push eax
call fcn.100155a0
movq xmm0, qword [str.__echo_OK]
add esp, 0xc
mov eax, dword [0x10036440]
movq qword [esp + esi + 0x84], xmm0
mov dword [esp + esi + 0x8c], eax
cmp edi, 0x200
jae 0x10002e99
xor esi, esi
mov byte [esp + edi + 0x38], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [esp + 0x40]
mov dword [esp + 0x34], esi
push eax
mov dword [esp + 0x44], esi
mov word [esp + 0x48], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10002d47
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10002d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10002d66
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [esp + 0xc], 0
test esi, esi
jne 0x10002ea5
cmp dword [esp + 0x10], esi
je 0x10002e12
lea eax, [esp + 0x20]
mov dword [esp + 0x30], esi
push eax
xorps xmm0, xmm0
mov dword [esp + 0x38], 0xf
lea eax, [esp + 0x3c]
movups xmmword [esp + 0x24], xmm0
push eax
mov byte [esp + 0x28], 0
call fcn.100046c0
cmp dword [esp + 0x3c], 0xf
lea ecx, [esp + 0x28]
push dword [esp + 0x38]
cmova ecx, dword [esp + 0x2c]
mov esi, eax
push ecx
push 0x100456a0
call fcn.10001700
push 0x10036444
push eax
call fcn.10001320
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.100026c0
add esp, 0x24
test al, al
jne 0x10002e2c
mov ecx, dword [esp + 0x34]
cmp ecx, 0xf
jbe 0x10002e12
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002e08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002eb8
push ecx
push edx
call fcn.10013d04
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.100142e1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
push str.C:_Windows_System32_cscript.exe___Nologo_C:_Windows_System32_slmgr.vbs__ato__echo_OK
call fcn.100046c0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.100026c0
mov ecx, dword [esp + 0x44]
add esp, 0x10
test al, al
je 0x10002de0
cmp ecx, 0xf
jbe 0x10002e7f
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002e75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002eb8
push ecx
push edx
call fcn.10013d04
add esp, 8
mov ecx, dword [esp + 0x238]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100142e1
add esp, 0x230
ret
call fcn.1001414f
push 0xffffffffffffffff
call fcn.10018feb
push 0x10040f8c
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push eax
call fcn.100150d0
call fcn.10018c4f
int3