joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400431cc
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x14007cc80]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14004325b
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140043248
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
mov dword [0x1400f2130], eax
mov eax, dword [rsp + 0x38]
jmp 0x140043268
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140043216
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14004b040
add rsp, 0x178
ret
Function at 0x140048d44
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14003ff30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x140040500]
mov qword [rsp + 0x78], rax
lea rax, [0x140052208]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x140048dfd
lea rdx, str._n_n_Notepad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140033c4c
nop
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, str.Notepad
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400f2268], rax
mov edx, 5
mov rcx, qword [0x1400f2268]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x1400521f8]
mov rcx, qword [0x1400f2268]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x1400f2268]
call sym.Fortnite_External.exe_SetWindowLongV
mov rcx, qword [0x1400f2268]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
add rsp, 0xc0
pop rdi
ret
Function at 0x14004b868
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b8b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b8b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b8b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b8b2
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b8b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004b8b4
xor al, al
add rsp, 0x28
ret
Function at 0x69377400
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x69377b3f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x6937742d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x693776b1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x693776dd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x693d31e0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x6939bd60]
lea rbx, [0x693d2278]
call fcn.693357c0
inc rax
cmp rax, r8
jge 0x69377702
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x69377737
lea rdi, [0x6939bde0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x69377423
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x6937771b
jmp 0x693776f0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.69362ea0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.69377400

Function at 0x69377ce0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x69377cf7
inc rax
cmp rax, 4
jge 0x69377d0f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x69377cf4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x69377d20
inc rax
cmp rax, 4
jge 0x69377d2e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x69377d57
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x69377d3b
jmp 0x69377d1d

Function at 0x69380f10
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x694c4dd0], rax
je 0x69380f45
lea rcx, [0x694c4de0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 2
call qword [fcn.69382ab0]
mov r8d, 0x3d
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
Function at 0x69381710
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x694c53e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x69381898
mov rax, qword [0x694c53e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6938175c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x693817e5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x69381740
mov rcx, rbx
call fcn.693823b0
test rax, rax
mov r12, rax
je 0x693818cd
mov rax, qword [0x694c53e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.693824e0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x694c53e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x693818b0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x693817de
sub eax, 0x40
and eax, 0xffffffbf
jne 0x69381840
add dword [0x694c53e4], 1
cmp edi, 8
jae 0x69381813
test dil, 4
jne 0x69381884
test edi, edi
je 0x69381808
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6938189f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x69381808
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6938182c
jmp 0x69381808
add rsi, qword [0x694c53e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x693817de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.69382af0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x69381808
xor esi, esi
jmp 0x69381767
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x69381808
mov rax, qword [0x694c53e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.69382af0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.69382af0
nop
nop dword [rax]

Function at 0x69382020
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x694c56c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x694c56a0]
test rbx, rbx
je 0x69382074
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6938206b
test rsi, rsi
je 0x6938206b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x69382050
lea rcx, [0x694c56c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x693823b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x69436b70]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6938241d
mov rcx, r8
call fcn.69382290
test eax, eax
je 0x6938241d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6938241d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x69382414
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6938241f
add rax, 0x28
cmp rax, r9
jne 0x69382400
xor eax, eax
add rsp, 0x28
ret

Function at 0x69382af0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x693013a0]
jmp 0x69301380
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.69382ab0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.69382ab0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x69301390
Function at 0x140004ec0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x1400420e0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rax, qword [str.HPPresetRoot]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rax, qword [0x140037ec0]
xor edi, edi
mov qword [rsp + 0x50], rax
mov rax, qword [0x140037ec8]
xor r9d, r9d
mov qword [rsp + 0x58], rax
movzx eax, word [0x140037ed0]
mov dword [rsp + 0x40], edi
mov word [rsp + 0x60], ax
mov rax, qword [str.HPRestrictedUserGuid]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140037ee0]
mov qword [rsp + 0x70], rax
mov rax, qword [0x140037ee8]
mov qword [rsp + 0x78], rax
mov rax, qword [0x140037ef0]
mov qword [rbp - 0x80], rax
mov rax, qword [0x140037ef8]
mov qword [rbp - 0x78], rax
movzx eax, word [0x140037f00]
mov word [rbp - 0x70], ax
mov rax, qword [str.SoftwareHewlett_Packard_]
mov qword [rbp - 0x68], rax
mov rax, qword [0x140037f10]
mov qword [rbp - 0x60], rax
mov rax, qword [0x140037f18]
mov qword [rbp - 0x58], rax
mov rax, qword [0x140037f20]
mov qword [rbp - 0x50], rax
mov rax, qword [0x140037f28]
mov qword [rbp - 0x48], rax
mov rax, qword [0x140037f30]
mov qword [rbp - 0x40], rax
mov eax, dword [0x140037f38]
mov dword [rbp - 0x38], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1e0]
mov dword [rsp + 0x28], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINSPOOL.DRV_GetPrinterDataExW]
test eax, eax
jne 0x140005033
movzx eax, word [rbp + rdi - 0x68]
add rdi, 2
mov word [rbp + rdi - 0x32], ax
test ax, ax
jne 0x140004fe1
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x30]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rbp + 0x1e0]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x140005010
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14001b510
mov rdi, qword [rsp + 0x518]
add rsp, 0x500
pop rbp
ret

Function at 0x140005060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
movzx eax, cx
mov ecx, eax
cmp eax, 0xc04
je 0x14000507e
cmp eax, 0x1004
je 0x1400050ce
cmp eax, 0x1404
jne 0x140005083
mov eax, 0x404
mov rcx, qword [0x140045d00]
movzx r9d, ax
mov edx, 0xa
mov r8d, 0x1f4
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400050c7
mov rcx, qword [0x140045d00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400050c7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x1400050c9
xor eax, eax
add rsp, 0x28
ret
mov eax, 0x804
jmp 0x140005083
Function at 0x1400050e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x840
mov rax, qword [0x1400420e0]
xor rax, rsp
mov qword [rsp + 0x830], rax
movzx ebx, cx
mov rsi, r8
mov ebp, edx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x806
mov word [rsp + 0x20], di
call fcn.14001d640
mov rcx, qword [0x140045d00]
mov r11d, ebp
shr r11d, 4
lea edx, [rdi + 6]
movzx r9d, bx
inc r11d
and ebp, 0xf
movzx r12d, r11w
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x140005179
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x717
jne 0x1400051b1
mov rcx, qword [0x140045d00]
lea edx, [rdi + 6]
mov r9d, 0x400
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400051b1
mov rcx, qword [0x140045d00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x1400051b1
movzx eax, word [rdx]
add rdx, 2
test ax, ax
je 0x1400051aa
movzx ebx, ax
cmp edi, ebp
je 0x1400051d1
mov eax, ebx
lea rdx, [rdx + rbx*2]
inc edi
cmp edi, 0x10
jl 0x140005191
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.14001b510
add rsp, 0x840
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x403
lea rcx, [rsp + 0x20]
cmp ebx, eax
cmovg ebx, eax
movsxd r8, ebx
call fcn.14001bae4
lea rax, [rsp + 0x20]
lea r11, [rsp + 0x20]
sub rsi, rax
nop word [rax + rax]
movzx ecx, word [r11]
add r11, 2
mov word [rsi + r11 - 2], cx
test cx, cx
jne 0x140005200
mov eax, ebx
jmp 0x1400051b3

Function at 0x140005240
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor ebx, ebx
lea rcx, [rsp + 0x70]
xor edx, edx
lea r8d, [rbx + 0x68]
call fcn.14001d640
mov eax, 5
lea rdx, str.Control_printers
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400052d1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbx + 1]
add rsp, 0xe0
pop rbx
ret
mov eax, ebx
add rsp, 0xe0
pop rbx
ret
Function at 0x1400052e0
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x140005450
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
mov rdi, rdx
mov dword [rsp + 0x40], 0
test rcx, rcx
je 0x14000534e
lea rdx, str._empa
call fcn.14001bcc0
test rax, rax
jne 0x140005345
mov rcx, qword [rbx + 0x20]
lea rdx, str._mppqs
call fcn.14001bcc0
test rax, rax
jne 0x140005345
mov rcx, qword [rbx + 0x20]
lea rdx, str._policy
call fcn.14001bcc0
test rax, rax
je 0x14000534e
lea rcx, str.19728374
jmp 0x14000536f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140005378
lea rdx, str._dmpa
call fcn.14001bcc0
test rax, rax
je 0x140005378
lea rcx, str.843575861
call fcn.14001ba04
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400053aa
lea rax, [rsp + 0x40]
lea rdx, str.UPDMPA
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rsp + 0x58]
lea rdx, str.SoftwarePoliciesHewlett_PackardHP_Print_SettingsADSPrintPolicy
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005407
lea rcx, str.19728374
call fcn.14001ba04
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
jmp 0x140005417
lea rcx, str.843575861
call fcn.14001ba04
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140005446
lea rax, [rsp + 0x50]
lea rdx, str.UPDADS
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
repz ret
Function at 0x140006000
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov rbx, rcx
xor edi, edi
lea rdx, str._dst
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
call fcn.14001bcc0
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14000609f
test rcx, rcx
jne 0x140006065
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x14000612f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.ServicesTab
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000612f
mov dword [rsp + 0x60], edi
jmp 0x140006107
test rcx, rcx
jne 0x1400060cb
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x14000612f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.ServicesTab
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000612f
mov dword [rsp + 0x60], 1
test rbx, rbx
je 0x14000612f
lea r9, [rsp + 0x60]
lea rdx, str.MystServicesTab
mov r8d, 4
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000613f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000614f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]

Function at 0x140006160
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov rbx, rcx
xor edi, edi
lea rdx, str._dod
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
call fcn.14001bcc0
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400061ff
test rcx, rcx
jne 0x1400061c5
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x14000628f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.OnlineDiagnostics
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000628f
mov dword [rsp + 0x60], edi
jmp 0x140006267
test rcx, rcx
jne 0x14000622b
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x14000628f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.OnlineDiagnostics
mov r9d, 4
add byte [rbp + 0x33], al
rol bh, 0x44
and al, 0x28
add al, 0
add byte [rax], al
Function at 0x1400062c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov rbx, rcx
xor edi, edi
lea rdx, str._dos
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
call fcn.14001bcc0
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14000635f
test rcx, rcx
jne 0x140006325
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x1400063ef
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.OnlineSupport
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400063ef
mov dword [rsp + 0x60], edi
jmp 0x1400063c7
test rcx, rcx
jne 0x14000638b
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x1400063ef
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.OnlineSupport
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400063ef
mov dword [rsp + 0x60], 1
test rbx, rbx
je 0x1400063ef

Function at 0x140006420
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov rbx, rcx
xor edi, edi
lea rdx, str._dpm
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
call fcn.14001bcc0
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400064bf
test rcx, rcx
jne 0x140006485
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x14000654f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.ProductManuals
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000654f
mov dword [rsp + 0x60], edi
jmp 0x140006527
test rcx, rcx
jne 0x1400064eb
lea r8, [rsp + 0x38]
lea rdx, [0x1400370f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x14000654f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
lea rdx, str.ProductManuals
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000654f
mov dword [rsp + 0x60], 1
test rbx, rbx
je 0x14000654f