joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400053e0
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x10], dl
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140005439
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005439
cmp dword [rsp + 0x40], 1
jne 0x140005439
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.140004b50
mov eax, 8
add rsp, 0x30
pop rbx
ret

Function at 0x140005450
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, rdx
mov rsi, rcx
mov edi, ebp
nop
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400054ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400054cd
cmp eax, 2
je 0x1400054cd
cmp edi, 0xbb8
jae 0x1400054cd
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3c
cmp edi, 0xbb8
jb 0x140005470
mov rcx, rsi
call fcn.140004b50
mov eax, 8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8d, dword [rsi + 0xc]
mov rdx, qword [rsi]
or dword [rsi + 0x50], 8
lea r9, [rsp + 0x60]
mov rcx, rax
mov qword [rsi + 0x28], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
je 0x140005521
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rsi + 0x50], 0xfffffff7
mov qword [rsi + 0x28], rbp
test edi, edi
je 0x1400054cd
mov eax, dword [rsi + 0xc]
cmp dword [rsp + 0x60], eax
jne 0x1400054cd
lea rcx, [rsi + 0x58]
test rcx, rcx
je 0x140005577
test rbx, rbx
je 0x140005577
mov edx, ebp
cmp word [rbx], dx
je 0x140005574
sub rbx, rcx
cmp edx, 0x200
ja 0x140005574
movzx eax, word [rbx + rcx]
add rcx, 2
inc edx
mov word [rcx - 2], ax
cmp word [rbx + rcx], bp
jne 0x140005558
mov word [rcx], bp
xor eax, eax
jmp 0x1400054da
Function at 0x140005580
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x140036460]
xor rax, rsp
mov qword [rsp + 0x430], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x1400055b1
call fcn.140005030
test eax, eax
jne 0x1400056a0
lea rax, str.nvdrssel.bin
add rbx, 0x58
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov edx, 0x200
mov r9, rbx
mov qword [rsp + 0x20], rax
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, str.nvdrswr.lk
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov qword [rsp + 0x20], r11
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, str.update.bin
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov qword [rsp + 0x20], r11
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str._s_nvdrsdb_d.bin
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov qword [rsp + 0x20], 0
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str._s_nvdrsdb_d.bin
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov dword [rsp + 0x20], 1
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400177a0
add rsp, 0x440
pop rbx
ret
add rcx, 0x438
jmp 0x140005580

Function at 0x1400056c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140036460]
xor rax, rsp
mov qword [rsp + 0x450], rax
test byte [rcx + 0x50], 0x20
mov rdi, rdx
mov rbx, rcx
jne 0x1400056f8
call fcn.140005030
test eax, eax
jne 0x1400057a5
lea rax, str.nvdrssel.bin
lea r9, [rbx + 0x58]
lea r8, str._s_s
lea rcx, [rsp + 0x50]
mov edx, 0x200
mov qword [rsp + 0x20], rax
call fcn.140004d00
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140005769
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140004b50
mov eax, 8
jmp 0x1400057a5
or dword [rbx + 0x50], 0x10
lea r9, [rsp + 0x40]
mov r8d, 1
mov rdx, rdi
mov rcx, rax
mov qword [rbx + 0x20], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400057a0
cmp dword [rsp + 0x40], 1
jne 0x1400057a0
xor eax, eax
jmp 0x1400057a5
mov eax, 0xf
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400177a0
mov rbx, qword [rsp + 0x480]
add rsp, 0x460
pop rdi
ret
Function at 0x1400057d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rsi, rdx
mov rbx, rcx
mov edi, ebp
nop
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140005870
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000584e
cmp eax, 2
je 0x14000584e
cmp edi, 0xbb8
jae 0x14000584e
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3c
cmp edi, 0xbb8
jb 0x1400057f0
mov rcx, rbx
call fcn.140004b50
mov eax, 8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
or dword [rbx + 0x50], 8
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000584e
cmp dword [rsp + 0x64], ebp
jne 0x14000584e
mov edx, dword [rsp + 0x60]
mov rcx, rbx
call fcn.140004880
test eax, eax
jne 0x14000584e
mov rax, qword [rsp + 0x60]
lea rcx, [rbx + 0x58]
mov r8d, 0x200
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], eax
mov rax, qword [rbx]
mov rdx, rsi
mov qword [rbx + 0x10], rax
call fcn.140004630
xor eax, eax
jmp 0x14000585b
Function at 0x14000a3c0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x140036460]
xor rax, rsp
mov qword [rsp + 0x430], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x1400055b1
call fcn.140005030
test eax, eax
jne 0x1400056a0
lea rax, str.nvdrssel.bin
add rbx, 0x58
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov edx, 0x200
mov r9, rbx
mov qword [rsp + 0x20], rax
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, str.nvdrswr.lk
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov qword [rsp + 0x20], r11
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, str.update.bin
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov qword [rsp + 0x20], r11
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str._s_nvdrsdb_d.bin
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov qword [rsp + 0x20], 0
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str._s_nvdrsdb_d.bin
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x200
mov dword [rsp + 0x20], 1
call fcn.140004d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400177a0
add rsp, 0x440
pop rbx
ret
add rcx, 0x438
jmp 0x140005580

Function at 0x14000b7b0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, dword [rcx + 8]
lea r8, [rcx + 0x10]
shr r9d, 1
je 0x14000b7e9
lea rcx, [0x140036100]
nop word [rax + rax]
mov eax, edx
add r8, 2
inc edx
and eax, 0x7f
movzx eax, word [rcx + rax*2]
xor word [r8 - 2], ax
dec r9d
jne 0x14000b7d0
xor eax, eax
ret

Function at 0x14000baf0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, dword [rcx + 8]
mov r8, qword [rcx + 0x10]
shr r9d, 1
je 0x14000bb29
lea rcx, [0x140036100]
nop word [rax + rax]
mov eax, edx
add r8, 2
inc edx
and eax, 0x7f
movzx eax, word [rcx + rax*2]
xor word [r8 - 2], ax
dec r9d
jne 0x14000bb10
xor eax, eax
ret
Function at 0x14000d1d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, rdx
mov rsi, rcx
test rbx, rbx
jne 0x14000d206
lea rax, [rcx + 0x18]
or rax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rdx + 8]
mov ecx, 0x811c9dc5
test eax, eax
je 0x14000d236
mov rdx, qword [rdx]
mov r8d, eax
nop dword [rax + rax]
movzx eax, word [rdx]
add rdx, 2
xor rcx, rax
imul rcx, rcx, 0x1000193
dec r8
jne 0x14000d220
imul rcx, rcx, 0x2001
mov r8d, 1
mov rax, rcx
shr rax, 7
xor rax, rcx
mov ecx, dword [rsi + 0x20]
lea rdx, [rax + rax*8]
shl r8, cl
dec r8
mov rax, rdx
shr rax, 0x11
xor rax, rdx
imul rax, rax, 0x21
and r8, rax
mov rbx, qword [rbx + r8*8]
test rbx, rbx
jne 0x14000d28c
lea rax, [rsi + 0x18]
or rax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rcx, rbx
call fcn.140013e90
test al, al
jne 0x14000d2bd
nop dword [rax + rax]
mov eax, dword [rbx + 0x18]
shr eax, 0x1f
test al, 1
jne 0x14000d274
mov rbx, qword [rbx + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.140013e90
test al, al
je 0x14000d2a0
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000d8a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov r12, rdx
mov rbp, rcx
mov r9d, 0x32f54a96
xor r14d, r14d
mov r10d, r14d
mov r11d, dword [rdx + 8]
test r11d, r11d
je 0x14000d91c
mov rdx, qword [rdx]
nop dword [rax + rax]
movzx ecx, word [rdx]
imul ecx, ecx, 0xc5
mov eax, r9d
imul eax, eax, 0x34c3
add ecx, eax
mov eax, r9d
shr eax, 2
mov r9d, ecx
xor r9d, eax
inc r10d
add rdx, 2
cmp r10d, r11d
jb 0x14000d8f0
and r9d, 0x3fffffff
mov ecx, dword [rbp + 8]
mov r13d, 1
shl r13d, cl
dec r13d
mov edi, r13d
and edi, r9d
mov r15d, edi
mov esi, 1
mov rdx, r12
lea rcx, [rsp + 0x28]
call fcn.140014440
mov rbx, rax
mov qword [rsp + 0x80], rax
mov eax, edi
shl rax, 5
mov rcx, qword [rbp]
test byte [rax + rcx], 2
jne 0x14000d979
lea rdx, [rax + rcx + 8]
mov rcx, rbx
call fcn.140013ec0
test al, al
je 0x14000d98f
mov rcx, rbx
call fcn.140014000
add edi, esi
and edi, r13d
inc esi
cmp edi, r15d
je 0x14000d9da
jmp 0x14000d940
mov ecx, edi
shl rcx, 5
mov rdx, qword [rbp]
test byte [rcx + rdx], 1
je 0x14000d9b7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov dword [rcx + rdx + 0x18], eax
mov rcx, rbx
call fcn.140014000
jmp 0x14000d9c5
mov rcx, rbx
call fcn.140014000
mov r14d, 1
or ebx, 0xffffffff
test r14d, r14d
cmove ebx, edi
mov rcx, r12
call fcn.140014000
mov eax, ebx
jmp 0x14000d9fe
mov ecx, dword [rbp + 0x10]
lea eax, [rcx + 1]
mov dword [rbp + 0x10], eax
cmp ecx, 4
jbe 0x14000d9f4
mov rcx, rbp
call fcn.1400104b0
mov dword [rbp + 0x10], r14d
mov rcx, r12
call fcn.140014000
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000da20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov r13, rdx
mov r12, rcx
mov esi, 0x32f54a96
xor r9d, r9d
mov r10d, dword [rdx + 8]
test r10d, r10d
je 0x14000da8c
mov rdx, qword [rdx]
movzx ecx, word [rdx]
imul ecx, ecx, 0xc5
mov eax, esi
imul eax, eax, 0x34c3
add ecx, eax
mov eax, esi
shr eax, 2
mov esi, ecx
xor esi, eax
inc r9d
add rdx, 2
cmp r9d, r10d
jb 0x14000da64
and esi, 0x3fffffff
mov ecx, dword [r12 + 8]
mov ebx, 1
mov r14d, ebx
shl r14d, cl
dec r14d
mov edi, r14d
and edi, esi
mov r15d, edi
nop dword [rax]
mov rdx, r13
lea rcx, [rsp + 0x28]
call fcn.140014440
mov rbp, rax
mov qword [rsp + 0x80], rax
mov eax, edi
shl rax, 5
mov rcx, qword [r12]
test byte [rax + rcx], 1
je 0x14000db46
lea rdx, [rax + rcx + 8]
mov rcx, rbp
call fcn.140013e90
test al, al
jne 0x14000db2c
mov rcx, rbp
call fcn.140014000
add edi, ebx
and edi, r14d
inc ebx
cmp edi, r15d
jne 0x14000dab0
mov ecx, dword [r12 + 0x10]
lea eax, [rcx + 1]
mov dword [r12 + 0x10], eax
cmp ecx, 4
jbe 0x14000db20
mov rcx, r12
call fcn.1400104b0
mov dword [r12 + 0x10], 0
mov rcx, r13
call fcn.140014000
xor eax, eax
jmp 0x14000dbaa
mov edx, edi
shl rdx, 5
mov rcx, qword [r12]
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov dword [rdx + rcx + 0x18], eax
jmp 0x14000db97
mov ebx, edi
shl rbx, 5
or dword [rbx + rcx], 1
mov rax, qword [r12]
and dword [rbx + rax], 0xfffffffd
mov rdx, qword [r12]
lea ecx, [rsi*4]
mov eax, dword [rbx + rdx]
and eax, 3
or ecx, eax
mov dword [rbx + rdx], ecx
mov rax, qword [r12]
lea rcx, [rbx + rax + 8]
mov rdx, rbp
call fcn.140014030
mov r11, qword [r12]
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax]
mov dword [rbx + r11 + 0x18], ecx
inc dword [r12 + 0xc]
mov rcx, rbp
call fcn.140014000
nop
mov rcx, r13
call fcn.140014000
mov eax, edi
mov rbx, qword [rsp + 0x98]

Function at 0x14000dbd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r12, rdx
mov rbp, rcx
mov r8d, 0x32f54a96
xor r9d, r9d
mov r10d, dword [rdx + 8]
test r10d, r10d
je 0x14000dc3c
mov rdx, qword [rdx]
movzx ecx, word [rdx]
imul ecx, ecx, 0xc5
mov eax, r8d
imul eax, eax, 0x34c3
add ecx, eax
mov eax, r8d
shr eax, 2
mov r8d, ecx
xor r8d, eax
inc r9d
add rdx, 2
cmp r9d, r10d
jb 0x14000dc10
and r8d, 0x3fffffff
mov ecx, dword [rbp + 8]
mov r15d, 1
mov r13d, r15d
shl r13d, cl
dec r13d
mov edi, r13d
and edi, r8d
mov r14d, edi
mov esi, r15d
Function at 0x14000f9e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rbp
mov r13, r9
movzx r14d, r8b
mov rsi, rdx
mov rbp, rcx
mov r10d, dword [rdx + 8]
test r10d, r10d
je 0x14000fb69
mov rax, qword [rdx]
cmp word [rax], 0
je 0x14000fb69
xor edi, edi
mov edx, edi
test r10d, r10d
je 0x14000fa50
cmp word [rax], 0x2c
je 0x14000fa46
inc edx
add rax, 2
cmp edx, r10d
jb 0x14000fa33
jmp 0x14000fa50
mov eax, 0x11
jmp 0x14000fb6e
mov rdx, rsi
add rcx, 0x48
call fcn.14000b3e0
test rax, rax
je 0x14000fa6b
mov eax, 8
jmp 0x14000fb6e
mov ebx, 0x32f54a96
mov r8d, edi
mov r9d, dword [rsi + 8]
test r9d, r9d
je 0x14000faa8
mov rdx, qword [rsi]
nop
movzx ecx, word [rdx]
imul ecx, ecx, 0xc5
mov eax, ebx
imul eax, eax, 0x34c3
add ecx, eax
mov eax, ebx
shr eax, 2
mov ebx, ecx
xor ebx, eax
inc r8d
add rdx, 2
cmp r8d, r9d
jb 0x14000fa80
mov dword [rsp + 0x78], ebx
mov rdx, qword [rbp]
mov rax, rdx
test rdx, rdx
je 0x14000fafc
mov ecx, dword [rax + 8]
cmp ebx, ecx
je 0x14000fad2
jae 0x14000fac7
mov rax, qword [rax + 0x18]
jmp 0x14000facb
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14000fab8
jmp 0x14000fafc
inc ebx
mov rax, rdx
test rdx, rdx
je 0x14000faf8
nop dword [rax]
mov ecx, dword [rax + 8]
cmp ebx, ecx
je 0x14000fad2
jae 0x14000faef
mov rax, qword [rax + 0x18]
jmp 0x14000faf3
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14000fae0
mov dword [rsp + 0x78], ebx
mov ecx, 0x70
call fcn.140018018
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000fb2a
mov qword [rsp + 0x20], rbp
movzx r9d, r14b
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call fcn.14000f190
mov rdi, rax
mov qword [rsp + 0x30], rdi
test rdi, rdi
jne 0x14000fb39
lea eax, [rdi + 6]
jmp 0x14000fb6e
mov r8, rsi
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x48]
call fcn.14000eab0
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.14000e660
test r13, r13
je 0x14000fb65
mov qword [r13], rdi
xor eax, eax
jmp 0x14000fb6e
mov eax, 9
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140014f10
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rcx, qword [0x140037bc0]
lea rdx, str.Entering__SetLDDMRegistry__function....._n
call fcn.140016980
mov rcx, qword [0x140037bc0]
call fcn.140016430
mov ecx, 0x105
xor ebp, ebp
mov eax, 2
mov rdi, 0xffffffffffffffff
mov ebx, 1
mov qword [rsp + 0x78], rbp
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.140018018
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rsi, rax
call fcn.140016ef0
mov rcx, qword [0x140037bc0]
lea rdx, str.Querying_the_OS_for_the_ALLUSERSPROFILE__n
call fcn.140016980
lea r9, [rsp + 0x70]
lea rcx, [0x14002f258]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x70], rbp
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x140014fca
mov edx, 0x20a
mov rcx, rsi
call fcn.140018b14
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140037bc0]
lea rdx, str.ALLUSERSPROFILE_obtained_as___s__n
mov r8, rsi
call fcn.140016980
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [0x140037bc0]
cmp eax, 0xffffffff
jne 0x140015008
lea rdx, str.WARNING:_ALLUSERSPROFILE_is_not_a_valid_System_path__n
mov ebx, ebp
call fcn.140016980
jmp 0x1400150d9
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
lea rdx, str.Creating_Opening_the_reg_path___s__n
call fcn.140016980
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [0x140037bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
test eax, eax
jne 0x1400150cb
lea rdx, str.Setting_NVDRS_PATH_key_on___s__n
call fcn.140016980
xor eax, eax
mov rcx, rdi
mov rdi, rsi
lea rdx, str.NVDRS_PATH
mov r9d, ebx
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400150be
mov rcx, qword [0x140037bc0]
lea rdx, str.WARNING:_Could_not_set_the_registry_entry_for_NVDRS_PATH__n
mov ebx, ebp
call fcn.140016980
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400150d9
lea rdx, str.WARNING:_Could_not_Create_or_Open_the_reg_path___s___n
call fcn.140016980
mov ebx, ebp
mov rcx, rsi
call fcn.140017fa0
mov rcx, qword [0x140037bc0]
call fcn.140016470
mov rcx, qword [0x140037bc0]
lea rdx, str.Exiting__SetLDDMRegistry__function._Return__d_n
mov r8d, ebx
call fcn.140016980
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015120
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [0x140037bc0]
xor eax, eax
lea r8, str.SOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea rdx, str.Checking_for_ForceUpdate_on____s__n
xor bl, bl
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
call fcn.140016980
lea r11, [rsp + 0x58]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNVUpdatus
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400151c4
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.ForcePackages
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400151b9
cmp dword [rsp + 0x40], eax
setne bl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x1400153d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140036460]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.140016ef0
lea rdx, str.Entering__GetDrsFolder__function....._n
mov rcx, qword [0x140037bc0]
call fcn.140016980
mov rcx, qword [0x140037bc0]
call fcn.140016430
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001551c
lea rcx, [rsp + 0x30]
call fcn.140013dd0
nop
lea rdx, str._SHGetFolderPath__fn_successfully_retrieved_the__Common_App_data__path__n
mov rcx, qword [0x140037bc0]
call fcn.140016980
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140011c60
test eax, eax
je 0x1400154ab
cmp eax, 1
je 0x1400154ab
mov r8d, eax
lea rdx, str.WARNING:__obtainDrsPath__fn_failed_to_retrieve_the__Drs__path__err:_d__n
mov rcx, qword [0x140037bc0]
call fcn.140016980
jmp 0x140015510
lea rdx, str._obtainDrsPath__fn_successfully_retrieved_the__Drs__path__n
mov rcx, qword [0x140037bc0]
call fcn.140016980
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400140b0
lea rdx, [0x14002d808]
mov rcx, rdi
call fcn.140014330
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140014260
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1400154f9
lea ebx, [rax + 1]
jmp 0x140015510
mov r8, qword [rdi]
lea rdx, str.WARNING:__s_Path_is_not_absolute___n
mov rcx, qword [0x140037bc0]
call fcn.140016980
nop
lea rcx, [rsp + 0x30]
call fcn.140014000
jmp 0x140015538
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WARNING:__SHGetFolderPath__fn_failed_to_retrieve__Common_App_data__path__error___u__n
mov rcx, qword [0x140037bc0]
call fcn.140016980
mov rcx, qword [0x140037bc0]
call fcn.140016470
mov r8d, ebx
lea rdx, str.Exiting__GetDrsFolder__function.Return__d_n
mov rcx, qword [0x140037bc0]
call fcn.140016980
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400177a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret