joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e30c
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rax, [r11 - 0x228]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x18003e3a1
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.18003ce6c
nop
mov r8, rax
lea rdx, str.SHGetFolderPathW_failed_with
lea rcx, [rsp + 0x78]
call fcn.18004c664
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180010a2c
lea rdx, [0x1801aa6c0]
lea rcx, [rsp + 0x40]
call fcn.1800d1390
nop
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0xa0], bx
je 0x18003e3ca
lea rcx, [rsp + 0xa0]
call fcn.1800d9868
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.18001eca0
mov rax, rdi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800a6240
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2c0
pop rdi
ret
Function at 0x180043cb0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x98
mov rdx, 0x3d092c
lea r8, [rsp + 0x20]
xor rcx, rcx
xor rdx, rdx
mov byte [r8 + rcx], cl
inc rcx
cmp rcx, 0x72
jbe 0x180043c19
xor rcx, rcx
inc rdx
cmp rdx, 0x3d092b
jbe 0x180043c19
call 0x180043c3a
pop rax
sub rax, 0x43c3a
movq xmm13, rax
add rax, 0x131230
mov rcx, 0xffffffffffffffff
xor rdx, rdx
mov r8, 0x1cd9726
mov r9, 0x3000
mov qword [rsp + 0x20], 0x40
mov qword [rsp + 0x28], 0
call qword [rax]
cld
movq rsi, xmm13
add rsi, 0x20df24
mov rcx, 0x3d3a6
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rdi, rax
mov r8, socket
xor rax, rax
xor rcx, rcx
movq r9, xmm13
add r9, 0x18222c
xor rdx, rdx
div r8
mov r10b, byte [r9 + rdx]
xor byte [rdi + rcx], r10b
inc rcx
mov rax, rcx
cmp rcx, 0x3d3a5
jbe 0x180043cad
call rdi
add rsp, 0x98
xor rax, rax
ret
Function at 0x180056cd8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, qword [0x1801fc460]
mov edi, 1
mov rax, qword [0x1801fc468]
jmp 0x180056d97
test edi, edi
js 0x180056eb5
mov rbx, qword [rsi]
test rbx, rbx
je 0x180056d93
and qword [rsp + 0x50], 0
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x180056d93
mov rcx, rdi
call qword [fcn.18000e000]
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [0x18015b340]
call rdi
mov edi, eax
test eax, eax
js 0x180056d6d
mov rax, qword [rbx + 0x20]
mov r9d, 5
mov rdx, qword [rsp + 0x50]
add rax, 8
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov edi, eax
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x180056d8c
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.18000e000]
mov rcx, r14
call rbx
mov rax, qword [0x1801fc468]
add rsi, 8
cmp rsi, rax
jb 0x180056d06
test edi, edi
js 0x180056eb5
jne 0x180056eae
cmp byte [0x1801fae10], 0
je 0x180056e5b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1801fae00], rax
test rax, rax
je 0x180056e54
lea rax, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x1801fadb0]
and dword [rsp + 0x20], 0
lea r8, [0x180057e60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x180056e1a
mov rcx, qword [0x1801fae00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1801fae00], rbx
test rbx, rbx
je 0x180056e54
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test eax, eax
jns 0x180056e49
mov rcx, qword [0x1801fae00]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x1801fae08]
mov rcx, rbx
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180056e63
mov edi, 0x80004005
jmp 0x180056e67
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x180056eb5
mov rbx, qword [0x1801fc460]
xor eax, eax
mov rcx, qword [0x1801fc468]
jmp 0x180056ea7
test eax, eax
jne 0x180056eb5
mov rdx, qword [rbx]
test rdx, rdx
je 0x180056ea3
mov rax, qword [rdx + 0x20]
mov edx, dword [rax + 8]
test edx, edx
jne 0x180056e94
xor eax, eax
jmp 0x180056ea3
mov ecx, edx
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x1801fc468]
add rbx, 8
cmp rbx, rcx
jb 0x180056e79
jmp 0x180056eb5
mov byte [0x1801fae10], 0
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18005a978
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, r8
mov r12, rdx
mov qword [rbp - 0x21], rdx
mov r13, rcx
mov ecx, 0x800
call fcn.1800a6d90
mov rbx, rax
mov qword [rbp - 0x29], rax
mov eax, 0x400
mov dword [rbp - 0x35], eax
xor esi, esi
mov r14d, esi
mov dil, byte [rbp - 0x39]
mov dword [rbp - 0x31], eax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x31]
mov r8, rbx
mov edx, r14d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x18005aa78
mov eax, dword [rbp - 0x31]
mov dword [rbp - 0x35], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800a6d90
mov r12, rax
cmp rax, rbx
je 0x18005aa45
mov edx, 2
mov rcx, rbx
call fcn.18006b9e0
mov rbx, r12
mov qword [rbp - 0x29], rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x35]
mov r8, r12
mov edx, r14d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12, qword [rbp - 0x21]
test eax, eax
jne 0x18005ab00
cmp qword [r15 + 0x18], 8
jb 0x18005aa8c
mov rdx, qword [r15]
jmp 0x18005aa8f
mov rdx, r15
mov rcx, rbx
call fcn.1800cefb8
test rax, rax
je 0x18005aaf5
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rsi
mov word [rbp - 1], si
cmp word [rbx], si
jne 0x18005aab6
mov rax, rsi
jmp 0x18005aabe
mov rcx, rbx
call fcn.1800d9868
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.18001eca0
nop
mov byte [rsp + 0x20], dil
lea r9, [rbp - 1]
xor r8d, r8d
lea rdx, [rbp - 0x11]
mov rcx, r12
call fcn.18002e024
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 1]
call fcn.18001ea24
inc r14d
mov eax, dword [rbp - 0x35]
jmp 0x18005a9da
cmp eax, 0x103
cmovne esi, eax
mov edx, 2
mov rcx, rbx
call fcn.18006b9e0
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800a6240
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005ab40
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [rdx + 0x18], 8
jb 0x18005ab6b
mov rdx, qword [rdx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x18005abcf
lea rdx, str.RegSetValueEx
lea rcx, [rsp + 0x50]
call fcn.18001c6c0
nop
mov r8d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.180013848
nop
mov r9d, 0x1f8
lea r8, str.c:dvsp4_build_sw_relgpu_drv_r565_r565_00driversuilogginglogging.libRegistryKey.h
lea rdx, str.void___cdecl_Nvidia::Logging::RegistryKey::CheckErrorCode_long_const_char__
mov rcx, rax
call fcn.180023874
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800a6240
add rsp, 0x80
pop rbx
ret
Function at 0x180066e84
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rsp + 0x250], rax
call fcn.18006abd0
test al, al
jne 0x180066fbf
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x50]
call fcn.1800cf2b0
mov dword [rsp + 0x30], 0x100
xor bl, bl
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edi, 1
mov r9d, edi
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1801635d0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call fcn.180067010
nop
xor r8d, r8d
lea rdx, [0x180158b0c]
lea rcx, [rsp + 0x50]
call fcn.1800d9590
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.1800d903c
test eax, eax
jne 0x180066f9b
xor r8d, r8d
lea rdx, [0x180158b0c]
xor ecx, ecx
call fcn.1800d9590
xor r8d, r8d
lea rdx, [0x18015a714]
mov rcx, rax
call fcn.1800d9590
mov rcx, rax
call fcn.1800e99cc
movzx ebx, bl
cmp eax, 0xa
cmovge ebx, edi
mov rax, qword [rsp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x180066fbb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
jmp 0x180066fc4
call fcn.180066dcc
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800a6240
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x18006abd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor dil, dil
mov byte [rbp + 0xf], dil
lea rcx, [rbp + 0x27]
call fcn.18006cac0
nop
and dword [rsp + 0x28], 0
mov byte [rsp + 0x20], dil
mov r9d, 0x20019
mov r8, rax
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0xf]
call fcn.180013b2c
test eax, eax
sete bl
xor r8d, r8d
lea r14d, [r8 + 1]
mov dl, r14b
lea rcx, [rbp + 0x27]
call fcn.18001ea24
test bl, bl
je 0x18006acc5
lea rcx, [rbp + 0x27]
call fcn.18006cafc
mov dword [rbp - 9], 4
cmp qword [rax + 0x18], 8
jb 0x18006ac6b
mov rax, qword [rax]
lea rcx, [rbp - 9]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 1]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 5]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18006aca3
mov eax, 0x3bc6
cmp dword [rbp - 5], 4
cmovne ebx, eax
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp + 0x27]
call fcn.18001ea24
test ebx, ebx
jne 0x18006acc5
movzx edi, dil
cmp dword [rbp - 1], 0x10de
cmove edi, r14d
cmp byte [rbp + 0xf], 0
je 0x18006acd5
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x18006c98c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x80
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [r11 - 0x58], r8d
lea rdx, [0x1801b04d8]
cmp qword [0x1801b04f0], 8
cmovae rdx, qword [0x1801b04d8]
mov r9d, 4
mov dword [r11 - 0x60], r9d
lea rax, [r11 - 0x58]
mov qword [r11 - 0x68], rax
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x18006ca2f
lea rdx, str.RegSetValueEx
lea rcx, [rsp + 0x58]
call fcn.18001c6c0
nop
mov r8d, ebx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.180013848
nop
mov r9d, 0x1f8
lea r8, str.c:dvsp4_build_sw_relgpu_drv_r565_r565_00driversuilogginglogging.libRegistryKey.h
lea rdx, str.void___cdecl_Nvidia::Logging::RegistryKey::CheckErrorCode_long_const_char__
mov rcx, rax
call fcn.180023874
nop
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800a6240
add rsp, 0x80
pop rbx
ret
Function at 0x18007ebb0
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 0x78]
jmp 0x180089c10
mov ecx, edx
jmp 0x18009b430
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.18009afb0
mov rax, qword [0x1801f37b0]
lea rcx, [0x1801f17b0]
mov dword [rax + 0x98], ebx
mov rdx, qword [0x1801f37b0]
add rsp, 0x20
pop rbx
jmp fcn.180090030

Function at 0x180081450
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor bl, bl
mov byte [rbp + 0x2f], bl
mov qword [rbp + 0xf], 7
xor esi, esi
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
lea r8d, [rsi + 0x2a]
lea rdx, str.SYSTEMCurrentControlSetServices_nvlddmkm
lea rcx, [rbp - 9]
call fcn.18001eca0
nop
mov dword [rsp + 0x28], esi
mov byte [rsp + 0x20], sil
mov r9d, 0x20019
lea r8, [rbp - 9]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x2f]
call fcn.180013b2c
test eax, eax
sete dil
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x1800814f0
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.180020b60
test dil, dil
je 0x18008159c
mov dword [rbp + 0x1f], esi
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
mov r8d, 7
lea rdx, str.DCHUVen
lea rcx, [rbp - 9]
call fcn.18001eca0
mov dword [rbp + 0x23], 4
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rax, [rbp + 0x23]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x27]
xor r8d, r8d
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x18008156c
mov eax, 0x3bc6
cmp dword [rbp + 0x27], 4
cmovne edi, eax
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x180081586
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.180020b60
test edi, edi
jne 0x18008159c
movzx ebx, bl
mov eax, 1
cmp dword [rbp + 0x1f], 0x10de
cmove ebx, eax
cmp byte [rbp + 0x2f], 0
je 0x1800815ac
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800865f0
Capabilities:
Write file on windows

Disassembly:
jmp 0x1800965d0
sub rsp, 0x28
mov rax, qword [0x1801f37b0]
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x1800965f0
call fcn.1800dd360
mov rax, qword [0x1801f37b0]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1800965fe
call fcn.1800dd360
lea rcx, [0x180159e62]
call fcn.1800ecc58
mov rdx, qword [0x1801f37b0]
lea rcx, [0x180159e62]
mov qword [rdx + 0x48], rax
call fcn.1800ecc58
mov rcx, qword [0x1801f37b0]
mov qword [rcx + 0x50], rax
lea rcx, [0x1801f17b0]
mov rdx, qword [0x1801f37b0]
add rsp, 0x28
jmp fcn.180090030

Function at 0x180088380
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea r8, [0x180158b0c]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.180023908
nop
cmp qword [rdi + 0x18], 8
jb 0x1800883ce
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x1800883d8
mov rbx, qword [rbx]
mov eax, dword [rsp + 0x80]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x180088447
lea rdx, str.RegSetValueEx
lea rcx, [rsp + 0x38]
call fcn.18001c6c0
nop
mov r8d, ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.180013848
nop
mov r9d, 0x1f8
lea r8, str.c:dvsp4_build_sw_relgpu_drv_r565_r565_00driversuilogginglogging.libRegistryKey.h
lea rdx, str.void___cdecl_Nvidia::Logging::RegistryKey::CheckErrorCode_long_const_char__
mov rcx, rax
call fcn.180023874
nop
mov r8, qword [rsp + 0x88]
cmp r8, 8
jb 0x180088467
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.180020b60
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800a6240
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180089c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor bl, bl
mov byte [rbp + 0x2f], bl
mov qword [rbp + 0xf], 7
xor esi, esi
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
lea r8d, [rsi + 0x2a]
lea rdx, str.SYSTEMCurrentControlSetServices_nvlddmkm
lea rcx, [rbp - 9]
call fcn.18001eca0
nop
mov dword [rsp + 0x28], esi
mov byte [rsp + 0x20], sil
mov r9d, 0x20019
lea r8, [rbp - 9]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x2f]
call fcn.180013b2c
test eax, eax
sete dil
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x180089ce0
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.180020b60
test dil, dil
je 0x180089d8c
mov dword [rbp + 0x1f], esi
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
mov r8d, 7
lea rdx, str.DCHUVen
lea rcx, [rbp - 9]
call fcn.18001eca0
mov dword [rbp + 0x23], 4
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rax, [rbp + 0x23]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x27]
xor r8d, r8d
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180089d5c
mov eax, 0x3bc6
cmp dword [rbp + 0x27], 4
cmovne edi, eax
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x180089d76
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.180020b60
test edi, edi
jne 0x180089d8c
movzx ebx, bl
mov eax, 1
cmp dword [rbp + 0x1f], 0x10de
cmove ebx, eax
cmp byte [rbp + 0x2f], 0
je 0x180089d9c
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x180089fd0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov r8d, edx
mov r9d, 2
mov rdx, rcx
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
setns al
add rsp, 0x28
ret
Function at 0x1800965d0
Capabilities:
Write file on windows

Disassembly:
jmp 0x1800965d0
sub rsp, 0x28
mov rax, qword [0x1801f37b0]
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x1800965f0
call fcn.1800dd360
mov rax, qword [0x1801f37b0]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1800965fe
call fcn.1800dd360
lea rcx, [0x180159e62]
call fcn.1800ecc58
mov rdx, qword [0x1801f37b0]
lea rcx, [0x180159e62]
mov qword [rdx + 0x48], rax
call fcn.1800ecc58
mov rcx, qword [0x1801f37b0]
mov qword [rcx + 0x50], rax
lea rcx, [0x1801f17b0]
mov rdx, qword [0x1801f37b0]
add rsp, 0x28
jmp fcn.180090030

Function at 0x18009b430
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 0x78]
jmp 0x180089c10
mov ecx, edx
jmp 0x18009b430
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.18009afb0
mov rax, qword [0x1801f37b0]
lea rcx, [0x1801f17b0]
mov dword [rax + 0x98], ebx
mov rdx, qword [0x1801f37b0]
add rsp, 0x20
pop rbx
jmp fcn.180090030

Function at 0x18009c3c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor bl, bl
mov byte [rbp + 0x2f], bl
mov qword [rbp + 0xf], 7
xor esi, esi
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
lea r8d, [rsi + 0x2a]
lea rdx, str.SYSTEMCurrentControlSetServices_nvlddmkm
lea rcx, [rbp - 9]
call fcn.18001eca0
nop
mov dword [rsp + 0x28], esi
mov byte [rsp + 0x20], sil
mov r9d, 0x20019
lea r8, [rbp - 9]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x2f]
call fcn.180013b2c
test eax, eax
sete dil
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x18009c460
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.180020b60
test dil, dil
je 0x18009c50c
mov dword [rbp + 0x1f], esi
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
mov r8d, 7
lea rdx, str.DCHUVen
lea rcx, [rbp - 9]
call fcn.18001eca0
mov dword [rbp + 0x23], 4
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rax, [rbp + 0x23]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x27]
xor r8d, r8d
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x18009c4dc
mov eax, 0x3bc6
cmp dword [rbp + 0x27], 4
cmovne edi, eax
mov r8, qword [rbp + 0xf]
cmp r8, 8
jb 0x18009c4f6
inc r8
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.180020b60
test edi, edi
jne 0x18009c50c
movzx ebx, bl
mov eax, 1
cmp dword [rbp + 0x1f], 0x10de
cmove ebx, eax
cmp byte [rbp + 0x2f], 0
je 0x18009c51c
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret