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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x460
mov rax, qword [0x100080258]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov rdi, rcx
mov rbx, rdx
mov ecx, 0x80070057
cmp rdx, rbp
je 0x100040627
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x40], bp
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x30]
lea rdx, [0x100075890]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x40e
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x100040619
lea edx, [rbp + 0x2c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, rbp
je 0x100040602
mov word [rax], bp
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov ecx, ebp
cmp eax, ebp
setne cl
jmp 0x100040627
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebp
cmovle ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100040960
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x100080258]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
lea rax, [rsp + 0x48]
mov r12, rdx
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
mov rbx, r9
mov esi, r8d
xor edx, edx
mov rbp, rcx
jmp 0x100040a23
lea rdx, str..Default
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100040a03
lea rcx, [rsp + 0x50]
mov edx, 0x5f
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x100040a03
test rbx, rbx
je 0x1000409ed
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100040a03
lea rdx, [rsp + 0x50]
mov r9, r12
mov r8, rbp
xor ecx, ecx
mov dword [rsp + 0x20], esi
call sym.spoolsv.exe_PrvUpdatePrinterRegUser
inc edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, edi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000003
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x1000409ab
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000010b0
add rsp, 0x260
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100040cac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x490
mov rax, qword [0x100080258]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, rdx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll_memset
xor r12d, r12d
xor edx, edx
mov edi, r12d
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x270]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], 0x208
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
cmp eax, r12d
jne 0x100040df4
cmp word [rsp + 0x60], r12w
je 0x100040de6
lea rcx, [rsp + 0x60]
mov edx, 0x2c
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
cmp rax, r12
je 0x100040de6
mov word [rax], r12w
add rbx, 2
cmp word [rbx], 0x20
je 0x100040d6a
lea rdx, [0x100079d98]
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
cmp eax, r12d
jne 0x100040de6
lea rcx, [rbx + 4]
mov word [rbx + 8], r12w
call fcn.100040c40
mov r8, rbp
mov r10d, eax
lea rax, [rsp + 0x270]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x100040dc2
add rax, 2
test edx, edx
jne 0x100040dae
cmp ecx, r12d
je 0x100040def
cmp r10d, 0x64
jae 0x100040de6
mov rdx, r10
and r10d, 0x1f
mov eax, 1
mov cl, r10b
shr rdx, 5
shl eax, cl
or dword [rsp + rdx*4 + 0x48], eax
inc edi
mov edx, edi
jmp 0x100040cf1
mov eax, r10d
jmp 0x100040dfe
lea rcx, [rsp + 0x48]
call fcn.100040c7c
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100041344
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor esi, esi
mov r13, r8
mov rdi, rdx
and qword [rax - 0x38], rsi
and dword [rax + 8], esi
mov r12, rcx
mov dword [rax + 0x20], 3
test rcx, rcx
je 0x1000414cd
test rdx, rdx
je 0x1000414cd
test r8, r8
je 0x1000414cd
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rbp, rax
test rax, rax
jne 0x1000413a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000414b7
mov rdx, qword [r12 + 0x48]
test rdx, rdx
je 0x1000414a9
cmp word [rdx], 0x5c
jne 0x1000414a9
cmp word [rdx + 2], 0x5c
jne 0x1000414a9
lea r8, [rsp + 0x30]
mov rcx, rax
call fcn.10004123c
mov ebx, eax
test eax, eax
jne 0x1000414ae
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
lea rdx, str.DefaultDevMode
xor r8d, r8d
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x10004149c
cmp dword [rsp + 0x88], 3
jne 0x100041497
mov ecx, dword [rsp + 0x70]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi], rax
test rax, rax
jne 0x10004143e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10004149c
lea rcx, [rsp + 0x70]
lea r9, [rsp + 0x88]
lea rdx, str.DefaultDevMode
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [rsp + 0x70]
add eax, 3
and eax, 0xfffffffc
test ebx, ebx
sete sil
mov dword [r13], eax
test esi, esi
jne 0x10004149c
mov rcx, qword [rdi]
test rcx, rcx
je 0x10004149c
call sym.spoolsv.exe_PrvDllFreeSplMem
and qword [rdi], 0
jmp 0x10004149c
mov ebx, 0xd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1000414ae
mov ebx, 0x709
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1000414d8
mov r8, r13
mov rdx, rdi
mov rcx, r12
call fcn.100041120
mov esi, eax
jmp 0x1000414d8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000414f4
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 0x100041525
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100041602
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.100010c94
test eax, eax
je 0x10004151e
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x100041558
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 0x10004159b
xor ebx, ebx
jmp 0x10004159b
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 0x10004159b
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 0x1000415fd
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x100080250]
lea rcx, [0x100080250]
cmp rax, rcx
je 0x10004151e
test byte [rax + 0x1c], 1
je 0x10004151e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea r8, [0x100079db0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xa
call fcn.10001c124
jmp 0x10004151e
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x100042cf0
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 0x100042dd0
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x100042d60
lea r9d, [rax - 1]
mov dword [rbx + 0x10], r9d
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x100042d54
test byte [rcx + 0x1c], 2
je 0x100042d54
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x10007a088]
call fcn.10001c124
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100042dd2
mov rax, qword [rbx]
mov r9d, dword [rbx + 0xc]
cmp r9d, dword [rax]
jae 0x100042dd2
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x100042d9a
test byte [rcx + 0x1c], 2
je 0x100042d9a
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007a088]
mov edx, 0xb
call fcn.10001c124
lea rax, [rsp + 0x40]
lea r8, [0x100042b38]
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 0x100042dd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [rbx + 0xc], edi
jmp 0x100042dd2
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 0x100043730
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 0x1000437af
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 0x1000437af
xor ebx, ebx
cmp dword [rsp + 0x58], 1
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000437bf
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 0x10004396c
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 0x1000439e9
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 0x1000439e9
cmp dword [rsp + 0x58], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000439f9
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 0x100043bd0
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 [0x100080258]
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 0x100043dc1
cmp dword [rsp + 0x50], 2
jne 0x100043d34
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 0x100043d34
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, esi
mov ebx, eax
jl 0x100043d34
lea rcx, [0x100081fb8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [0x100080368]
lea rax, [rsp + 0x70]
mov rcx, qword [rdx]
cmp rcx, qword [rax]
jne 0x100043d16
mov rcx, qword [rdx + 8]
cmp rcx, qword [rax + 8]
jne 0x100043d16
mov eax, esi
jmp 0x100043d1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
lea rcx, [0x100081fb8]
mov edi, esi
setne dil
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp edi, esi
je 0x100043daf
lea rcx, [0x100081fb8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [rsp + 0x60]
lea rcx, [0x100080368]
call qword [sym.imp.ole32.dll_StringFromCLSID]
lea rcx, [0x100081fb8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp ebx, esi
jl 0x100043daf
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 0x100043dcf
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100043dcf
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x100043ddf
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 0x100044400
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 [0x100080258]
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 0x1000445ea
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100043e0c
cmp eax, ebp
mov edi, eax
jl 0x1000444e0
cmp word [rsp + 0x50], bp
mov ecx, ebp
setne cl
mov dword [rsp + 0x30], ecx
jmp 0x1000444eb
cmp eax, 0x80070002
jne 0x1000444f0
mov dword [rsp + 0x30], ebp
mov ebx, 1
cmp eax, ebp
jl 0x1000445ad
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 0x1000445ad
cmp word [rsp + 0x670], bp
je 0x1000445ad
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x670]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebp
je 0x1000445ad
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 0x1000445ea
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 0x1000445ea
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x1000445fa
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 0x1000449cc
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 [0x100080258]
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, [0x100081fb0]
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 0x100044b59
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 0x100044b44
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 0x100044b31
mov rcx, qword [rsp + 0x40]
call fcn.100043730
cmp eax, r13d
je 0x100044b31
cmp esi, r13d
je 0x100044b1d
cmp esi, 1
jne 0x100044b31
mov rcx, qword [rsp + 0x40]
mov r8, r12
mov rdx, rbp
call fcn.10004462c
jmp 0x100044b31
mov rcx, qword [rsp + 0x40]
call fcn.100044400
mov rcx, qword [rsp + 0x40]
call fcn.100043bd0
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x100044b41
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, r13d
inc edi
cmp ebx, r13d
jge 0x100044a6b
cmp ebx, 0x80070103
cmove ebx, r13d
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x100044b69
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, [0x100081fb0]
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 0x100048e80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x100081d20], 0xffffffff
jne 0x100048f1f
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 [0x100081d20], ebx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100048f1f
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 0x100048f14
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x100081d20], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [0x100081d20]
add rsp, 0x30
pop rbx
ret

Function at 0x100048f4c
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 0x100048fd9
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 0x100048fc5
cmp dword [rsp + 0x60], eax
jne 0x100048fc5
and dword [rbx + 0x54], eax
jmp 0x100048fcc
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 0x100048fe0
mov dword [rbx + 0x54], 1
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x100049024
test byte [rcx + 0x1c], 2
je 0x100049024
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.100034654
add rsp, 0x40
pop rbx
ret
Function at 0x100049030
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 0x1000490bf
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 0x1000490ae
cmp dword [rsp + 0x60], 1
jne 0x1000490ae
mov dword [rbx + 0x58], 1
jmp 0x1000490b2
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 0x1000490c3
and dword [rbx + 0x58], 0
mov rcx, qword [0x100080250]
lea rax, [0x100080250]
cmp rcx, rax
je 0x100049107
test byte [rcx + 0x1c], 2
je 0x100049107
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.100034654
add rsp, 0x40
pop rbx
ret