joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100041564
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 0x100041595
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100041672
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.100010a90
test eax, eax
je 0x10004158e
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x1000415c8
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 0x10004160b
xor ebx, ebx
jmp 0x10004160b
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 0x10004160b
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 0x10004166d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x100080210]
lea rcx, [0x100080210]
cmp rax, rcx
je 0x10004158e
test byte [rax + 0x1c], 1
je 0x10004158e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080210]
lea r8, [0x100079e50]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xa
call fcn.10001c06c
jmp 0x10004158e
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x100042ca0
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 0x100042d80
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x100042d10
lea r9d, [rax - 1]
mov dword [rbx + 0x10], r9d
mov rcx, qword [0x100080210]
lea rax, [0x100080210]
cmp rcx, rax
je 0x100042d04
test byte [rcx + 0x1c], 2
je 0x100042d04
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x10007a138]
call fcn.10001c06c
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100042d82
mov rax, qword [rbx]
mov r9d, dword [rbx + 0xc]
cmp r9d, dword [rax]
jae 0x100042d82
mov rcx, qword [0x100080210]
lea rax, [0x100080210]
cmp rcx, rax
je 0x100042d4a
test byte [rcx + 0x1c], 2
je 0x100042d4a
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a138]
mov edx, 0xb
call fcn.10001c06c
lea rax, [rsp + 0x40]
lea r8, [0x100042aec]
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 0x100042d80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [rbx + 0xc], edi
jmp 0x100042d82
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 0x1000436fc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rdx, [0x10007a160]
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 0x10004377b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x10007a188]
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 0x10004377b
xor ebx, ebx
cmp dword [rsp + 0x58], 1
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10004378b
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 0x100043938
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, [0x10007a160]
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 0x1000439b5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x10007a188]
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 0x1000439b5
cmp dword [rsp + 0x58], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000439c5
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 0x100043ba0
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 [0x100080218]
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 [0x1000766f8]
lea rax, [rsp + 0x50]
lea rdx, [0x10007a160]
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 0x100043d91
cmp dword [rsp + 0x50], 2
jne 0x100043d04
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x10007a1a0]
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 0x100043d04
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, esi
mov ebx, eax
jl 0x100043d04
lea rcx, [0x100081fa8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [0x100080328]
lea rax, [rsp + 0x70]
mov rcx, qword [rdx]
cmp rcx, qword [rax]
jne 0x100043ce6
mov rcx, qword [rdx + 8]
cmp rcx, qword [rax + 8]
jne 0x100043ce6
mov eax, esi
jmp 0x100043ceb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
lea rcx, [0x100081fa8]
mov edi, esi
setne dil
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp edi, esi
je 0x100043d7f
lea rcx, [0x100081fa8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [rsp + 0x60]
lea rcx, [0x100080328]
call qword [sym.imp.ole32.dll_StringFromCLSID]
lea rcx, [0x100081fa8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp ebx, esi
jl 0x100043d7f
mov r8, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea rdx, [0x10007a1a0]
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 0x100043d9f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100043d9f
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x100043daf
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 0x1000443c4
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 [0x100080218]
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, [0x100075a30]
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 0x1000445ae
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100043ddc
cmp eax, ebp
mov edi, eax
jl 0x1000444a4
cmp word [rsp + 0x50], bp
mov ecx, ebp
setne cl
mov dword [rsp + 0x30], ecx
jmp 0x1000444af
cmp eax, 0x80070002
jne 0x1000444b4
mov dword [rsp + 0x30], ebp
mov ebx, 1
cmp eax, ebp
jl 0x100044571
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x670]
lea rdx, [0x100075900]
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 0x100044571
cmp word [rsp + 0x670], bp
je 0x100044571
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x670]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebp
je 0x100044571
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
lea rdx, [0x100075900]
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 0x1000445ae
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, [0x1000776b0]
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 0x1000445ae
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x1000445be
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 0x100044990
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 [0x100080218]
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, [0x100081fa0]
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 0x100044b1d
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 0x100044b08
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 0x100044af5
mov rcx, qword [rsp + 0x40]
call fcn.1000436fc
cmp eax, r13d
je 0x100044af5
cmp esi, r13d
je 0x100044ae1
cmp esi, 1
jne 0x100044af5
mov rcx, qword [rsp + 0x40]
mov r8, r12
mov rdx, rbp
call fcn.1000445f0
jmp 0x100044af5
mov rcx, qword [rsp + 0x40]
call fcn.1000443c4
mov rcx, qword [rsp + 0x40]
call fcn.100043ba0
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x100044b05
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, r13d
inc edi
cmp ebx, r13d
jge 0x100044a2f
cmp ebx, 0x80070103
cmove ebx, r13d
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x100044b2d
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, [0x100081fa0]
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 0x100048e64
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x100081d08], 0xffffffff
jne 0x100048f03
lea rax, [rsp + 0x50]
xor ebx, ebx
lea rdx, [0x10007a510]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbx
mov dword [0x100081d08], ebx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100048f03
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 0x100048ef8
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x100081d08], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [0x100081d08]
add rsp, 0x30
pop rbx
ret

Function at 0x100048f30
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 0x100048fbd
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 0x100048fa9
cmp dword [rsp + 0x60], eax
jne 0x100048fa9
and dword [rbx + 0x54], eax
jmp 0x100048fb0
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 0x100048fc4
mov dword [rbx + 0x54], 1
mov rcx, qword [0x100080210]
lea rax, [0x100080210]
cmp rcx, rax
je 0x100049008
test byte [rcx + 0x1c], 2
je 0x100049008
cmp dword [rbx + 0x54], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kExecuteInSandbox
lea r9, str.kExecuteInProc
lea r8, [0x10007a500]
mov edx, 0xc
cmove r9, rax
call fcn.100034604
add rsp, 0x40
pop rbx
ret
Function at 0x100049020
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 0x1000490af
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 0x10004909e
cmp dword [rsp + 0x60], 1
jne 0x10004909e
mov dword [rbx + 0x58], 1
jmp 0x1000490a2
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 0x1000490b3
and dword [rbx + 0x58], 0
mov rcx, qword [0x100080210]
lea rax, [0x100080210]
cmp rcx, rax
je 0x1000490f7
test byte [rcx + 0x1c], 2
je 0x1000490f7
cmp dword [rbx + 0x58], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kOverrideCompatON
lea r9, str.kOverrideCompatOFF
lea r8, [0x10007a500]
mov edx, 0xd
cmove r9, rax
call fcn.100034604
add rsp, 0x40
pop rbx
ret
Function at 0x100049e10
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, [0x100080210]
test edi, edi
js 0x100049fce
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 0x100049f6e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x64]
cmp eax, dword [rbx + 0x58]
jae 0x100049f6e
cmp qword [rbx + 0x50], 0
jne 0x100049fa5
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x100080210]
cmp rcx, r14
je 0x100049e9f
test byte [rcx + 0x1c], 2
je 0x100049e9f
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a798]
mov edx, 0xb
call fcn.10001c048
and qword [rsp + 0x70], 0
xor edx, edx
lea rax, [rsp + 0x70]
lea r9, [0x10007a970]
lea rcx, [0x10007a980]
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 0x100049ef7
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
js 0x100049ef7
mov rcx, qword [rsp + 0x60]
call fcn.10004b7a8
mov edi, eax
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x100049f46
cmp qword [rbx + 0x50], 0
jne 0x100049f46
mov rax, qword [rsp + 0x60]
xor esi, esi
test rax, rax
je 0x100049f21
and qword [rsp + 0x60], 0
mov rsi, rax
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x100049f35
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 0x100049f5c
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x100049fa5
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x100049fa5
mov edi, 0x800106ba
mov rcx, qword [0x100080210]
cmp rcx, r14
je 0x100049fa5
test byte [rcx + 0x1c], 2
je 0x100049fa5
mov eax, dword [rbx + 0x58]
mov r9d, dword [rbx + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a798]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.100034a44
test r12, r12
je 0x100049fc0
test edi, edi
js 0x100049fc0
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 0x100049ff8
mov rcx, qword [0x100080210]
cmp rcx, r14
je 0x100049ff8
test byte [rcx + 0x1c], 1
je 0x100049ff8
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a798]
mov edx, 0xc
mov r9d, edi
call fcn.10001c06c
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10004b860
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov esi, edx
mov rbp, rcx
lea eax, [rbx + 4]
lea rdx, [r11 - 0x28]
mov ecx, 0x20019
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x30], rbx
mov dword [r11 + 0x20], ebx
mov dword [rsp + 0x30], eax
mov dword [r11 + 0x18], eax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenCurrentUser]
cmp eax, ebx
mov edi, ebx
sete dil
cmp edi, ebx
je 0x10004b966
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9d, [rbx + 1]
lea rdx, str.PrintersDefaults
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov edi, ebx
cmp eax, ebx
sete dil
cmp edi, ebx
je 0x10004b966
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
lea rdx, [0x10007aaf8]
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 0x10004b924
cmp dword [rsp + 0x88], 1
mov edi, ebx
setne dil
cmp edi, ebx
je 0x10004b966
mov rcx, qword [rsp + 0x38]
lea eax, [rsi + rsi]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x80]
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 0x10004b976
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 + 0x70]
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x10004bd90
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
mov edi, ecx
lea rdx, [rax + 0x20]
mov ecx, 0x2001f
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenCurrentUser]
mov ebx, eax
test eax, eax
jne 0x10004be1b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10004be1b
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 0x10004be31
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x10004be41
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 0x10004be54
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 0x10004be6f
lea eax, [rbx + 0x57]
jmp 0x10004be75
mov dword [rcx], 1
mov ecx, ebx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x58], 4
cmp eax, ebx
jne 0x10004bec5
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 0x10004bed5
xor ecx, ecx
mov dword [rdi], ebx
call fcn.10004bd90
jmp 0x10004bee1
cmp eax, ebx
jne 0x10004bee1
cmp ecx, 1
sete bl
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret