joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045f90
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.140067170
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140046073
mov rax, rsi
mov r8d, 0x7ffffffe
shr rax, 1
lea rcx, [rax - 1]
cmp rcx, r8
ja 0x140046046
sub r8, rax
lea r9, [rsp + 0x30]
sub r9, rdi
mov rdx, rdi
lea rcx, [r8 + rax]
test rcx, rcx
je 0x140046034
movzx ecx, word [r9 + rdx]
test cx, cx
je 0x140046034
mov word [rdx], cx
add rdx, 2
sub rax, 1
jne 0x140046014
test rax, rax
lea rcx, [rdx - 2]
cmovne rcx, rdx
xor eax, eax
mov word [rcx], ax
jmp 0x140046050
test rax, rax
je 0x140046050
xor eax, eax
mov word [rdi], ax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140045820
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140046073
mov eax, 1
jmp 0x140046075
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140064920
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
lea r9, str.NVIDIA_Corporation_nView
mov r8d, 0x23
jmp 0x140045f90

Function at 0x1400460a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.140067170
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140046073
mov rax, rsi
mov r8d, 0x7ffffffe
shr rax, 1
lea rcx, [rax - 1]
cmp rcx, r8
ja 0x140046046
sub r8, rax
lea r9, [rsp + 0x30]
sub r9, rdi
mov rdx, rdi
lea rcx, [r8 + rax]
test rcx, rcx
je 0x140046034
movzx ecx, word [r9 + rdx]
test cx, cx
je 0x140046034
mov word [rdx], cx
add rdx, 2
sub rax, 1
jne 0x140046014
test rax, rax
lea rcx, [rdx - 2]
cmovne rcx, rdx
xor eax, eax
mov word [rcx], ax
jmp 0x140046050
test rax, rax
je 0x140046050
xor eax, eax
mov word [rdi], ax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140045820
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140046073
mov eax, 1
jmp 0x140046075
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140064920
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
lea r9, str.NVIDIA_Corporation_nView
mov r8d, 0x23
jmp 0x140045f90
Function at 0x1400468f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rbp, rdx
mov rdi, rcx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140046e80
test eax, eax
je 0x140046a73
xor edx, edx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1400465f0
nop
cmp ebx, esi
jae 0x140046a50
xor r14d, r14d
nop dword [rax]
mov word [rsp + 0xc0], r14w
mov dword [rsp + 0xc8], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xc8]
mov r8d, 2
lea rdx, [rsp + 0xc0]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0xc8]
add ebx, eax
movzx ecx, word [rsp + 0xc0]
cmp ecx, 5
jb 0x140046a1a
cmp eax, 2
jne 0x140046a1a
mov r8d, ecx
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140047850
mov dword [rsp + 0xc8], eax
add ebx, eax
movzx ecx, word [rsp + 0xc0]
cmp ecx, eax
jne 0x1400469fc
lea rcx, [rsp + 0x30]
call fcn.140047680
test al, al
je 0x140046a4e
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.140046770
cmp ebx, esi
jb 0x140046960
jmp 0x140046a4e
call fcn.14004e890
mov rcx, rax
lea rax, str.parsing_error:_failed_to_read_line
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1c1
jmp 0x140046a36
call fcn.14004e890
mov rcx, rax
lea rax, str.parsing_error:_invalid_line_size
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1b8
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nViewAPIProfileFile.cpp
lea r8, str.ProfileFileRead::dumpFileToRegistry
mov edx, 1
call fcn.14004f020
cmp ebx, esi
setae bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140046a70
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.14000c080
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140046d70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14d, edx
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
xor edi, edi
xor r8d, r8d
xor edx, edx
lea r9d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [0x140098fd0]
mov ebx, eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov dword [rsp + 0x30], edi
add ebp, ebp
nop dword [rax]
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov word [rsp + 0x44], ax
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rdx, [0x140098fd0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140046e2e
inc ebx
cmp dword [rsp + 0x30], edi
ja 0x140046dd0
jmp 0x140046e30
mov edi, ebx
test r14d, r14d
jne 0x140046e48
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140064920
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140046e80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12d, r8d
movsxd rbx, edx
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13d, eax
xor esi, esi
lea rax, str.aProfileFlags
mov rcx, qword [rax + rbx*8]
lea r15, [rax + rbx*8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [rax + rax]
lea ecx, [rbp + 2]
call fcn.1400740c4
mov r14, rax
test rax, rax
je 0x140046faa
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140046d70
mov ebx, eax
test eax, eax
je 0x140046fa2
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x68]
mov r8d, ebp
mov dword [rsp + 0x68], esi
mov rdx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov word [r14 + rcx*2], si
mov rcx, r14
mov rdx, qword [r15]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140046f8b
test ebx, ebx
je 0x140046f76
mov rcx, qword [rdi + 0x10]
lea edx, [rbx + 4]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, 1
mov rcx, rdi
call fcn.140046d70
mov ebx, eax
test eax, eax
jne 0x140046f20
jmp 0x140046fa2
mov rcx, qword [rdi + 0x10]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov rcx, r14
call fcn.14006ba18
test r12d, r12d
jne 0x140046fc2
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140046ff0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0
mov rsi, r8
mov qword [rsp + 0x20], 0
mov rdi, rdx
lea r9, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8d, 0x40
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rsp + 0x40]
mov rax, 0xffffffffffffffff
lea r10, str.NVIEW_PROFILE_LOCK
nop dword [rax + rax]
movzx edx, word [r9 + rax*2 + 2]
movzx ecx, word [r10 + rax*2 + 2]
sub edx, ecx
jne 0x140047098
add rax, 2
cmp rax, 0x13
je 0x140047098
movzx edx, word [r9 + rax*2]
movzx ecx, word [r10 + rax*2]
sub edx, ecx
je 0x140047070
xorps xmm0, xmm0
mov qword [rsp + 0x20], 0
test edx, edx
lea r9, [rsp + 0x30]
mov r8d, 0x40
lea rdx, [rsp + 0x80]
sete al
mov byte [rdi], al
mov rcx, qword [rbx + 0x10]
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, [rsp + 0x80]
call fcn.140047220
mov dword [rsi], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140064920
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret

Function at 0x140047120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
mov r9d, 1
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
xor edx, edx
xor sil, sil
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
mov rcx, rdi
mov ebp, eax
lea r8d, [rdx + 1]
call fcn.140046e80
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140046d70
sub eax, ebx
cmp eax, 0x20
jae 0x1400471d7
xorps xmm0, xmm0
lea r9, [rsp + 0x30]
xor ecx, ecx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x30], ecx
mov r8d, eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x10]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, rdi
lea rdx, [0x1400af010]
lea rcx, [rsp + 0x40]
call fcn.140047ef0
mov sil, 1
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, sil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140064920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140047330
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, r9d
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400473d8
call fcn.14004e890
mov rcx, rax
mov qword [rsp + 0x30], rsi
lea rax, str.Failed_to_open_file__s_for_writing
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1e9
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nViewAPIProfileFile.cpp
lea r8, str.ProfileFileWrite::openNewFile
lea edx, [r14 + 1]
call fcn.14004f020
xor al, al
jmp 0x14004748a
mov r8b, 1
movzx edx, byte [rsp + 0xc0]
mov rcx, rdi
call fcn.140047bf0
xor edx, edx
mov rcx, rdi
call fcn.140047e30
mov edx, ebp
mov rcx, rdi
call fcn.140047a30
mov edx, 4
mov rcx, rdi
call fcn.140047e30
mov edx, 0x4f52
mov rcx, rdi
call fcn.140047a30
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
test rbx, rbx
je 0x140047458
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140047440
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000a2d0
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rdi
call fcn.140047ae0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140047488
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
call fcn.14000c080
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140064920
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140047850
Capabilities:
Read 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 edi, r8d
mov rbx, rcx
mov qword [rcx + 0x20], rbp
mov qword [rcx + 0x28], rbp
mov rsi, rdx
mov qword [rcx + 0x30], rbp
mov dword [rcx + 0x38], ebp
mov qword [rcx + 0x40], rbp
mov dword [rcx + 0x48], ebp
mov qword [rcx + 0x50], rbp
mov rax, qword [rbx + 8]
mov rcx, qword [rcx]
sub rax, rcx
mov edx, r8d
sar rax, 1
shr rdx, 1
cmp rdx, rax
jbe 0x1400478ac
mov rcx, rbx
call fcn.140047940
mov rcx, qword [rbx]
mov rdx, rcx
mov dword [rsp + 0x60], ebp
mov rcx, rsi
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x60]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
cmp edi, eax
je 0x140047913
call fcn.14004e890
mov rcx, rax
lea r9, str.D:uworkspace_nViewBranchBuilder_sw_nview_v200_nViewAPIProfileFile.cpp
mov eax, dword [rsp + 0x60]
lea r8, str.ReadLineBuffer::readLine
mov dword [rsp + 0x38], eax
mov edx, 1
lea rax, str.read_error:_expected__i_bytes__got__i
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x123
call fcn.14004f020
jmp 0x140047925
mov rcx, rax
shr rcx, 1
mov qword [rbx + 0x18], rcx
mov rax, qword [rbx]
mov word [rax + rcx*2 - 2], bp
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400479b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
lea r9, [rsp + 0x40]
mov rdi, rdx
mov dword [rsp + 0x40], 0
add rax, rax
mov qword [rsp + 0x20], 0
mov rbx, rcx
mov qword [rsp + 0x50], rax
mov r8d, 2
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx]
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
cmp eax, 1
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x140047a30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
lea r8, [0x1400af010]
mov r9d, edx
lea rcx, [rsp + 0x40]
mov edx, 0x40
call fcn.140004da0
mov edx, 0x20
lea rax, [rsp + 0x40]
mov ecx, edx
cmp word [rax], 0
je 0x140047a83
add rax, 2
sub rcx, 1
jne 0x140047a73
xor eax, eax
test rcx, rcx
je 0x140047a99
sub rdx, rcx
add rdx, rdx
test rcx, rcx
cmove rdx, rax
jmp 0x140047a9c
mov rdx, rax
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, edx
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140064920
add rsp, 0x90
pop rbx
ret
Function at 0x140047ae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call fcn.140047e30
xor eax, eax
mov rdx, rbx
cmp qword [rbx + 0x18], 8
mov dword [rsp + 0x40], eax
jb 0x140047b08
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov rcx, qword [rdi]
add r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140047bf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
lea rax, str.NVIEW_PROFILE_LOCK
test dl, dl
lea r9, str.NVIEW_PROFILE_FILE
movzx ebx, r8b
mov rdi, rcx
cmovne r9, rax
lea r8, [0x1400944f0]
mov edx, 0x20
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140004d50
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x140047cbc
lea r9, str.ProfileFormat_5
mov edx, 0x20
lea r8, [0x1400944f0]
lea rcx, [rsp + 0x40]
call fcn.140004d50
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140064920
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x140047ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, r8
lea rax, [rsp + 0x60]
mov r14, rdx
mov qword [rsp + 0x28], rax
xor r15d, r15d
lea r9, [rsp + 0x78]
mov rdi, rcx
mov qword [rsp + 0x20], r15
mov rdx, rbp
mov dword [rsp + 0x60], r15d
mov rcx, r14
mov dword [rsp + 0x78], r15d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdx, qword [rdi + 0x18]
mov r8, qword [rdi]
mov eax, dword [rsp + 0x78]
lea rbx, [r8 + rdx*2]
cmp eax, 4
jne 0x140047d73
mov rdx, rbp
mov rcx, r14
call fcn.14004fd00
mov ecx, 4
mov word [rbx], cx
mov ecx, eax
shr ecx, 0x10
mov word [rbx + 4], ax
mov al, 1
mov word [rbx + 2], cx
mov dword [rbx + 6], 0xa
add qword [rdi + 0x18], 4
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
cmp eax, 0xb
jne 0x140047da4
mov rdx, rbp
mov word [rbx], ax
mov rcx, r14
call fcn.14004fd80
mov qword [rbx + 2], rax
mov al, 1
mov dword [rbx + 0xa], 0xa
add qword [rdi + 0x18], 6
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
cmp eax, 1
jne 0x140047e1e
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x68], rsi
sub rcx, r8
mov esi, dword [rsp + 0x60]
shr esi, 1
add esi, 2
sar rcx, 1
mov eax, esi
sub rcx, rdx
cmp rcx, rax
jbe 0x140047e0b
mov eax, 1
lea r9, [rsp + 0x78]
mov word [rbx], ax
xor r8d, r8d
lea rax, [rsp + 0x60]
add rbx, 2
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [rsi - 1]
add qword [rdi + 0x18], rcx
lea ecx, [rsi - 2]
mov dword [rbx + rcx*2], 0xa
mov rsi, qword [rsp + 0x68]
mov al, 1
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret

Function at 0x140047e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
movsxd rbx, edx
mov rdi, rcx
mov dword [rsp + 0x48], esi
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
lea rdx, [0x140098fd0]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r10, str.aProfileFlags
mov r10, qword [r10 + rbx*8]
test r10, r10
je 0x140047ea6
mov edx, 0x82
mov rax, r10
mov ecx, edx
cmp word [rax], si
je 0x140047e92
add rax, 2
sub rcx, 1
jne 0x140047e83
test rcx, rcx
je 0x140047ea6
sub rdx, rcx
add rdx, rdx
test rcx, rcx
cmove rdx, rsi
jmp 0x140047ea9
mov rdx, rsi
mov rcx, qword [rdi]
lea r9, [rsp + 0x48]
mov r8d, edx
mov qword [rsp + 0x20], rsi
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140048990
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x89d0
call fcn.140064980
sub rsp, rax
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x89c0], rax
mov rax, rdx
lea r8, [rsp + 0x48]
xor r15d, r15d
lea rdx, str.DesktopManagement
mov rdi, rcx
mov qword [rsp + 0x28], r15
mov rcx, rax
mov dword [rsp + 0x20], r15d
mov r9d, 0xf003f
call fcn.14004f980
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x40], 0x28
mov esi, r15d
mov r14d, r15d
mov ebp, r15d
call fcn.140015920
mov rax, qword [0x1400ca5a8]
lea rcx, [rsp + 0x60]
mov r8b, 1
mov edx, dword [rax + 0x50]
shr edx, 4
and dl, 1
call fcn.140007150
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x8970]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140048bcf
mov qword [rsp + 0x8a10], rbx
nop
cmp esi, 8
jae 0x140048bc7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x8970]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048b82
lea edx, [rax + 3]
mov ecx, 0x3be8
call fcn.140011700
mov rcx, qword [0x1400ca5a0]
mov rbx, rax
sub rbx, rcx
add rcx, rbx
call fcn.14004b7d0
mov rcx, qword [0x1400ca5a0]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
add rcx, rbx
xor r9d, r9d
call fcn.14004a7f0
mov rcx, qword [0x1400ca5a0]
inc r14d
add rcx, rbx
mov edx, r14d
call fcn.14004b590
mov rax, qword [0x1400ca5a0]
mov edx, dword [rax + rbx]
lea r8, [rax + rbx]
mov ecx, dword [rdi + 0x14]
test edx, edx
je 0x140048b03
test ecx, edx
je 0x140048b1d
mov eax, 1
test eax, ecx
je 0x140048b10
add eax, eax
jne 0x140048b08
mov dword [r8], eax
mov ecx, dword [rdi + 0x14]
mov rax, qword [0x1400ca5a0]
mov eax, dword [rax + rbx]
or eax, ecx
lea rcx, [rsp + 0x8970]
mov dword [rdi + 0x14], eax
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140048b34
cmp rax, 3
jbe 0x140048b5b
mov rcx, qword [0x1400ca5a0]
lea rdx, [rsp + 0x8970]
add rcx, rbx
call fcn.14004b730
cmp qword [rdi], r15
jne 0x140048b65
mov qword [rdi], rbx
jmp 0x140048b74
mov rax, qword [0x1400ca5a0]
mov qword [rax + rbp + 0x3b38], rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, rbx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x8970]
inc esi
mov qword [rsp + 0x28], r15
mov edx, esi
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x28
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140048a60
mov rbx, qword [rsp + 0x8a10]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
mov rcx, qword [rsp + 0x89c0]
xor rcx, rsp
call fcn.140064920
add rsp, 0x89d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a720
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, 0x104
test eax, eax
je 0x14004a75d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, rdx
mov rax, rbx
cmp word [rax], 0
je 0x14004a773
add rax, 2
sub rcx, 1
jne 0x14004a763
test rcx, rcx
je 0x14004a7d0
xor r10d, r10d
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmove rax, r10
lea rcx, [rbx + rax*2]
sub rdx, rax
je 0x14004a7c1
lea r9, str._nView_Wallpaper
mov eax, 0x7ffffffe
sub r9, rcx
test rax, rax
je 0x14004a7c1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x14004a7c1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x14004a7a0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r10w
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, 1
add rsp, 0x30
pop rbx
ret