joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100041444
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
and qword [rsp + 0x58], 0
mov rbx, r8
mov rdi, rdx
test rdx, rdx
jne 0x100041475
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100041552
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.100010c04
test eax, eax
je 0x10004146e
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x1000414a8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
mov ebx, eax
cmp eax, 2
jne 0x1000414eb
xor ebx, ebx
jmp 0x1000414eb
movzx ecx, word [rbx + 0x46]
movzx eax, word [rbx + 0x44]
mov r9d, 3
add ecx, eax
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1000414eb
lea ecx, [rax + 2]
lea r8d, [rax + 0x1b]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x10004154d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x10007f250]
lea rcx, [0x10007f250]
cmp rax, rcx
je 0x10004146e
test byte [rax + 0x1c], 1
je 0x10004146e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079db0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xa
call fcn.10001c084
jmp 0x10004146e
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x100042c40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx]
mov edi, 1
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [rbx + 8], dil
jne 0x100042d20
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x100042cb0
lea r9d, [rax - 1]
mov dword [rbx + 0x10], r9d
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100042ca4
test byte [rcx + 0x1c], 2
je 0x100042ca4
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x10007a088]
call fcn.10001c084
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100042d22
mov rax, qword [rbx]
mov r9d, dword [rbx + 0xc]
cmp r9d, dword [rax]
jae 0x100042d22
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100042cea
test byte [rcx + 0x1c], 2
je 0x100042cea
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a088]
mov edx, 0xb
call fcn.10001c084
lea rax, [rsp + 0x40]
lea r8, [0x100042a88]
mov r9, rbx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x100042d20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [rbx + 0xc], edi
jmp 0x100042d22
xor edi, edi
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1000435d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rdx, [0x10007a0b0]
xor r8d, r8d
and qword [rsp + 0x30], rbx
and dword [rsp + 0x58], ebx
lea eax, [rbx + 4]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x30]
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004364f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x10007a0d8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, 1
test eax, eax
jne 0x10004364f
xor ebx, ebx
cmp dword [rsp + 0x58], 1
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10004365f
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x10004380c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x30], 0
and dword [rsp + 0x58], 0
mov ebx, 1
lea eax, [rbx + 3]
lea rdx, [0x10007a0b0]
mov r9d, ebx
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100043889
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x10007a0d8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100043889
cmp dword [rsp + 0x58], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100043899
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x100043a70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x10007f258]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
xor esi, esi
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x80], si
call sub.msvcrt.dll_memset
movdqu xmm0, xmmword [0x100076668]
lea rax, [rsp + 0x50]
lea rdx, [0x10007a0b0]
mov ebx, 0x208
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x50], 2
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x100043c61
cmp dword [rsp + 0x50], 2
jne 0x100043bd4
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x10007a0f0]
xor r8d, r8d
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, esi
jne 0x100043bd4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, esi
mov ebx, eax
jl 0x100043bd4
lea rcx, [0x100080fb8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [0x10007f368]
lea rax, [rsp + 0x70]
mov rcx, qword [rdx]
cmp rcx, qword [rax]
jne 0x100043bb6
mov rcx, qword [rdx + 8]
cmp rcx, qword [rax + 8]
jne 0x100043bb6
mov eax, esi
jmp 0x100043bbb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
lea rcx, [0x100080fb8]
mov edi, esi
setne dil
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp edi, esi
je 0x100043c4f
lea rcx, [0x100080fb8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [rsp + 0x60]
lea rcx, [0x10007f368]
call qword [sym.imp.ole32.dll_StringFromCLSID]
lea rcx, [0x100080fb8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp ebx, esi
jl 0x100043c4f
mov r8, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea rdx, [0x10007a0f0]
mov r9d, 1
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov rcx, qword [rsp + 0x60]
cmp rcx, rsi
je 0x100043c6f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100043c6f
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x100043c7f
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100044294
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0xca0
mov rax, qword [0x10007f258]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov rsi, rcx
xor ebp, ebp
mov edi, 0x616
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8, rdi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x50], bp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x672]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x670], bp
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x38]
lea r9d, [rbp + 3]
lea rdx, [0x1000759c0]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], 0x30c
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x34], ebp
mov ebx, ebp
mov dword [rsp + 0x30], ebp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov r13d, 0x80070000
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
cmp edi, ebp
jl 0x10004447e
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100043cac
cmp eax, ebp
mov edi, eax
jl 0x100044374
cmp word [rsp + 0x50], bp
mov ecx, ebp
setne cl
mov dword [rsp + 0x30], ecx
jmp 0x10004437f
cmp eax, 0x80070002
jne 0x100044384
mov dword [rsp + 0x30], ebp
mov ebx, 1
cmp eax, ebp
jl 0x100044441
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x670]
lea rdx, [0x100075890]
xor r8d, r8d
mov dword [rsp + 0x34], 0x618
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
cmp edi, ebp
jl 0x100044441
cmp word [rsp + 0x670], bp
je 0x100044441
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x670]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebp
je 0x100044441
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
lea rdx, [0x100075890]
mov r9d, 1
not rcx
xor r8d, r8d
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
cmp ebx, ebp
je 0x10004447e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, [0x100077620]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp edi, ebp
jl 0x10004447e
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x10004448e
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x100044860
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x280
mov rax, qword [0x10007f258]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov esi, ecx
mov r12, r8
mov rbp, rdx
xor r13d, r13d
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x50], r13
mov word [rsp + 0x60], r13w
call sub.msvcrt.dll_memset
lea rcx, [0x100080fb0]
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea r11, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], r11
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r13d
cmovle ebx, eax
cmp ebx, r13d
jl 0x1000449ed
mov edi, r13d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov edx, edi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x20], r13
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r13d
cmovle ebx, eax
cmp ebx, r13d
jl 0x1000449d8
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, r13d
cmovle ecx, eax
cmp ecx, r13d
jl 0x1000449c5
mov rcx, qword [rsp + 0x40]
call fcn.1000435d0
cmp eax, r13d
je 0x1000449c5
cmp esi, r13d
je 0x1000449b1
cmp esi, 1
jne 0x1000449c5
mov rcx, qword [rsp + 0x40]
mov r8, r12
mov rdx, rbp
call fcn.1000444c0
jmp 0x1000449c5
mov rcx, qword [rsp + 0x40]
call fcn.100044294
mov rcx, qword [rsp + 0x40]
call fcn.100043a70
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x1000449d5
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, r13d
inc edi
cmp ebx, r13d
jge 0x1000448ff
cmp ebx, 0x80070103
cmove ebx, r13d
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x1000449fd
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor r8d, r8d
lea r9, str.windows
mov ecx, 0xffff
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendNotifyMessageW]
lea rcx, [0x100080fb0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1000010b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100048d34
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x100080d20], 0xffffffff
jne 0x100048dd3
lea rax, [rsp + 0x50]
xor ebx, ebx
lea rdx, [0x10007a460]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbx
mov dword [0x100080d20], ebx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100048dd3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.PrintIsolationDefault
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100048dc8
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x100080d20], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [0x100080d20]
add rsp, 0x30
pop rbx
ret

Function at 0x100048e00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rbx, rcx
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100048e8d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.PrintDriverIsolationExecutionPolicy
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100048e79
cmp dword [rsp + 0x60], eax
jne 0x100048e79
and dword [rbx + 0x54], eax
jmp 0x100048e80
mov dword [rbx + 0x54], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x100048e94
mov dword [rbx + 0x54], 1
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100048ed8
test byte [rcx + 0x1c], 2
je 0x100048ed8
cmp dword [rbx + 0x54], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kExecuteInSandbox
lea r9, str.kExecuteInProc
lea r8, [0x10007a450]
mov edx, 0xc
cmove r9, rax
call fcn.100034584
add rsp, 0x40
pop rbx
ret
Function at 0x100048ee4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rbx, rcx
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100048f73
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.PrintDriverIsolationOverrideCompat
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100048f62
cmp dword [rsp + 0x60], 1
jne 0x100048f62
mov dword [rbx + 0x58], 1
jmp 0x100048f66
and dword [rbx + 0x58], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x100048f77
and dword [rbx + 0x58], 0
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100048fbb
test byte [rcx + 0x1c], 2
je 0x100048fbb
cmp dword [rbx + 0x58], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kOverrideCompatON
lea r9, str.kOverrideCompatOFF
lea r8, [0x10007a450]
mov edx, 0xd
cmove r9, rax
call fcn.100034584
add rsp, 0x40
pop rbx
ret
Function at 0x100049cc4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov edi, dword [rcx + 0x48]
mov r12, rdx
mov rbx, rcx
lea r14, [0x10007f250]
test edi, edi
js 0x100049e82
add rcx, 0x20
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx + 0x60]
mov eax, dword [rbx + 0x60]
cmp eax, dword [rbx + 0x5c]
jae 0x100049e22
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x64]
cmp eax, dword [rbx + 0x58]
jae 0x100049e22
cmp qword [rbx + 0x50], 0
jne 0x100049e59
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x10007f250]
cmp rcx, r14
je 0x100049d53
test byte [rcx + 0x1c], 2
je 0x100049d53
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a6e8]
mov edx, 0xb
call fcn.10001c060
and qword [rsp + 0x70], 0
xor edx, edx
lea rax, [rsp + 0x70]
lea r9, [0x10007a8c0]
lea rcx, [0x10007a8d0]
lea r8d, [rdx + 4]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
and qword [rsp + 0x60], 0
mov edi, eax
test eax, eax
js 0x100049dab
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
js 0x100049dab
mov rcx, qword [rsp + 0x60]
call fcn.10004b66c
mov edi, eax
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x100049dfa
cmp qword [rbx + 0x50], 0
jne 0x100049dfa
mov rax, qword [rsp + 0x60]
xor esi, esi
test rax, rax
je 0x100049dd5
and qword [rsp + 0x60], 0
mov rsi, rax
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x100049de9
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rbx + 0x50], 0
mov qword [rbx + 0x50], rsi
and dword [rbx + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x64], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x100049e10
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x100049e59
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x100049e59
mov edi, 0x800106ba
mov rcx, qword [0x10007f250]
cmp rcx, r14
je 0x100049e59
test byte [rcx + 0x1c], 2
je 0x100049e59
mov eax, dword [rbx + 0x58]
mov r9d, dword [rbx + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a6e8]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.1000349c4
test r12, r12
je 0x100049e74
test edi, edi
js 0x100049e74
mov rax, qword [rbx + 0x50]
mov qword [r12], rax
mov rcx, qword [rbx + 0x50]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jns 0x100049eac
mov rcx, qword [0x10007f250]
cmp rcx, r14
je 0x100049eac
test byte [rcx + 0x1c], 1
je 0x100049eac
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a6e8]
mov edx, 0xc
mov r9d, edi
call fcn.10001c084
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10004b720
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov esi, edx
mov rbp, rcx
lea eax, [rbx + 4]
lea rdx, str.PrintersDefaults
lea r9d, [rbx + 1]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x70], eax
lea rax, [r11 - 0x20]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x20], rbx
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x78], ebx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
mov edi, ebx
sete dil
cmp edi, ebx
je 0x10004b7f0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
lea rdx, [0x10007aa48]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10004b7b4
cmp dword [rsp + 0x78], 1
mov edi, ebx
setne dil
cmp edi, ebx
je 0x10004b7f0
mov rcx, qword [rsp + 0x38]
lea eax, [rsi + rsi]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
lea rdx, str.NetID
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov edi, ebx
cmp eax, ebx
sete dil
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x10004b800
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp edi, ebx
mov edx, 0x1016
setne bl
xor ecx, ecx
mov r8d, ebx
call sub.ntdll.dll_WinSqmSetDWORD
mov rbx, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x10004bc1c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov edi, ecx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x18], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10004bc8d
mov rcx, qword [rsp + 0x50]
test edi, edi
lea r9d, [rbx + 4]
setne al
mov dword [rsp + 0x28], r9d
lea rdx, str.UserSelectedDefault
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10004bc9d
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x10004bcb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rcx
mov eax, ebx
cmp rcx, rbx
jne 0x10004bccb
lea eax, [rbx + 0x57]
jmp 0x10004bcd1
mov dword [rcx], 1
mov ecx, ebx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x58], 4
cmp eax, ebx
jne 0x10004bd21
lea rax, [rsp + 0x58]
lea r8, str.UserSelectedDefault
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov r9d, 0x10
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov ecx, dword [rsp + 0x50]
cmp eax, 2
jne 0x10004bd31
xor ecx, ecx
mov dword [rdi], ebx
call fcn.10004bc1c
jmp 0x10004bd3d
cmp eax, ebx
jne 0x10004bd3d
cmp ecx, 1
sete bl
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret