Function at 0x44de3c
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x84], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x44de7e
test eax, eax
je 0x44e39d
mov dword [eax], 0xfffffffc
jmp 0x44e39d
mov esi, 0x4c06a8
mov dword [ebp - 0x9c], 0x3e7
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x20], 0xc
xor ebx, ebx
mov dword [ebp - 0x1c], 2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x6c], ebx
movsd dword es:[edi], dword [esi]
push 8
mov dword [ebp - 0xa8], eax
xor eax, eax
pop ecx
movsd dword es:[edi], dword [esi]
push str.ntdll.dll
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x8c], ebx
movsd dword es:[edi], dword [esi]
mov esi, 0x4c0680
mov dword [ebp - 0x88], ebx
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x98], ebx
mov word [ebp - 0x18], bx
mov dword [ebp - 0xbc], 0x18
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x14], 0x72657355
mov dword [ebp - 0x10], 0x30303233
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x64], ebx
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0xdc]
mov dword [ebp - 0x7c], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwCreateToken
push edi
call esi
push str.RtlNtStatusToDosError
push edi
mov dword [ebp - 0x80], eax
call esi
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0x80], ebx
je 0x44e38d
test eax, eax
je 0x44e38d
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x54]
call fcn.0044d6bc
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
pop ecx
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0xa
push esi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
jne 0x44dfbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44dfe8
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x48], eax
pop ecx
test eax, eax
je 0x44dfe8
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x40]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e04b
mov edx, dword [ebp - 0x48]
push edx
call edi
pop ecx
mov ecx, ebx
push 0xfffffffffffffff9
mov esi, ecx
pop eax
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x44dffb
mov dword [edx], eax
test ecx, ecx
je 0x44e003
push ecx
call edi
pop ecx
test esi, esi
je 0x44e00b
push esi
call edi
pop ecx
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x44e016
push eax
call edi
pop ecx
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x44e021
push eax
call edi
pop ecx
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x44e02c
push eax
call edi
pop ecx
test ebx, ebx
je 0x44e034
push ebx
call edi
pop ecx
cmp dword [ebp - 0x64], 0
je 0x44e043
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x74]
jmp 0x44e39f
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
push ebx
push ebx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e06c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44e099
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x44], eax
pop ecx
test eax, eax
je 0x44e099
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x40]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e0a2
mov eax, dword [ebp - 0x44]
push eax
call edi
pop ecx
push 0xfffffffffffffff8
mov esi, ebx
jmp 0x44e1bc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
push ebx
push ebx
push 5
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e0c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44e0f0
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x50], eax
pop ecx
test eax, eax
je 0x44e0f0
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x40]
push eax
push 5
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e0fa
mov ecx, dword [ebp - 0x50]
push ecx
call edi
pop ecx
push 0xfffffffffffffff7
mov dword [ebp - 0x50], ebx
jmp 0x44e1b9
cmp dword [ebp - 0x5c], ebx
jne 0x44e162
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
push ebx
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e120
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44e14f
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x68], eax
pop ecx
test eax, eax
je 0x44e14f
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x40]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e15c
push dword [ebp - 0x68]
call edi
pop ecx
mov dword [ebp - 0x60], ebx
mov eax, ebx
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
jmp 0x44dfef
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x4c], ebx
jne 0x44e1ca
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
push ebx
push ebx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e188
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44e1b4
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x4c], eax
pop ecx
test eax, eax
je 0x44e1b4
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x40]
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e1c4
push dword [ebp - 0x4c]
call edi
pop ecx
push 0xfffffffffffffff6
mov dword [ebp - 0x70], ebx
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
jmp 0x44dfee
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x54], 2
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
jne 0x44e1f3
cmp dword [ebp - 0x58], 6
jb 0x44e1f3
xor eax, eax
inc eax
mov dword [ebp - 0x58], eax
jmp 0x44e208
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], ebx
cmp dword [edx], ebx
jbe 0x44e26e
mov esi, dword [ebp - 0x58]
lea edi, [edx + 4]
test esi, esi
je 0x44e245
mov ecx, dword [edi]
call fcn.0044d767
test eax, eax
jne 0x44e23d
mov ecx, dword [edi]
call fcn.0044d785
test eax, eax
jne 0x44e23d
mov ecx, dword [edi]
call fcn.0044d7c1
test eax, eax
je 0x44e242
lea eax, [ebp - 0x2c]
mov dword [edi], eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [edi]
call fcn.0044d7df
test eax, eax
je 0x44e257
mov dword [edi + 4], 0xf
mov eax, dword [ebp - 0x54]
add edi, 8
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [edx]
jb 0x44e218
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x88], ebx
test eax, eax
jne 0x44e280
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
sub esp, 0xc
mov dword [ebp - 0x8c], eax
mov edx, eax
lea ecx, [ebp - 0xdc]
call fcn.0044dd20
add esp, 0xc
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 6
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44e2ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44e2e7
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x5c], eax
pop ecx
test eax, eax
je 0x44e2e7
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x40]
push eax
push 6
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
mov eax, dword [ebp - 0x5c]
jne 0x44e2ee
push eax
call edi
pop ecx
push 0xffffffffffffffeb
jmp 0x44e1b9
lea ecx, [ebp - 0x64]
mov ebx, eax
push ecx
push dword [eax]
lea eax, [ebp - 0xdc]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x44e310
push 0xffffffffffffffea
jmp 0x44e1b9
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateLocallyUniqueId]
test eax, eax
jne 0x44e32b
push 0xfffffffffffffff4
jmp 0x44e1b9
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7c]
push eax
push ecx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x9c]
push eax
push 1
lea eax, [ebp - 0xbc]
push eax
push 0xf01ff
lea eax, [ebp - 0x74]
push eax
call dword [ebp - 0x80]
push eax
call dword [ebp - 0xa4]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x74], eax
cmove eax, esi
jmp 0x44e151
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x44e39d
mov dword [edx], 0xfffffffa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a439a
leave
ret