Function at 0x140057010
Capabilities:
Check for time delay via gettickcount
Get token membership

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov r14d, ecx
lea r15, [0x1400052e0]
mov qword [r11 - 0xf8], r15
lea r12, [0x140005330]
mov qword [r11 - 0xf0], r12
lea r13, [0x140005298]
mov qword [r11 - 0xe8], r13
mov dword [rsp + 0x118], 0xdd
mov dword [rsp + 0x11c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x120], 0xff
xor esi, esi
mov dword [r11 - 0x58], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x78]
lea rcx, [r11 - 0xd0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x88], esi
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0x11c]
mov dword [rsp + 0xa4], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0x84], 0xffffffff
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0x80], esi
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xf0], rsi
lea rcx, [rsp + 0xf0]
call qword [sym.imp.VssTrace.DLL_Ordinal_10]
test eax, eax
js 0x140057479
lea rcx, [rsp + 0x80]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
test eax, eax
js 0x140057479
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x140057486
mov eax, dword [rax + 0x30]
inc eax
mov dword [rsp + 0xb0], eax
mov ebx, dword [rsp + 0xb8]
cmp ebx, 0xff
jne 0x1400571c4
mov ebx, RegisterTypeLib
mov edi, dword [rsp + 0xa4]
call qword [sym.imp.VssTrace.DLL_Ordinal_5]
test eax, eax
jne 0x140069e22
cmp byte [rsp + 0x1a3], sil
je 0x140057205
lea rbx, [rsp + 0x128]
mov edi, 0xf
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140069ea5
add rbx, 8
dec rdi
jne 0x1400571f0
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rbx, [0x140001b60]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x1c0], 0
mov word [rsp + 0x1c4], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140069eb3
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
jne 0x140069f3c
mov qword [rsp + 0x78], 0xffffffffffffffff
lea r8, [rsp + 0x78]
xor edx, edx
mov cl, 1
call fcn.140054e20
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
test al, al
je 0x140057492
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_CheckTokenMembership]
test eax, eax
je 0x140069f48
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400572d6
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_FreeSid]
cmp dword [rsp + 0x88], 0
jl 0x1400574ad
cmp dword [rsp + 0x60], 0
je 0x140069fdf
mov dil, 1
lea rax, [0x140002b68]
mov qword [rsp + 0x20], rax
lea r9, [0x140002b88]
mov r8d, 0xaa
lea rdx, [0x140002b58]
lea rcx, [rsp + 0x80]
call fcn.140051070
nop
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140057336
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rax, [0x140001e38]
mov qword [rsp + 0x70], rax
mov rbx, rsi
mov rcx, qword [rsp + rbx*8 + 0xc0]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rsp + rbx*8 + 0xc0], rsi
inc rbx
cmp rbx, 4
jl 0x14005734e
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov r9d, eax
sub r9d, dword [rsp + 0xb4]
mov eax, 0x10624dd3
mul r9d
mov r10d, edx
shr r10d, 6
imul ecx, r10d, 0x3e8
mov esi, r9d
sub esi, ecx
mov eax, 0x88888889
mul r10d
shr edx, 5
imul eax, edx, 0x3c
sub r10d, eax
mov eax, 0x45e7b273
mul r9d
mov r11d, edx
shr r11d, 0xe
mov eax, 0x88888889
mul r11d
shr edx, 5
imul ecx, edx, 0x3c
sub r11d, ecx
mov eax, 0x95217cb1
mul r9d
mov ebx, edx
shr ebx, 0x15
mov eax, 0x88888889
mul ebx
shr edx, 5
imul eax, edx, 0x3c
sub ebx, eax
mov r8d, dword [rsp + 0xb8]
cmp r8d, 0xff
jne 0x1400573fd
mov r8d, RegisterTypeLib
mov ecx, dword [rsp + 0x88]
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea r9, [0x1400043e0]
lea rdx, [0x1400043d0]
lea rcx, [rsp + 0x80]
call fcn.140051070
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.VssTrace.DLL_Ordinal_9]
movzx eax, dil
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rsp + 0xe0]
jmp 0x14005719b
mov dword [rsp + 0xb0], esi
jmp 0x1400571b0
xor ecx, ecx
jmp 0x1400572b8
lea rcx, [rsp + 0x80]
call fcn.14010192c
nop
int3
mov ecx, edi
call qword [sym.imp.VssTrace.DLL_Ordinal_7]
test eax, eax
je 0x1400571d9
lea rcx, [rsp + 0x80]
call fcn.140103ce0
cmp dword [rsp + 0x80], esi
je 0x1400571d9
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebx
lea rax, [0x1400043c0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xb0]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.VssTrace.DLL_Ordinal_3]
nop
jmp 0x1400571d9
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov qword [rbx], rsi
jmp 0x1400571fc
mov qword [rsp + 0x100], r15
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x110], r13
mov dword [rsp + 0x118], 0xf9
mov dword [rsp + 0x11c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x120], 0xff
mov dword [rsp + 0x1a0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x128]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x140069f1c
movzx eax, ax
or eax, 0x80070000
lea r9, [0x1400238b0]
mov r8d, eax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.140102640
nop
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x14005728a
mov qword [rsp + 0x100], r15
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x110], r13
mov dword [rsp + 0x118], 0x119
mov dword [rsp + 0x11c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x120], 0xff
mov dword [rsp + 0x1a0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x128]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x140069fb1
movzx eax, ax
or eax, 0x80070000
lea r9, [0x14003d220]
mov r8d, eax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.140102640
nop
lea rbx, [0x140001b60]
xor esi, esi
jmp 0x1400572c6
xor dil, dil
lea rax, [0x140002b78]
jmp 0x1400572f9