joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d180
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 0x14005d1b9
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14005d352
lea rcx, [rbp - 0x10]
call fcn.140009100
lea r9, [rbp + 0x48]
mov rdx, rdi
lea r8, [rbp + 0x40]
mov rcx, r14
call fcn.14005cf58
test eax, eax
jne 0x14005d1e6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x14005d2fe
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 0x14005d2f4
mov ecx, dword [rbp + 0x38]
cmp ecx, 0x48
jb 0x14005d2f4
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
jne 0x14005d254
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x14005d2f4
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 0x14005d2d9
mov rcx, qword [rsi]
mov r10d, 0x8007000d
mov r9d, dword [rbp + 0x38]
test rcx, rcx
je 0x14005d2b3
cmp r9, 0x4c
jb 0x14005d2b3
movzx r8d, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add r8, rax
cmp r9, r8
jb 0x14005d2b3
call fcn.140002810
mov r10d, eax
mov ecx, r10d
call fcn.140004768
mov edi, eax
test eax, eax
je 0x14005d2ee
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 0x14005d2ee
mov r8, qword [rsi]
xor edx, edx
mov rcx, qword [0x1400a6ef0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
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 0x14005d342
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
cmp edi, 5
je 0x14005d347
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14005d347
test byte [rcx + 0x1c], 0x20
je 0x14005d347
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bd70]
mov edx, 0xf
mov r9d, edi
call fcn.140024908
jmp 0x14005d347
mov ebx, 1
lea rcx, [rbp - 0x10]
call fcn.140008fac
mov eax, ebx
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14005d370
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rbx, r8
and qword [rsp + 0x58], 0
mov rdi, rdx
test rdx, rdx
jne 0x14005d3a7
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.14005cf58
test eax, eax
je 0x14005d39a
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x14005d3da
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov ebx, eax
cmp eax, 2
jne 0x14005d41d
xor ebx, ebx
jmp 0x14005d41d
movzx ecx, word [rbx + 0x46]
mov r9d, 3
movzx eax, word [rbx + 0x44]
xor r8d, r8d
add ecx, eax
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14005d41d
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
lea ecx, [rax + 2]
lea r8d, [rax + 0x1b]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x14005d47f
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rax, qword [0x1400a52b8]
lea rcx, [0x1400a52b8]
cmp rax, rcx
je 0x14005d39a
test byte [rax + 0x1c], 0x20
je 0x14005d39a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea r8, [0x14008bd70]
mov r9d, eax
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
call fcn.140024908
jmp 0x14005d39a
mov eax, 1
jmp 0x14005d39c
Function at 0x14005ec30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rcx, qword [0x1400a6a10]
mov ebx, 1
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
test byte [0x1400a6a18], bl
jne 0x14005ed2d
mov eax, dword [0x1400a6a20]
test eax, eax
je 0x14005ecaf
lea r9d, [rax - 1]
mov dword [0x1400a6a20], r9d
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14005ec9d
test byte [rcx + 0x1c], 0x80
je 0x14005ec9d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 9]
lea r8, [0x14009a928]
call fcn.140024908
mov rcx, qword [0x1400a6a28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14005ed2f
mov rax, qword [0x1400a6a10]
mov r9d, dword [0x1400a6a1c]
cmp r9d, dword [rax]
jae 0x14005ed2f
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14005ecf0
test byte [rcx + 0x1c], 0x80
je 0x14005ecf0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009a928]
mov edx, 0xb
call fcn.140024908
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x1400a6a10]
and dword [rsp + 0x20], 0
lea r8, [0x14005ee30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14005ed2d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
add dword [0x1400a6a1c], ebx
jmp 0x14005ed2f
xor ebx, ebx
mov rcx, qword [0x1400a6a10]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140060434
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [0x1400a7378]
xor r12d, r12d
mov r15, r8
mov rbp, rdx
cmp byte [rdi + 0x60], r12b
jne 0x14006046a
xor eax, eax
jmp 0x140060591
mov esi, 0x80070057
test rbp, rbp
je 0x14006058f
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r12w
jne 0x14006047c
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x14006058f
lea rcx, [rdi + 0x20]
call fcn.1400018d0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r13d, eax
mov r14d, r12d
mov eax, r12d
cmp dword [rdi + 8], eax
jbe 0x140060544
mov rdx, qword [rdi + 0x18]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], eax
mov eax, r12d
mov dword [rsp + 0x88], r14d
lea rsi, [rax + rax*2]
lea rcx, [rdx + rsi*8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x140060532
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14006051e
mov rdx, qword [rdi + 0x18]
mov eax, r13d
lea rcx, [rdx + rsi*8]
sub eax, dword [rcx + 8]
cmp eax, dword [rdi + 0xc]
ja 0x140060532
cmp eax, dword [rsp + 0x70]
mov r14d, r12d
cmovbe r14d, dword [rsp + 0x88]
inc r12d
cmp eax, dword [rsp + 0x20]
cmovbe eax, dword [rsp + 0x20]
cmp r12d, dword [rdi + 8]
jb 0x1400604b7
jmp 0x140060544
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ecx, eax
mov rax, qword [rdi + 0x18]
mov dword [rax + rsi*8 + 8], ecx
xor esi, esi
jmp 0x140060586
mov r8, r15
mov rdx, rbp
call fcn.1400622f0
mov esi, eax
cmp eax, 1
jne 0x140060586
mov eax, dword [rdi + 8]
mov r8, qword [rdi + 0x18]
cmp eax, dword [rdi + 4]
jae 0x14006056e
lea rcx, [rax + rax*2]
mov rdx, rbp
lea rcx, [r8 + rcx*8]
mov r8, r15
call fcn.1400622f0
mov esi, eax
test eax, eax
js 0x140060586
inc dword [rdi + 8]
jmp 0x140060586
mov eax, r14d
lea rdx, [rax + rax*2]
lea rcx, [r8 + rdx*8]
mov r8, r15
mov rdx, rbp
call fcn.1400622f0
mov esi, eax
lea rcx, [rdi + 0x20]
call fcn.1400018fc
mov eax, esi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400605ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov rbp, rdx
mov rdi, rcx
cmp byte [rcx + 0x60], r13b
jne 0x1400605d6
xor eax, eax
jmp 0x1400606e8
mov esi, 0x80070057
test rbp, rbp
je 0x1400606e6
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r13w
jne 0x1400605e8
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x1400606e6
lea rcx, [rdi + 0x20]
call fcn.1400018d0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r14d, r13d
mov r12d, eax
mov eax, r13d
mov r15d, r13d
cmp dword [rdi + 8], r13d
jbe 0x14006068f
mov rcx, qword [rdi + 0x18]
mov r13d, eax
mov dword [rsp + 0x60], r14d
mov eax, r15d
lea rsi, [rax + rax*2]
lea rcx, [rcx + rsi*8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x140060680
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400606b6
mov rcx, qword [rdi + 0x18]
mov eax, r12d
lea r8, [rcx + rsi*8]
sub eax, dword [r8 + 8]
cmp eax, dword [rdi + 0xc]
ja 0x14006067d
cmp eax, r13d
mov r14d, r15d
cmovbe r14d, dword [rsp + 0x60]
inc r15d
cmp eax, r13d
cmovbe eax, r13d
cmp r15d, dword [rdi + 8]
jb 0x140060623
jmp 0x14006068f
mov rcx, r8
mov rdx, rbp
call fcn.1400623b8
mov esi, eax
cmp eax, 1
jne 0x1400606dd
mov eax, dword [rdi + 8]
mov rdx, qword [rdi + 0x18]
cmp eax, dword [rdi + 4]
jae 0x1400606c8
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.1400623b8
mov esi, eax
test eax, eax
js 0x1400606dd
inc dword [rdi + 8]
jmp 0x1400606dd
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov rcx, qword [rdi + 0x18]
mov dword [rcx + rsi*8 + 8], eax
xor esi, esi
jmp 0x1400606dd
mov eax, r14d
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.1400623b8
mov esi, eax
lea rcx, [rdi + 0x20]
call fcn.1400018fc
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140062464
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rcx], 0x54535357
lea rdx, [rcx + 8]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jle 0x14006248e
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x1a0], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400624a4
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400a5768]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov rsi, rdx
mov qword [rdx], rbp
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
je 0x1400625d6
cmp word [rcx], bp
je 0x1400625d6
lea rcx, [rsp + 0x80]
call fcn.140062464
mov ebx, dword [rsp + 0x220]
test ebx, ebx
js 0x1400625c7
xor edx, edx
mov qword [rsp + 0x40], rbp
lea r8d, [rbp + 0x30]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], 4
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x1400625a4
mov rcx, rdi
call fcn.140062604
test eax, eax
js 0x140062595
mov ecx, 0x804
call fcn.14001035c
mov rbx, rax
test rax, rax
je 0x140062595
mov rcx, qword [rsp + 0x40]
mov r9d, 0x401
mov dword [rsp + 0x30], 2
mov r8, rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
test eax, eax
jne 0x14006258d
mov qword [rsi], rbx
jmp 0x140062595
mov rcx, rbx
call fcn.14001039c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov ebx, ebp
jmp 0x1400625c7
cmp eax, 0x2af9
jne 0x1400625b2
mov ebx, 1
jmp 0x1400625c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test eax, eax
jle 0x1400625c7
movzx ebx, ax
or ebx, 0x80070000
cmp dword [rsp + 0x220], ebp
jne 0x1400625d6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400106e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400629a8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140062a50
mov rcx, qword [rbp + 0x38]
lea r9, [rbp + 0x30]
and qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
and dword [rbp + 0x30], 0
call fcn.14000daf0
mov ebx, eax
test eax, eax
jne 0x140062a50
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x30]
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x140062a43
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
call fcn.1400629a8
movzx ebx, ax
mov rcx, qword [rbp - 0x10]
call fcn.14001039c
test ebx, ebx
je 0x1400629e1
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140062a5f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
cmp ebx, 0x103
cmovne eax, ebx
test eax, eax
jne 0x140062a82
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
test eax, eax
jle 0x140062a8c
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret

Function at 0x140062d18
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x18]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov ebx, r8d
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140062d5d
cmp dword [rsp + 0x50], ebx
lea eax, [rcx + 0x57]
cmovne ecx, eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140062d6d
mov eax, dword [rsp + 0x58]
mov dword [rdx], eax
test ecx, ecx
jle 0x140062d7a
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140062d88
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Order
mov rcx, qword [rcx + 0x18]
mov rbx, r9
mov dword [rsp + 0x48], eax
lea r9, [r11 + 0x18]
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], 7
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140062de6
cmp dword [rsp + 0x50], 7
lea ecx, [rax + 0x57]
cmovne eax, ecx
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
test eax, eax
jle 0x140062df0
movzx eax, ax
or eax, 0x80070000
add rsp, 0x30
pop rbx
ret
Function at 0x140062f4c
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
inc dword [rcx + 0x10]
mov rbx, rcx
and qword [r11 - 0x18], 0
mov eax, dword [rcx + 0x14]
mov edx, dword [rcx + 0x10]
mov r8, qword [rcx + 8]
and qword [r11 - 0x20], 0
mov rcx, qword [rcx]
and qword [r11 - 0x28], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jle 0x140062f95
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x14006317c
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x1400631a9
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
mov ecx, edx
xor r9, rax
shr ecx, 8
inc r8
movzx eax, r9b
mov edx, dword [r11 + rax*4 + 4]
xor edx, ecx
sub r10, 1
jne 0x140063187
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x1400632c4
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
je 0x1400632f7
xor ebx, ebx
jmp 0x140063389
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14006330c
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140063389
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140063389
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400a6e64]
cmovo rax, rcx
mov rcx, rax
call fcn.1400111a4
mov rdi, rax
test rax, rax
jne 0x14006334c
mov ebx, 0x8007000e
jmp 0x140063389
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
jne 0x14006337c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140063378
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140063389
mov rdx, rdi
mov rcx, rsi
call fcn.14000d470
mov ebx, eax
mov rcx, rdi
call fcn.14001039c
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140065dcc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1400a5b94], 0xffffffff
jne 0x140065e6b
xor ebx, ebx
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov dword [0x1400a5b94], ebx
lea rdx, [0x14009ae50]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140065e6b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.PrintIsolationDefault
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140065e60
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x1400a5b94], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [0x1400a5b94]
add rsp, 0x30
pop rbx
ret

Function at 0x14006645c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x1400664f1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400664e6
cmp dword [rsp + 0x58], 4
jne 0x1400664e6
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x58], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x140066535
test byte [rcx + 0x1c], 2
je 0x140066535
cmp dword [rdi + 0x58], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x14009aea0]
mov edx, 0xe
call fcn.14003317c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140066604
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x140066693
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006667e
cmp dword [rsp + 0x60], ebx
je 0x140066683
mov ebx, 1
mov dword [rdi + 0x54], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14006669a
mov dword [rdi + 0x54], 1
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x1400666de
test byte [rcx + 0x1c], 2
je 0x1400666de
cmp dword [rdi + 0x54], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x14009aea0]
mov edx, 0xd
call fcn.14003317c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14006978c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140069878
cmp dword [rsp + 0x30], 3
jne 0x140069878
cmp dword [rsp + 0x68], 0x48
jbe 0x140069878
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi], rax
test rax, rax
je 0x140069871
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140069862
mov rcx, qword [rdi]
movzx edx, word [rcx + 0x46]
movzx ecx, word [rcx + 0x44]
add edx, ecx
cmp dword [rsp + 0x68], edx
je 0x1400698a9
lea ebx, [rax + 0xd]
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x140069862
test byte [rcx + 0x1c], 4
je 0x140069862
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x14009b160]
call fcn.1400248e4
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
and qword [rdi], 0
jmp 0x1400698a9
mov ebx, 8
jmp 0x1400698a9
mov ebx, 0xd
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x1400698a9
test byte [rcx + 0x1c], 4
je 0x1400698a9
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x14009b160]
call fcn.1400248e4
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret