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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov r9d, 0x20019
mov word [rsp + 0x40], di
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005e7e4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x14009ce98]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e7e4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, qword [0x1400aad38]
jmp 0x14005e7da
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14005e7df
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005e7c4
mov rax, rbx
jmp 0x14005e7fe
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005e7fc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140024ca0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x14005ec98
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov r12, rdx
mov ebx, esi
mov r13, rcx
mov qword [rax + 0x10], rbx
mov r15d, esi
mov rdi, rdx
mov r14d, esi
test rdx, rdx
je 0x14005ed6a
cmp word [rdi], si
je 0x14005ed6a
mov rdx, rdi
mov rcx, r13
call fcn.14005e730
mov rbp, rax
test rax, rax
je 0x14005ee09
lea rsi, [rsp + 0x68]
test rbx, rbx
je 0x14005ed16
mov rax, rbx
cmp qword [rax + 8], rbp
je 0x14005ee09
mov rsi, rax
mov rax, qword [rax]
test rax, rax
jne 0x14005ed01
mov ecx, 0x10
call sym.spoolsv.exe_PrvDllAllocSplMem
test rax, rax
je 0x14005ee09
and qword [rax], r15
mov qword [rax + 8], rbp
mov qword [rsi], rax
or rax, 0xffffffffffffffff
xor esi, esi
inc rax
cmp word [rdi + rax*2], si
jne 0x14005ed39
lea r14d, [r14 + rax*2]
add r14d, 2
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x14005ed4e
mov rbx, qword [rsp + 0x68]
lea rdi, [rdi + rax*2]
add rdi, 2
jne 0x14005ecd4
mov rax, qword [0x1400aad38]
add r14d, 2
mov edx, esi
mov edi, 1
jmp 0x14005ed83
mov rax, qword [rax]
add edx, edi
test rax, rax
jne 0x14005ed7e
mov ecx, edi
mov rax, rbx
test rbx, rbx
je 0x14005ed9c
mov rax, qword [rax]
add ecx, edi
test rax, rax
jne 0x14005ed92
cmp ecx, edx
jne 0x14005edf4
mov dword [rsp + 0x28], r14d
lea rdx, str.Order
mov r9d, 7
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14005edcb
mov ecx, eax
jmp 0x14005edf9
mov rdx, qword [0x1400aad38]
mov rcx, rbx
test rbx, rbx
je 0x14005edec
mov rax, qword [rcx + 8]
mov qword [rdx], rax
mov rdx, rax
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14005edda
mov qword [rdx], rsi
mov r15d, edi
jmp 0x14005ee09
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
jmp 0x14005ee09
mov rbx, qword [rbx]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, rbx
test rbx, rbx
jne 0x14005ee01
mov rbx, qword [rsp + 0x60]
mov eax, r15d
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140060d84
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
mov rsi, rdx
mov ecx, 0x208
mov ebx, 1
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
xor eax, eax
test rdi, rdi
je 0x140060eac
lea rax, [rsp + 0x78]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
je 0x140060dec
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
xor ebx, ebx
jmp 0x140060ea2
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov r8, rdi
mov qword [rsp + 0x28], rcx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x140060e70
xor esi, esi
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.140060d84
mov ebx, eax
test eax, eax
je 0x140060e6b
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], rsi
mov r8, rdi
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x140060e23
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ecx, ecx
test ebx, ebx
je 0x140060ea2
test eax, eax
je 0x140060e89
mov ebx, ecx
jmp 0x140060ea2
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov rcx, rdi
call sym.spoolsv.exe_PrvDllFreeSplMem
jmp 0x140060eb9
mov ecx, 8
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
test ebx, ebx
jne 0x140060ef9
mov rax, qword [0x1400a92b0]
lea rcx, [0x1400a92b0]
cmp rax, rcx
je 0x140060ef9
test byte [rax + 0x1c], 0x20
je 0x140060ef9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x1400a92b0]
lea edx, [rbx + 0xd]
mov r9d, eax
lea r8, [0x140075fb0]
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140060f10
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov rdi, r9
mov ebx, 0x57
test rcx, rcx
je 0x140060fa3
test r9, r9
je 0x140060fa3
and dword [r9], 0
lea rax, [r11 + 0x10]
and qword [r11 + 0x10], 0
lea rdx, str.LanMan_Print_ServicesServers
mov r9d, 0x20019
mov qword [r11 - 0x18], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140060fa3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.AddPrinterDrivers
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x50], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x140060fd4
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x140060fd4
test byte [rcx + 0x1c], 0x20
je 0x140060fd4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140075fb0]
mov edx, 0x2b
mov r9d, ebx
call fcn.14003d1e0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140060fe8
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x20], edi
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140061071
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14006106d
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400610b0
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_CheckTokenMembership]
test eax, eax
jne 0x14006109e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14006109a
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400610a6
cmp dword [rbp - 0x20], edi
mov ebx, edi
sete bl
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140061298
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rbx
sub rsp, 0x50
mov ebx, 0x57
test rcx, rcx
je 0x140061328
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 + 0x18], 0
lea rdx, str.LanMan_Print_ServicesServers
mov qword [r11 - 0x20], rax
xor r9d, r9d
and qword [r11 - 0x28], 0
xor r8d, r8d
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140061328
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 4]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AddPrinterDrivers
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x140061359
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x140061359
test byte [rcx + 0x1c], 0x20
je 0x140061359
mov rcx, qword [rcx + 0x10]
lea r8, [0x140075fb0]
mov edx, 0x2c
mov r9d, ebx
call fcn.14003d1e0
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x140061480
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400aa9b4]
xor ebx, ebx
cmp ecx, 0xffffffff
jne 0x140061497
mov eax, ebx
jmp 0x14006149d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsGetValue]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
test eax, eax
jne 0x1400614b9
cmp dword [rsp + 0x30], 4
je 0x1400614b9
lea ebx, [rax + 1]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140063e04
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov r8, rdx
mov rbx, rcx
mov edx, 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetKeySecurity]
xor esi, esi
mov edi, eax
test eax, eax
jne 0x140063f72
mov qword [rsp + 0x58], rsi
lea rax, [rbp + 0x77]
mov qword [rsp + 0x50], rsi
xor r9d, r9d
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
xor edx, edx
mov qword [rsp + 0x38], rsi
mov rcx, rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x7f], esi
mov dword [rbp + 0x77], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
jne 0x140063f72
mov eax, dword [rbp + 0x77]
inc eax
mov qword [rbp + 0x27], rsi
mov ecx, eax
mov dword [rbp + 0x77], eax
lea eax, [rsi + 2]
mul rcx
lea rcx, [rsi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140024914
lea rcx, [rbp + 0x27]
mov rbx, rax
call fcn.140022bd4
mov qword [rbp + 0x27], rbx
test rbx, rbx
je 0x140063f64
cmp esi, dword [rbp + 0x7f]
jae 0x140063f69
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x17]
and qword [rsp + 0x30], 0
mov r8, rbx
mov eax, dword [rbp + 0x77]
mov edx, esi
and qword [rsp + 0x28], 0
mov rcx, qword [rbp + 0x67]
and qword [rsp + 0x20], 0
mov dword [rbp + 0x17], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov edi, eax
test eax, eax
jne 0x140063f4d
mov rcx, qword [rbp + 0x67]
lea rax, [rbp + 0x1f]
and qword [rbp + 0x1f], 0
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140063f42
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x1f]
call fcn.140063e04
mov edi, eax
lea rcx, [rbp + 0x1f]
call fcn.140020930
jmp 0x140063f54
cmp eax, 0x103
je 0x140063f60
inc esi
test edi, edi
je 0x140063ec9
jmp 0x140063f69
xor edi, edi
jmp 0x140063f69
mov edi, 8
lea rcx, [rbp + 0x27]
call fcn.140022bd4
mov eax, edi
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140064408
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor eax, eax
mov dword [rsp + 0x44], 0x104
xor ebx, ebx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0x170]
lea rax, [rsp + 0x60]
mov r12, rdx
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r15, rcx
mov qword [rsp + 0x20], rbx
mov r14d, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
lea esi, [rbx + 1]
jmp 0x1400645a0
cmp word [rsp + 0x60], bx
je 0x140064557
mov edx, 0x2c
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
test rax, rax
je 0x140064557
mov word [rax], bx
add rdi, 2
cmp word [rdi], 0x20
je 0x1400644c5
mov r8d, 2
lea rdx, [0x14009d188]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140064557
add rdi, 4
mov ecx, ebx
mov word [rdi + 4], bx
jmp 0x14006450e
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x140064516
lea ecx, [rcx + rcx*4]
movzx eax, dx
lea ecx, [rcx - 0x18]
add rdi, 2
lea ecx, [rax + rcx*2]
movzx edx, word [rdi]
test dx, dx
jne 0x1400644f5
lea rax, [rbp + 0x170]
mov r9, r12
sub r9, rax
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x140064539
add rax, 2
test r8d, r8d
jne 0x140064523
test edx, edx
je 0x1400645c5
cmp ecx, 0x64
jae 0x140064557
mov edx, ecx
mov eax, esi
and ecx, 0x1f
shr rdx, 5
shl eax, cl
or dword [rsp + rdx*4 + 0x48], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x170]
add r14d, esi
mov qword [rsp + 0x28], rbx
mov edx, r14d
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
je 0x14006449b
mov eax, ebx
mov ecx, ebx
shr rax, 5
and ecx, 0x1f
mov eax, dword [rsp + rax*4 + 0x48]
bt eax, ecx
jae 0x1400645c9
add ebx, esi
cmp ebx, 0x64
jb 0x1400645a8
jmp 0x1400645cb
mov eax, ecx
jmp 0x1400645cd
mov esi, ebx
mov eax, esi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140064924
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
mov dword [rbp + 0x48], 3
and qword [rbp - 0x20], rsi
mov r12, r8
and dword [rbp + 0x30], esi
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x140064aab
test rdx, rdx
je 0x140064aab
test r8, r8
je 0x140064aab
lea rcx, [rbp - 0x18]
call fcn.14000fd18
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov r15, rax
test rax, rax
jne 0x140064999
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
jmp 0x140064a8c
mov rdx, qword [r14 + 0x48]
test rdx, rdx
je 0x140064a7e
cmp word [rdx], 0x5c
jne 0x140064a7e
cmp word [rdx + 2], 0x5c
jne 0x140064a7e
lea r8, [rbp - 0x20]
mov rcx, rax
call fcn.140005314
mov ebx, eax
test eax, eax
jne 0x140064a83
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
and qword [rsp + 0x20], rsi
lea rdx, str.DefaultDevMode
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140064a72
cmp dword [rbp + 0x48], 3
jne 0x140064a6d
mov ecx, dword [rbp + 0x30]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi], rax
test rax, rax
jne 0x140064a1d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
jmp 0x140064a72
lea rcx, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x48]
mov rcx, qword [rbp - 0x20]
lea rdx, str.DefaultDevMode
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [rbp + 0x30]
add eax, 3
and eax, 0xfffffffc
mov dword [r12], eax
test ebx, ebx
jne 0x140064a5b
lea esi, [rbx + 1]
jmp 0x140064a72
mov rcx, qword [rdi]
test rcx, rcx
je 0x140064a72
call sym.spoolsv.exe_PrvDllFreeSplMem
and qword [rdi], rsi
jmp 0x140064a72
mov ebx, 0xd
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140064a83
mov ebx, 0x709
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x140064aa0
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.140064ad8
mov esi, eax
lea rcx, [rbp - 0x18]
call fcn.14000fcdc
jmp 0x140064ab6
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140064d50
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov rsi, r8
mov qword [rbp + 0x40], rbx
mov rdi, rdx
mov qword [rbp + 0x48], rbx
mov r14, rcx
mov qword [r8], rbx
test rdx, rdx
jne 0x140064d89
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
xor eax, eax
jmp 0x140064f18
lea rcx, [rbp - 0x10]
call fcn.14000fd18
lea r9, [rbp + 0x48]
mov rdx, rdi
lea r8, [rbp + 0x40]
mov rcx, r14
call fcn.140021308
test eax, eax
jne 0x140064db6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
jmp 0x140064ec4
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
jne 0x140064eba
mov ecx, dword [rbp + 0x38]
cmp ecx, 0x48
jb 0x140064eba
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
jne 0x140064e24
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
jmp 0x140064eba
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
mov r14d, 2
test eax, eax
jne 0x140064ea9
mov rcx, qword [rsi]
mov r9d, 0x8007000d
mov r8d, dword [rbp + 0x38]
test rcx, rcx
je 0x140064e83
cmp r8, 0x4c
jb 0x140064e83
movzx eax, word [rcx + 0x44]
movzx edx, word [rcx + 0x46]
add eax, edx
cdqe
cmp r8, rax
jb 0x140064e83
call fcn.14000a520
mov r9d, eax
mov ecx, r9d
call fcn.140005408
mov edi, eax
test eax, eax
je 0x140064eb4
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
cmove edi, r14d
test edi, edi
je 0x140064eb4
mov rcx, qword [rsi]
call sym.spoolsv.exe_PrvDllFreeSplMem
mov qword [rsi], rbx
cmp edi, r14d
cmove edi, ebx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x140064f08
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
cmp edi, 5
je 0x140064f0d
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x140064f0d
test byte [rcx + 0x1c], 0x20
je 0x140064f0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140075fe0]
mov edx, 0xb
mov r9d, edi
call fcn.14003d1e0
jmp 0x140064f0d
mov ebx, 1
lea rcx, [rbp - 0x10]
call fcn.14000fcdc
mov eax, ebx
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400660e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rcx, qword [0x1400aad10]
mov ebx, 1
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
test byte [0x1400aad18], bl
jne 0x1400661de
mov r9d, dword [0x1400aad20]
test r9d, r9d
je 0x140066160
dec r9d
mov dword [0x1400aad20], r9d
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14006614e
test byte [rcx + 0x1c], 0x80
je 0x14006614e
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 9]
lea r8, [0x14009d228]
call fcn.14003d1e0
mov rcx, qword [0x1400aad28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
jmp 0x1400661e0
mov rax, qword [0x1400aad10]
mov r9d, dword [0x1400aad1c]
cmp r9d, dword [rax]
jae 0x1400661e0
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x1400661a1
test byte [rcx + 0x1c], 0x80
je 0x1400661a1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009d228]
mov edx, 0xb
call fcn.14003d1e0
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x1400aad10]
and dword [rsp + 0x20], 0
lea r8, [0x1400662a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
test rax, rax
je 0x1400661de
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
add dword [0x1400aad1c], ebx
jmp 0x1400661e0
xor ebx, ebx
mov rcx, qword [0x1400aad10]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140067744
Capabilities:
Query or enumerate registry value

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

Function at 0x1400678ac
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x30], 0
lea rdx, [0x14009d278]
and dword [rsp + 0x58], 0
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
lea eax, [rbx + 3]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140067929
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, [0x14009d260]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140067929
cmp dword [rsp + 0x58], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140067939
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rbx
ret