joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017354
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x1400aaea0]
xor r15d, r15d
mov r12, r8
mov rbp, rdx
cmp byte [rdi + 0x60], r15b
je 0x140035340
mov esi, 0x80070057
test rdx, rdx
je 0x140017410
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r15w
jne 0x14001739c
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x140017410
lea rcx, [rdi + 0x20]
call fcn.140001754
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov r13d, r15d
mov dword [rsp + 0x50], eax
mov r14d, r15d
mov esi, r15d
cmp dword [rdi + 8], r15d
jbe 0x140017468
mov eax, esi
lea r15, [rax + rax*2]
mov rax, qword [rdi + 0x18]
mov rdx, qword [rax + r15*8]
test rdx, rdx
jne 0x14001742f
mov eax, esi
mov r8, r12
mov rdx, rbp
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + rcx*8]
call fcn.140017d30
mov esi, eax
cmp eax, 1
je 0x140017468
lea rcx, [rdi + 0x20]
call fcn.140001780
mov eax, esi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140035347
mov rax, qword [rdi + 0x18]
mov ecx, dword [rsp + 0x50]
sub ecx, dword [rax + r15*8 + 8]
cmp ecx, dword [rdi + 0xc]
ja 0x1400173e7
cmp ecx, r14d
jbe 0x14001745d
mov r14d, ecx
mov r13d, esi
inc esi
cmp esi, dword [rdi + 8]
jb 0x1400173d4
mov eax, dword [rdi + 8]
mov r8, r12
mov rdx, rbp
cmp eax, dword [rdi + 4]
jae 0x140035362
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + rcx*8]
call fcn.140017d30
mov esi, eax
test eax, eax
js 0x140017407
inc dword [rdi + 8]
jmp 0x140017407
xor eax, eax
jmp 0x140017412
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov ecx, esi
xor esi, esi
lea rdx, [rcx + rcx*2]
mov rcx, qword [rdi + 0x18]
mov dword [rcx + rdx*8 + 8], eax
jmp 0x140017407
mov eax, r13d
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + rcx*8]
call fcn.140017d30
mov esi, eax
jmp 0x140017407
Function at 0x1400185b4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r14, qword [rsp + 0x4b0]
xor r13d, r13d
mov r15, r9
mov r12d, r8d
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x140035d62
lea r9, str.winspool
mov edx, 0x208
lea r8, [0x140073de8]
lea rcx, [rsp + 0x30]
call fcn.140018838
or rsi, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140018626
mov eax, ecx
lea rbx, [rsp + 0x30]
mov edx, 0x208
sub edx, ecx
lea rbx, [rbx + rax*2]
mov rcx, rbx
test r15, r15
jne 0x140018807
mov eax, dword [r14]
lea r9, [0x140073e18]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.140018838
mov r15d, 1
add dword [r14], r15d
mov eax, dword [r14]
cmp eax, 0x63
cmova eax, r13d
mov dword [r14], eax
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, rbx
mov r14, rax
call fcn.1400189bc
test r14, r14
je 0x14001869b
mov rcx, r14
call sym.spoolsv.exe_PrvImpersonatePrinterClient
lea rcx, [rsp + 0x30]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400186a3
mov rcx, qword [rdi + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, r15d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp dword [rdi + 0x24], r13d
je 0x140018701
lea rbx, [rdi + 0x446]
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov ecx, r13d
test eax, eax
sete cl
mov dword [rdi + 0x28], ecx
test ecx, ecx
jne 0x1400187c1
cmp dword [rdi + 0x2c], r13d
jne 0x1400187eb
lea rax, [rsp + 0x30]
mov r9, rbp
lea rcx, [rdi + 0x34]
mov qword [rsp + 0x20], rax
lea r8, str._s__s
mov edx, 0x208
call fcn.140018838
mov dword [rdi + 0x2c], r15d
cmp word [rdi + 0x444], r13w
jne 0x140018744
test r12d, r12d
jne 0x140035d72
lea r8, str._15_45
mov edx, 0x208
lea rcx, [rsp + 0x30]
call fcn.1400188b4
lea rax, [rsp + 0x30]
inc rsi
cmp word [rax + rsi*2], r13w
jne 0x14001875f
lea r8d, [rsi*2 + 2]
mov r9d, r15d
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, r15d
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140024ca0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rsp + 0x30]
mov r9, rbp
lea r8, str._s__s
mov qword [rsp + 0x20], rax
mov edx, 0x208
mov rcx, rbx
call fcn.140018838
mov dword [rdi + 0x24], r13d
jmp 0x140018701
cmp word [rdi + 0x444], r13w
jne 0x140018744
test r12d, r12d
je 0x140018744
jmp 0x14001870b
mov r8, r15
call fcn.14000ff60
mov edx, 0x2c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcschr]
mov r15d, 1
test rax, rax
je 0x14001869b
jmp 0x140035d69
xor eax, eax
jmp 0x140018796
mov word [rax], r13w
jmp 0x14001869b
mov word [rdi + 0x444], r15w
jmp 0x140018744
Function at 0x1400189bc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x18]
mov rsi, rcx
mov qword [r11 + 0x18], rbx
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140018a2c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 2
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov word [rsp + 0x48], bx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140018a3c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140019800
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400aae50]
xor r14d, r14d
mov qword [rax + 8], r14
xor esi, esi
mov rax, r8
mov r13, r9
neg rax
mov r12, r8
mov rbx, qword [r15 + 0x60]
mov ebp, edx
sbb edi, edi
mov rcx, rbx
not edi
call fcn.140001754
and edi, 0x80070057
js 0x140019894
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x1400360c2
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x140019876
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x140019894
cmp rax, rcx
je 0x140019894
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x140019894
test edx, edx
jne 0x1400199e5
mov rsi, rax
xor edi, edi
test edi, edi
jne 0x1400199d9
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14001b504
mov r14, qword [rsp + 0x70]
mov edi, eax
test edi, edi
js 0x140019968
mov rbp, qword [r14 + 0x30]
mov rcx, r13
mov rdx, rbp
call fcn.1400169a0
mov edi, eax
test eax, eax
js 0x140019932
and qword [rsp + 0x70], 0
lea r8, [0x1400740d8]
mov rax, qword [rsi + 0x38]
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.140017f68
mov edi, eax
test eax, eax
jg 0x1400360cc
test edi, edi
js 0x140019932
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov rcx, qword [rsp + 0x70]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [r14 + 0x24], 0
jne 0x140019968
dec dword [r15 + 0x30]
mov rax, qword [r14]
mov dword [r12], 1
mov rbp, qword [rax]
lea rax, [fcn.1400171f0]
cmp rbp, rax
jne 0x1400360da
mov edx, 1
mov rcx, r14
call fcn.1400171f0
test rsi, rsi
je 0x140019990
mov rax, qword [rsi]
mov rbp, qword [rax]
lea rax, [fcn.14001b540]
cmp rbp, rax
jne 0x1400360f3
mov edx, 1
mov rcx, rsi
call fcn.14001b540
test edi, edi
jns 0x1400199b1
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x1400199b1
test byte [rcx + 0x1c], 0x20
jne 0x14003610c
mov rcx, rbx
call fcn.140001780
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
js 0x140019968
mov edi, 0x80004005
jmp 0x1400198b0
mov rax, qword [rax + 0x10]
jmp 0x140019876
mov edi, 0x80070057
jmp 0x140019894
movzx edi, ax
or edi, 0x80070000
jmp 0x14001990c
mov rcx, rbp
call qword [0x1400719c8]
mov edx, 1
mov rcx, r14
call rbp
nop
jmp 0x140019968
mov rcx, rbp
call qword [0x1400719c8]
mov edx, 1
mov rcx, rsi
call rbp
nop
jmp 0x140019990
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009d1d0]
mov edx, 0xd
mov r9d, edi
call fcn.14003d1e0
nop
jmp 0x1400199b1
Function at 0x140019a28
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
and qword [r11 - 0x18], 0
mov rbx, rcx
mov eax, dword [rcx + 0x14]
xor edx, edx
and dword [rcx + 0x10], 0
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 0x140019a71
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x14001b744
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapCreate]
xor esi, esi
mov qword [0x1400aae20], rax
test rax, rax
je 0x14001b8d2
lea r9d, [rsi + 4]
mov dword [rsp + 0x60], 2
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapSetInformation]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_DisableThreadLibraryCalls]
lea rax, [0x1400aae78]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 2]
mov dword [rsp + 0x48], esi
lea ebp, [rsi + 1]
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x38], esi
mov r9d, ebp
mov dword [rsp + 0x30], esi
mov dl, r8b
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov word [rsp + 0x64], 0xf00
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14001b8d2
mov edx, 0x80000000
lea rcx, [0x1400aaa00]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSectionAndSpinCount]
mov ebx, eax
test eax, eax
je 0x14001b8d4
mov edx, 0x80000000
mov dword [0x1400aae18], ebp
lea rcx, [0x1400aace8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSectionAndSpinCount]
mov ebx, eax
test eax, eax
je 0x14001b8d4
lea rdx, [0x1400aa9f8]
mov dword [0x1400aae14], ebp
mov ecx, ebp
call fcn.140017e9c
test eax, eax
js 0x14001b8d2
call fcn.14001b418
test eax, eax
js 0x14001b8d2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateEventW]
mov qword [0x1400aaa50], rax
test rax, rax
je 0x14001b8d2
lea rcx, [0x1400aaa28]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSection]
mov dword [0x1400aae10], ebp
call fcn.14001b9a0
mov ebx, eax
test eax, eax
je 0x14001b8d4
mov dword [0x1400aae0c], ebp
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400a9388], eax
cmove ebx, esi
test ebx, ebx
je 0x14001b8d4
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
mov ebx, esi
call fcn.14005565c
jmp 0x14001b8b1
Function at 0x14001b9a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rdi, [0x1400a9500]
mov dword [rbp + 0x18], 4
mov rcx, rdi
call fcn.14001bab4
test eax, eax
je 0x14001baa8
lea rax, [rbp + 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140074330]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001ba98
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.ThreadNotifyMax
mov dword [rbp + 0x10], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [0x1400a9504]
mov dword [rbp + 0x10], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ThreadNotifyIdleLife
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [0x1400a9968]
mov dword [rbp + 0x10], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ThreadNotifySleep
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
xor eax, eax
jmp 0x14001ba9d

Function at 0x14001bb00
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov r8d, 8
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], r8d
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14001bb69
test byte [rsp + 0x5c], 2
je 0x14001bb69
and qword [rsp + 0x30], 0
lea r8, str.TestMode
and qword [rsp + 0x28], 0
lea rdx, str.SystemCurrentControlSetControlPrint
and qword [rsp + 0x20], 0
mov r9d, 0x20
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x1400372ce
add rsp, 0x48
ret
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x1400372fc
test byte [rcx + 0x44], 2
je 0x1400372fc
mov rcx, qword [rcx + 0x38]
lea r8, [0x140093e20]
mov edx, 0xa
call fcn.14003d1bc
mov dword [0x1400ab348], 1
jmp 0x14001bb69
Function at 0x14001bb74
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x11c
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetVersionExW]
test eax, eax
je 0x14001bbb6
cmp byte [rsp + 0x15a], 3
je 0x14003730c
mov al, bl
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140024ca0
add rsp, 0x170
pop rbx
ret
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftPrintComponents
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400373a5
mov rcx, qword [rsp + 0x30]
lea rdx, str.Server_Role
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140037366
mov bl, 1
jmp 0x140037394
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x140037394
test byte [rcx + 0x44], 0x20
je 0x140037394
mov rcx, qword [rcx + 0x38]
lea r8, [0x140093e20]
mov edx, 0xb
call fcn.14003d1bc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x14001bbb6
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14001bbb6
test byte [rcx + 0x44], 0x20
je 0x14001bbb6
mov rcx, qword [rcx + 0x38]
lea r8, [0x140093e20]
mov edx, 0xc
call fcn.14003d1bc
nop
jmp 0x14001bbb6
Function at 0x14001c34c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [r11 - 0x28], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test rcx, rcx
je 0x14001c3d0
test rdx, rdx
je 0x14001c3d0
test r8, r8
je 0x14001c3d0
lea rax, [r11 - 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x38], rax
lea rdx, [0x140074470]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jle 0x14001c3b3
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1400377c4
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov ebx, 0x80004003
jmp 0x14001c3bb
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jle 0x1400377f3
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140037802
test rdi, rdi
je 0x140037802
mov eax, dword [rsp + 0x60]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x14001c3bb
Function at 0x14001c688
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x18], rax
lea r8, str.DisableRpcTcp
lea rax, [r11 + 0x10]
mov r9d, 0x18
mov qword [r11 - 0x20], rax
lea rdx, [0x1400745a0]
and qword [r11 - 0x28], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x140037b4c
mov al, 1
add rsp, 0x48
ret
cmp dword [rsp + 0x58], 0
je 0x14001c6d5
xor al, al
jmp 0x14001c6d7
Function at 0x14001eda8
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlPrint
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001ee33
and dword [rsp + 0x40], eax
lea rdx, str.MaxRpcCalls
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [0x1400a9a68]
test eax, eax
cmove ecx, dword [rsp + 0x40]
mov dword [0x1400a9a68], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x14001fbb4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400749b0]
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001fc36
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.MaxRpcSize
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140020234
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x28], 0
lea rax, [rbp + 0x28]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlPrint
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400202cb
and dword [rbp + 0x10], eax
lea r9, [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.ExceptionHandlerEnabled
lea rax, [rbp + 0x10]
mov dword [rbp + 0x20], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x18], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [0x1400ab34c]
test eax, eax
cmove ecx, dword [rbp + 0x10]
mov dword [0x1400ab34c], ecx
test ecx, ecx
jne 0x14003b05e
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [0x1400ab34c], 0
jne 0x14003b0e9
add rsp, 0x30
pop rbp
ret
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TerminateOnFatalException
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [0x1400a9ae4]
lea r9, [rbp + 0x20]
test eax, eax
mov dword [rbp + 0x18], 4
lea rax, [rbp + 0x18]
cmove ecx, dword [rbp + 0x10]
lea rdx, str.BreakOnFatalException
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [0x1400a9ae4], ecx
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [0x1400ab434]
test eax, eax
cmove ecx, dword [rbp + 0x10]
mov dword [0x1400ab434], ecx
jmp 0x1400202c1
lea rdx, [0x140053ab0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
nop
jmp 0x1400202d8
Function at 0x140020678
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
lea rdx, str.OpenPrinterW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ClosePrinter
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DocumentPropertiesW
mov rcx, rbx
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rbx
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rbx
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd4
mov rcx, rbx
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd5
mov rcx, rbx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd6
mov rcx, rbx
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd7
mov rcx, rbx
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xfb
mov rcx, rbx
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov qword [rdi + 0x48], rax
cmp qword [rdi], rcx
je 0x140020785
cmp qword [rdi + 8], rcx
je 0x140020785
cmp qword [rdi + 0x20], rcx
je 0x140020785
cmp qword [rdi + 0x18], rcx
je 0x140020785
cmp qword [rdi + 0x10], rcx
je 0x140020785
cmp qword [rdi + 0x28], rcx
je 0x140020785
cmp qword [rdi + 0x30], rcx
je 0x140020785
cmp qword [rdi + 0x38], rcx
je 0x140020785
test rax, rax
je 0x140020785
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
jmp 0x14002077a