joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018acc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, str.RestrictDriverInstallationToAdministrators
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersPointAndPrint
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140018b2f
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x140018b6b
mov rcx, qword [0x1400b62f8]
lea rdx, [0x1400b62f8]
cmp rcx, rdx
je 0x140018b6b
test byte [rcx + 0x44], bl
je 0x140018b6b
test eax, eax
jle 0x140018b53
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b658]
mov edx, 0x17
mov r9d, eax
call fcn.14002f358
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140019224
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], ebx
mov qword [r11 - 0x18], rax
lea r8, str.RpcNamedPipeAuthentication
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea r9d, [rbx + 0x18]
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersRPC
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
lea rdi, [0x1400b62f8]
test eax, eax
jne 0x1400192a7
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400192d1
sub eax, 1
je 0x1400192a0
mov rcx, qword [0x1400b62f8]
cmp eax, 1
jne 0x1400192d8
lea ebx, [rax + 1]
jmp 0x1400192d8
mov ebx, 1
jmp 0x1400192d1
mov rcx, qword [0x1400b62f8]
cmp rcx, rdi
je 0x1400192fd
test byte [rcx + 0x1c], 1
je 0x1400192d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b9a8]
mov edx, 0xb
mov r9d, eax
call fcn.14002f358
mov rcx, qword [0x1400b62f8]
cmp rcx, rdi
je 0x1400192fd
test byte [rcx + 0x1c], 4
je 0x1400192fd
mov r9d, dword [rsp + 0x50]
lea r8, [0x14009b9a8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
call fcn.14002f358
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140019354
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140053514
mov ebx, eax
test eax, eax
jne 0x1400193c6
and dword [rsp + 0x50], eax
lea r9d, [rbx + 0x10]
and dword [rsp + 0x60], eax
lea r8, str.ContainerInit
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x30], rax
lea rdx, [0x14009b780]
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400193c6
cmp dword [rsp + 0x50], ebx
lea eax, [rbx + 1]
cmovne ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400193d8
Capabilities:
Get domain information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x30], rbx
lea edi, [rbx + 1]
mov edx, edi
call qword [sym.imp.DSROLE.dll_DsRoleGetPrimaryDomainInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14001941f
mov rcx, qword [rsp + 0x30]
test dword [rcx], 0xfffffffd
cmovne ebx, edi
call qword [sym.imp.DSROLE.dll_DsRoleFreeMemory]
nop dword [rax + rax]
mov rcx, qword [0x1400b62f8]
lea rax, [0x1400b62f8]
cmp rcx, rax
je 0x140019450
test byte [rcx + 0x1c], 4
je 0x140019450
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b9a8]
mov edx, 0xa
mov r9d, ebx
call fcn.14002f358
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140019464
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, [0x14009b950]
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, [0x14009b780]
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov rcx, qword [0x1400b62f8]
lea rsi, [0x1400b62f8]
test eax, eax
jne 0x1400194d9
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x140019502
cmp rcx, rsi
je 0x140019527
test byte [rcx + 0x1c], bl
je 0x140019502
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b9a8]
mov edx, 0xd
mov r9d, eax
call fcn.14002f358
mov rcx, qword [0x1400b62f8]
cmp rcx, rsi
je 0x140019527
test byte [rcx + 0x1c], 4
je 0x140019527
mov r9d, dword [rsp + 0x50]
lea r8, [0x14009b9a8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
call fcn.14002f358
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret

Function at 0x140019664
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov dword [rbp + 0x30], 4
xor edi, edi
lea rcx, [rbp - 8]
mov dword [rbp + 0x28], edi
call fcn.1400532b0
lea rcx, [rbp - 0x10]
call fcn.1400532b0
lea r8, [rbp - 8]
mov edx, 0x20019
mov rcx, rbx
call fcn.140055c10
test eax, eax
jne 0x14001970f
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001970f
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.MaintainDefaultPrinter
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001970f
lea eax, [rdi + 1]
cmp dword [rbp + 0x28], eax
cmove edi, eax
lea rcx, [rbp - 0x10]
call fcn.140012d58
lea rcx, [rbp - 8]
call fcn.140012d58
mov eax, edi
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14002ebec
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400b67a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r15d, r15d
mov r14, r8
mov qword [r8], r15
mov ebx, 0x104
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14000c1d0
mov ecx, ebx
lea rax, [rsp + 0x50]
cmp word [rax], r15w
je 0x14002ec52
add rax, 2
sub rcx, 1
jne 0x14002ec42
test rcx, rcx
je 0x14002ec5f
mov rax, rbx
sub rax, rcx
jmp 0x14002ec62
mov rax, r15
test rcx, rcx
je 0x14002ec82
mov rdx, rbx
lea rcx, [rsp + 0x50]
sub rdx, rax
lea rcx, [rcx + rax*2]
lea r9, [0x1400a8cd0]
call fcn.1400165cc
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r12, [fcn.14002c940]
mov rdi, rax
test rax, rax
jne 0x14002ecd6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14002eddb
mov edx, 0xc9
mov rcx, qword [rbp + 0x198]
call fcn.14002e16c
mov esi, eax
jmp 0x14002edde
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov rcx, rdi
mov dword [rsp + 0x38], r15d
call fcn.14002d6f4
mov esi, eax
test eax, eax
jns 0x14002ed0c
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xcf
call fcn.14002e18c
jmp 0x14002edde
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14001668c
test eax, eax
js 0x14002ed42
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
sub rbx, rax
lea r9, [0x1400a8cd8]
mov rdx, rbx
lea rcx, [rcx + rax*2]
call fcn.1400165cc
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14002ed6c
mov edx, 0xd5
jmp 0x14002ecc3
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002d6f4
mov esi, eax
test eax, eax
jns 0x14002edae
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xd7
call fcn.14002e18c
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r12
call fcn.140014828
jmp 0x14002edde
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.140014828
movsxd rcx, dword [rsp + 0x38]
movsxd rax, dword [rsp + 0x40]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14002edfc
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
call fcn.140014828
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140013380
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14003ced0
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x14003cf5a
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x14003cf50
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x14003cf50
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14003b260]
mov edx, 0x10000
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14003cf38
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14003cf50
mov rcx, qword [0x1400b8478]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14003eed0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, r9d
mov rbx, r8
mov esi, edx
mov rbp, rcx
test r8, r8
je 0x14003ef05
cmp qword [r8 + 8], 0
jne 0x14003ef05
mov eax, 0x57
jmp 0x14003efcd
mov ecx, dword [rsp + 0x60]
call fcn.140003a5c
test eax, eax
je 0x14003efc1
mov ecx, dword [0x1400b8604]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
test rbx, rbx
je 0x14003ef38
mov r9, qword [rbx + 8]
jmp 0x14003ef3b
xor r9d, r9d
test rbx, rbx
je 0x14003ef45
mov r8d, dword [rbx]
jmp 0x14003ef48
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], edi
mov rcx, rbp
call sym.spoolsv.exe_PrvSetJobW
mov ecx, dword [0x1400b8604]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x60]
call fcn.1400038ac
test ebx, ebx
je 0x14003ef7d
xor eax, eax
jmp 0x14003efcd
mov rax, qword [0x1400b62f8]
lea rcx, [0x1400b62f8]
cmp rax, rcx
je 0x14003efc1
test byte [rax + 0x44], 1
je 0x14003efc1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b62f8]
lea r8, [0x14009b658]
mov r9d, eax
mov edx, 0x1d
mov rcx, qword [rcx + 0x38]
call fcn.14002f358
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003eff0
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov esi, r9d
mov rcx, r8
mov rbx, r8
mov rbp, rdx
call fcn.14003b298
xor edi, edi
test eax, eax
jne 0x14003f02d
mov eax, 0x57
jmp 0x14003f0fe
cmp dword [r8], 3
je 0x14003f046
mov ecx, 0x7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14003f023
mov ecx, esi
call fcn.140003a5c
test eax, eax
jne 0x14003f062
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14003f0fe
mov ecx, dword [0x1400b8600]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov r9, qword [rbx + 8]
mov rdx, rbp
mov r8d, dword [rbx]
mov rcx, r14
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1400b8600]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, esi
call fcn.1400038ac
test ebx, ebx
jne 0x14003f0fc
mov rax, qword [0x1400b62f8]
lea rcx, [0x1400b62f8]
cmp rax, rcx
je 0x14003f0ee
test byte [rax + 0x44], 1
je 0x14003f0ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b62f8]
lea edx, [rbx + 0x56]
mov r9d, eax
lea r8, [0x14009b658]
mov rcx, qword [rcx + 0x38]
call fcn.14002f358
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14003fdb4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14009b780]
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003fe48
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.MaxRpcSize
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140051b00
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x60
mov ebx, edx
mov edi, ecx
test edx, edx
jne 0x140051b25
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140051b27
mov eax, ebx
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x30]
and dword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rcx, [0x1400a8a78]
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], 4
call fcn.140051d48
mov rcx, qword [0x1400b62f8]
lea rbp, [0x1400b62f8]
cmp rcx, rbp
je 0x140051b99
test byte [rcx + 0x1c], 4
je 0x140051b99
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b828]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9d, edi
call fcn.140036374
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
test eax, eax
jne 0x140051c29
mov rcx, qword [0x1400b62f8]
cmp rcx, rbp
je 0x140051c1e
test byte [rcx + 0x1c], 4
je 0x140051bfe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b62f8]
lea r8, [0x14009b828]
mov r9d, eax
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
call fcn.14002f358
mov rcx, qword [0x1400b62f8]
cmp rcx, rbp
je 0x140051c1e
test byte [rcx + 0x1c], 4
je 0x140051c1e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009b828]
mov edx, 0x21
call fcn.14002f32c
xor eax, eax
movabs byte [0], al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140052708
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400b67a8]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
nop dword [rax + rax]
test eax, eax
jne 0x14005280c
cmp dword [rbp + 0x27], edi
je 0x14005280c
lea ebx, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14005280c
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x1400527fc
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x1400527ec
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140013380
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140052990
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1400b67a8]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r12d, r12d
mov r15, r8
cmp qword [0x1400b88a8], r12
mov rbx, rcx
jne 0x1400529de
mov eax, 0x80004005
jmp 0x140052bbe
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], r12b
test rbx, rbx
je 0x140052a43
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400526a4
mov rcx, rbx
call fcn.140052708
test al, al
je 0x140052a43
mov rcx, qword [0x1400b62f8]
lea rsi, [0x1400b62f8]
cmp rcx, rsi
je 0x140052a39
mov r14d, 2
test byte [rcx + 0x1c], r14b
je 0x140052a39
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 8]
lea r8, [0x1400aa9a8]
call fcn.14002f32c
mov edi, 1
jmp 0x140052ba4
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x29c
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x2b0
mov edi, 1
lea rsi, [0x1400b62f8]
movups xmm0, xmmword [0x1400aa998]
lea r14d, [rdi + 1]
movdqu xmmword [rsp + 0x44], xmm0
test r15, r15
je 0x140052a92
mov r8, r15
lea rcx, [rbp - 0x18]
mov edx, 0x104
call fcn.14000c1d0
jmp 0x140052af8
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rdx, [rbp - 0x18]
mov ecx, r14d
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x140052af8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140052ace
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400b62f8]
cmp rcx, rsi
je 0x140052af8
test byte [rcx + 0x1c], dil
je 0x140052af8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aa9a8]
mov edx, 0xb
mov r9d, eax
call fcn.14002f358
lea rdx, [rbp + 0x1f0]
mov rcx, rbx
call fcn.1400524a0
mov ebx, eax
test eax, eax
js 0x140052b24
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1f0]
call fcn.140052614
mov ebx, eax
test eax, eax
jns 0x140052b60
mov rcx, qword [0x1400b62f8]
cmp rcx, rsi
je 0x140052b4e
test byte [rcx + 0x1c], r14b
je 0x140052b4e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aa9a8]
mov edx, 0xc
mov r9d, ebx
call fcn.14002f358
mov word [rsp + 0x68], r14w
mov dword [rsp + 0x6c], r12d
cmp word [rbp - 0x18], r12w
je 0x140052ba2
mov rax, qword [0x1400b88a8]
lea rcx, [rsp + 0x40]
call qword [0x140097d68]
mov ebx, eax
test eax, eax
jns 0x140052ba2
mov rcx, qword [0x1400b62f8]
cmp rcx, rsi
je 0x140052ba2
test byte [rcx + 0x1c], dil
je 0x140052ba2
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aa9a8]
mov edx, 0xd
mov r9d, eax
call fcn.14002f358
mov edi, ebx
cmp byte [rsp + 0x30], r12b
je 0x140052bbc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140013380
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140053220
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor ecx, ecx
mov rbx, rax
test rax, rax
jne 0x14005325d
mov edi, 0xc0000017
jmp 0x14005329c
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rdx, rbx
mov rcx, rdi
call fcn.140053190
mov edi, eax
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x140053378
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [r11 - 0x28], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test rcx, rcx
je 0x140053440
test rdx, rdx
je 0x140053440
test r8, r8
je 0x140053440
lea rax, [r11 - 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x38], rax
lea rdx, [0x1400aaa80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.14001964c
mov ebx, eax
test eax, eax
js 0x140053445
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.14001964c
mov ebx, eax
test eax, eax
js 0x14005342d
test rdi, rdi
je 0x14005342d
mov eax, dword [rsp + 0x60]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140053445
mov ebx, 0x80004003
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret