joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100040a28
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 0x100040a59
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100040b36
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.100010734
test eax, eax
je 0x100040a52
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x100040a8c
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 0x100040acf
xor ebx, ebx
jmp 0x100040acf
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 0x100040acf
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 0x100040b31
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x10007f250]
lea rcx, [0x10007f250]
cmp rax, rcx
je 0x100040a52
test byte [rax + 0x1c], 1
je 0x100040a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100078dd0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xa
call fcn.10001ba70
jmp 0x100040a52
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1000421b4
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 0x100042294
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x100042224
lea r9d, [rax - 1]
mov dword [rbx + 0x10], r9d
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100042218
test byte [rcx + 0x1c], 2
je 0x100042218
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x1000790a8]
call fcn.10001ba70
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100042296
mov rax, qword [rbx]
mov r9d, dword [rbx + 0xc]
cmp r9d, dword [rax]
jae 0x100042296
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10004225e
test byte [rcx + 0x1c], 2
je 0x10004225e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000790a8]
mov edx, 0xb
call fcn.10001ba70
lea rax, [rsp + 0x40]
lea r8, [0x100042000]
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 0x100042294
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [rbx + 0xc], edi
jmp 0x100042296
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 0x100042b40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rdx, [0x1000790d0]
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 0x100042bbf
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x1000790f8]
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 0x100042bbf
xor ebx, ebx
cmp dword [rsp + 0x58], 1
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100042bcf
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 0x100042d80
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, [0x1000790d0]
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 0x100042dfd
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x1000790f8]
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 0x100042dfd
cmp dword [rsp + 0x58], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100042e0d
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 0x100042fe4
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 [0x100075688]
lea rax, [rsp + 0x50]
lea rdx, [0x1000790d0]
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 0x1000431d5
cmp dword [rsp + 0x50], 2
jne 0x100043148
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x100079110]
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 0x100043148
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, esi
mov ebx, eax
jl 0x100043148
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 0x10004312a
mov rcx, qword [rdx + 8]
cmp rcx, qword [rax + 8]
jne 0x10004312a
mov eax, esi
jmp 0x10004312f
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 0x1000431c3
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 0x1000431c3
mov r8, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea rdx, [0x100079110]
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 0x1000431e3
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000431e3
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x1000431f3
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.1000012f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100043810
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, [0x100074a50]
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 0x1000439fa
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100043220
cmp eax, ebp
mov edi, eax
jl 0x1000438f0
cmp word [rsp + 0x50], bp
mov ecx, ebp
setne cl
mov dword [rsp + 0x30], ecx
jmp 0x1000438fb
cmp eax, 0x80070002
jne 0x100043900
mov dword [rsp + 0x30], ebp
mov ebx, 1
cmp eax, ebp
jl 0x1000439bd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x670]
lea rdx, [0x100074920]
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 0x1000439bd
cmp word [rsp + 0x670], bp
je 0x1000439bd
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x670]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebp
je 0x1000439bd
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
lea rdx, [0x100074920]
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 0x1000439fa
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, [0x100075c10]
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 0x1000439fa
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x100043a0a
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.1000012f0
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 0x100043ddc
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 0x100043f69
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 0x100043f54
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 0x100043f41
mov rcx, qword [rsp + 0x40]
call fcn.100042b40
cmp eax, r13d
je 0x100043f41
cmp esi, r13d
je 0x100043f2d
cmp esi, 1
jne 0x100043f41
mov rcx, qword [rsp + 0x40]
mov r8, r12
mov rdx, rbp
call fcn.100043a3c
jmp 0x100043f41
mov rcx, qword [rsp + 0x40]
call fcn.100043810
mov rcx, qword [rsp + 0x40]
call fcn.100042fe4
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x100043f51
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, r13d
inc edi
cmp ebx, r13d
jge 0x100043e7b
cmp ebx, 0x80070103
cmove ebx, r13d
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x100043f79
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.1000012f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100048958
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x100080d20], 0xffffffff
jne 0x1000489f7
lea rax, [rsp + 0x50]
xor ebx, ebx
lea rdx, [0x100079480]
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 0x1000489f7
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 0x1000489ec
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 0x100048a24
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 0x100048ab1
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 0x100048a9d
cmp dword [rsp + 0x60], eax
jne 0x100048a9d
and dword [rbx + 0x54], eax
jmp 0x100048aa4
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 0x100048ab8
mov dword [rbx + 0x54], 1
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100048afc
test byte [rcx + 0x1c], 2
je 0x100048afc
cmp dword [rbx + 0x54], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kExecuteInSandbox
lea r9, str.kExecuteInProc
lea r8, [0x100079470]
mov edx, 0xc
cmove r9, rax
call fcn.100033f64
add rsp, 0x40
pop rbx
ret
Function at 0x100048b08
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 0x100048b97
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 0x100048b86
cmp dword [rsp + 0x60], 1
jne 0x100048b86
mov dword [rbx + 0x58], 1
jmp 0x100048b8a
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 0x100048b9b
and dword [rbx + 0x58], 0
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x100048bdf
test byte [rcx + 0x1c], 2
je 0x100048bdf
cmp dword [rbx + 0x58], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kOverrideCompatON
lea r9, str.kOverrideCompatOFF
lea r8, [0x100079470]
mov edx, 0xd
cmove r9, rax
call fcn.100033f64
add rsp, 0x40
pop rbx
ret
Function at 0x1000498e8
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 0x100049aa6
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 0x100049a46
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x64]
cmp eax, dword [rbx + 0x58]
jae 0x100049a46
cmp qword [rbx + 0x50], 0
jne 0x100049a7d
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x10007f250]
cmp rcx, r14
je 0x100049977
test byte [rcx + 0x1c], 2
je 0x100049977
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079708]
mov edx, 0xb
call fcn.10001ba4c
and qword [rsp + 0x70], 0
xor edx, edx
lea rax, [rsp + 0x70]
lea r9, [0x1000798e0]
lea rcx, [0x1000798f0]
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 0x1000499cf
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
js 0x1000499cf
mov rcx, qword [rsp + 0x60]
call fcn.10004b290
mov edi, eax
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x100049a1e
cmp qword [rbx + 0x50], 0
jne 0x100049a1e
mov rax, qword [rsp + 0x60]
xor esi, esi
test rax, rax
je 0x1000499f9
and qword [rsp + 0x60], 0
mov rsi, rax
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x100049a0d
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 0x100049a34
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x100049a7d
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x100049a7d
mov edi, 0x800106ba
mov rcx, qword [0x10007f250]
cmp rcx, r14
je 0x100049a7d
test byte [rcx + 0x1c], 2
je 0x100049a7d
mov eax, dword [rbx + 0x58]
mov r9d, dword [rbx + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079708]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.1000343a4
test r12, r12
je 0x100049a98
test edi, edi
js 0x100049a98
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 0x100049ad0
mov rcx, qword [0x10007f250]
cmp rcx, r14
je 0x100049ad0
test byte [rcx + 0x1c], 1
je 0x100049ad0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079708]
mov edx, 0xc
mov r9d, edi
call fcn.10001ba70
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10004b35c
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 0x10004b42c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
lea rdx, [0x100079a68]
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 0x10004b3f0
cmp dword [rsp + 0x78], 1
mov edi, ebx
setne dil
cmp edi, ebx
je 0x10004b42c
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 0x10004b43c
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 0x10004b858
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 0x10004b8c9
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 0x10004b8d9
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 0x10004b8ec
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 0x10004b907
lea eax, [rbx + 0x57]
jmp 0x10004b90d
mov dword [rcx], 1
mov ecx, ebx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x58], 4
cmp eax, ebx
jne 0x10004b95d
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 0x10004b96d
xor ecx, ecx
mov dword [rdi], ebx
call fcn.10004b858
jmp 0x10004b979
cmp eax, ebx
jne 0x10004b979
cmp ecx, 1
sete bl
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret