joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100043cc8
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 0x100043e51
test rdx, rdx
je 0x100043e51
test r8, r8
je 0x100043e51
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rbp, rax
test rax, rax
jne 0x100043d2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100043e3b
mov rdx, qword [r12 + 0x48]
test rdx, rdx
je 0x100043e2d
cmp word [rdx], 0x5c
jne 0x100043e2d
cmp word [rdx + 2], 0x5c
jne 0x100043e2d
lea r8, [rsp + 0x30]
mov rcx, rax
call fcn.100043bc0
mov ebx, eax
test eax, eax
jne 0x100043e32
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 0x100043e20
cmp dword [rsp + 0x88], 3
jne 0x100043e1b
mov ecx, dword [rsp + 0x70]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi], rax
test rax, rax
jne 0x100043dc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100043e20
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 0x100043e20
mov rcx, qword [rdi]
test rcx, rcx
je 0x100043e20
call sym.spoolsv.exe_PrvDllFreeSplMem
and qword [rdi], 0
jmp 0x100043e20
mov ebx, 0xd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x100043e32
mov ebx, 0x709
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x100043e5c
mov r8, r13
mov rdx, rdi
mov rcx, r12
call fcn.100043a9c
mov esi, eax
jmp 0x100043e5c
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 0x100043e78
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 0x100043ea9
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100043f86
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.1000109fc
test eax, eax
je 0x100043ea2
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x100043edc
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 0x100043f1f
xor ebx, ebx
jmp 0x100043f1f
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 0x100043f1f
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 0x100043f81
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x100083210]
lea rcx, [0x100083210]
cmp rax, rcx
je 0x100043ea2
test byte [rax + 0x1c], 1
je 0x100043ea2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x10007d330]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xa
call fcn.10001c48c
jmp 0x100043ea2
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1000457d8
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 0x1000458b8
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x100045848
lea r9d, [rax - 1]
mov dword [rbx + 0x10], r9d
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x10004583c
test byte [rcx + 0x1c], 2
je 0x10004583c
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x10007d648]
call fcn.10001c48c
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1000458ba
mov rax, qword [rbx]
mov r9d, dword [rbx + 0xc]
cmp r9d, dword [rax]
jae 0x1000458ba
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x100045882
test byte [rcx + 0x1c], 2
je 0x100045882
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007d648]
mov edx, 0xb
call fcn.10001c48c
lea rax, [rsp + 0x40]
lea r8, [0x100045624]
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 0x1000458b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [rbx + 0xc], edi
jmp 0x1000458ba
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 0x100046230
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rdx, [0x10007d670]
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 0x1000462af
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x10007d698]
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 0x1000462af
xor ebx, ebx
cmp dword [rsp + 0x58], 1
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000462bf
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 0x10004646c
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, [0x10007d670]
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 0x1000464e9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x10007d698]
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 0x1000464e9
cmp dword [rsp + 0x58], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000464f9
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 0x1000466d0
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 [0x100083218]
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 [0x100079848]
lea rax, [rsp + 0x50]
lea rdx, [0x10007d670]
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 0x1000468c1
cmp dword [rsp + 0x50], 2
jne 0x100046834
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x10007d6b0]
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 0x100046834
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, esi
mov ebx, eax
jl 0x100046834
lea rcx, [0x100084fa8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [0x100083328]
lea rax, [rsp + 0x70]
mov rcx, qword [rdx]
cmp rcx, qword [rax]
jne 0x100046816
mov rcx, qword [rdx + 8]
cmp rcx, qword [rax + 8]
jne 0x100046816
mov eax, esi
jmp 0x10004681b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
lea rcx, [0x100084fa8]
mov edi, esi
setne dil
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp edi, esi
je 0x1000468af
lea rcx, [0x100084fa8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea rdx, [rsp + 0x60]
lea rcx, [0x100083328]
call qword [sym.imp.ole32.dll_StringFromCLSID]
lea rcx, [0x100084fa8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp ebx, esi
jl 0x1000468af
mov r8, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea rdx, [0x10007d6b0]
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 0x1000468cf
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000468cf
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x1000468df
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.1000010c0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100046ef4
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 [0x100083218]
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, [0x100078b90]
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 0x1000470de
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.10004690c
cmp eax, ebp
mov edi, eax
jl 0x100046fd4
cmp word [rsp + 0x50], bp
mov ecx, ebp
setne cl
mov dword [rsp + 0x30], ecx
jmp 0x100046fdf
cmp eax, 0x80070002
jne 0x100046fe4
mov dword [rsp + 0x30], ebp
mov ebx, 1
cmp eax, ebp
jl 0x1000470a1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x670]
lea rdx, [0x100078a60]
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 0x1000470a1
cmp word [rsp + 0x670], bp
je 0x1000470a1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x670]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebp
je 0x1000470a1
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
lea rdx, [0x100078a60]
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 0x1000470de
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, [0x10007a800]
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 0x1000470de
movzx edi, ax
or edi, r13d
cmp eax, ebp
cmovle edi, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x1000470ee
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.1000010c0
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 0x1000474c0
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 [0x100083218]
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, [0x100084fa0]
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 0x10004764d
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 0x100047638
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 0x100047625
mov rcx, qword [rsp + 0x40]
call fcn.100046230
cmp eax, r13d
je 0x100047625
cmp esi, r13d
je 0x100047611
cmp esi, 1
jne 0x100047625
mov rcx, qword [rsp + 0x40]
mov r8, r12
mov rdx, rbp
call fcn.100047120
jmp 0x100047625
mov rcx, qword [rsp + 0x40]
call fcn.100046ef4
mov rcx, qword [rsp + 0x40]
call fcn.1000466d0
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x100047635
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, r13d
inc edi
cmp ebx, r13d
jge 0x10004755f
cmp ebx, 0x80070103
cmove ebx, r13d
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x10004765d
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, [0x100084fa0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1000010c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10004b968
Capabilities:
Query or enumerate registry value

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

Function at 0x10004ba40
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 0x10004bacd
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 0x10004bab9
cmp dword [rsp + 0x60], eax
jne 0x10004bab9
and dword [rbx + 0x54], eax
jmp 0x10004bac0
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 0x10004bad4
mov dword [rbx + 0x54], 1
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x10004bb18
test byte [rcx + 0x1c], 2
je 0x10004bb18
cmp dword [rbx + 0x54], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kExecuteInSandbox
lea r9, str.kExecuteInProc
lea r8, [0x10007da10]
mov edx, 0xc
cmove r9, rax
call fcn.100036f5c
add rsp, 0x40
pop rbx
ret
Function at 0x10004bb24
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 0x10004bbb3
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 0x10004bba2
cmp dword [rsp + 0x60], 1
jne 0x10004bba2
mov dword [rbx + 0x58], 1
jmp 0x10004bba6
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 0x10004bbb7
and dword [rbx + 0x58], 0
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x10004bbfb
test byte [rcx + 0x1c], 2
je 0x10004bbfb
cmp dword [rbx + 0x58], 1
mov rcx, qword [rcx + 0x10]
lea rax, str.kOverrideCompatON
lea r9, str.kOverrideCompatOFF
lea r8, [0x10007da10]
mov edx, 0xd
cmove r9, rax
call fcn.100036f5c
add rsp, 0x40
pop rbx
ret
Function at 0x10004c8f4
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, [0x100083210]
test edi, edi
js 0x10004cab2
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 0x10004ca52
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x64]
cmp eax, dword [rbx + 0x58]
jae 0x10004ca52
cmp qword [rbx + 0x50], 0
jne 0x10004ca89
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x100083210]
cmp rcx, r14
je 0x10004c983
test byte [rcx + 0x1c], 2
je 0x10004c983
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007dca8]
mov edx, 0xb
call fcn.10001c468
and qword [rsp + 0x70], 0
xor edx, edx
lea rax, [rsp + 0x70]
lea r9, [0x10007de80]
lea rcx, [0x10007de90]
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 0x10004c9db
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
js 0x10004c9db
mov rcx, qword [rsp + 0x60]
call fcn.10004e2ac
mov edi, eax
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x10004ca2a
cmp qword [rbx + 0x50], 0
jne 0x10004ca2a
mov rax, qword [rsp + 0x60]
xor esi, esi
test rax, rax
je 0x10004ca05
and qword [rsp + 0x60], 0
mov rsi, rax
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x10004ca19
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 0x10004ca40
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x10004ca89
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x10004ca89
mov edi, 0x800106ba
mov rcx, qword [0x100083210]
cmp rcx, r14
je 0x10004ca89
test byte [rcx + 0x1c], 2
je 0x10004ca89
mov eax, dword [rbx + 0x58]
mov r9d, dword [rbx + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007dca8]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.100037384
test r12, r12
je 0x10004caa4
test edi, edi
js 0x10004caa4
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 0x10004cadc
mov rcx, qword [0x100083210]
cmp rcx, r14
je 0x10004cadc
test byte [rcx + 0x1c], 1
je 0x10004cadc
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007dca8]
mov edx, 0xc
mov r9d, edi
call fcn.10001c48c
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret