joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002090
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 [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14002a530
xor edi, edi
lea rdx, str.Entering__GetDrsFolder__function....._n
mov rcx, qword [0x1400a8248]
call fcn.140004100
mov rcx, qword [0x1400a8248]
call fcn.140004290
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400021cd
lea rcx, [rsp + 0x30]
call fcn.140027250
nop
lea rdx, str._SHGetFolderPath__fn_successfully_retrieved_the__Common_App_data__path__n
mov rcx, qword [0x1400a8248]
call fcn.140004100
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140025d20
mov rcx, qword [0x1400a8248]
cmp eax, 1
jbe 0x140002162
mov r8d, eax
lea rdx, str.WARNING:__obtainDrsPath__fn_failed_to_retrieve_the__Drs__path__err:_d__n
call fcn.140004100
jmp 0x1400021c0
lea rdx, str._obtainDrsPath__fn_successfully_retrieved_the__Drs__path__n
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140027400
lea rdx, [0x140089fd8]
mov rcx, rbx
call fcn.1400279c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400276a0
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1400021a9
lea edi, [rax + 1]
jmp 0x1400021c0
mov r8, qword [rbx]
lea rdx, str.WARNING:__s_Path_is_not_absolute___n
mov rcx, qword [0x1400a8248]
call fcn.140004100
nop
lea rcx, [rsp + 0x30]
call fcn.140027ab0
nop
jmp 0x1400021e9
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 [0x1400a8248]
call fcn.140004100
mov rcx, qword [0x1400a8248]
call fcn.1400042d0
mov r8d, edi
lea rdx, str.Exiting__GetDrsFolder__function.Return__d_n
mov rcx, qword [0x1400a8248]
call fcn.140004100
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140027f90
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004100
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x2860
call fcn.140027fd0
sub rsp, rax
mov rax, qword [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x2840], rax
cmp dword [rcx + 0x18], 0xffffffff
mov rdi, rcx
je 0x140004273
mov rcx, qword [rcx + 8]
mov edx, 0xffffffff
mov qword [rsp + 0x2858], rbx
mov qword [rsp + 0x2850], rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rbx, [rsp + 0x2880]
call fcn.140004c80
mov r9, qword [rsp + 0x2878]
lea rdx, [rsp + 0x840]
mov qword [rsp + 0x28], rbx
mov r8d, 0x7fffffff
xor ebx, ebx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
call fcn.140060310
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rdi + 0x9c]
lea rdx, [0x14008bb7c]
call fcn.140048774
mov rsi, rax
test rax, rax
je 0x140004259
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x400
lea r9, str.hh:mm:ss_tt
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
je 0x140004218
mov eax, dword [rdi + 0x18]
lea r9, [rdi + 0x1c]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea rdx, str._s____s__d___
mov rcx, rsi
call fcn.140004dd0
mov rax, qword [rdi]
cmp dword [rax + 4], ebx
jle 0x140004239
mov rdx, rsi
lea rcx, [0x14008bbc8]
call fcn.14004847c
mov rax, qword [rdi]
inc ebx
cmp ebx, dword [rax + 4]
jl 0x140004220
mov rdx, rsi
lea rcx, [rsp + 0x840]
call fcn.14004847c
mov rcx, rsi
call fcn.140060a98
mov rcx, rsi
call fcn.140060420
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rsi, qword [rsp + 0x2850]
mov rbx, qword [rsp + 0x2858]
mov rcx, qword [rsp + 0x2840]
xor rcx, rsp
call fcn.140027f90
add rsp, 0x2860
pop rdi
ret
Function at 0x140004380
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.14002a530
mov r8d, 0x104
lea rdx, [rsp + 0x240]
mov rcx, rdi
call fcn.140004840
test eax, eax
je 0x140004585
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14002a530
lea r8, [rsp + 0x240]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140034a3c
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, [rdi + 0x2a4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 8], rax
test rax, rax
je 0x140004585
mov edx, 0xffffffff
mov qword [rsp + 0x480], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
lea rax, [rdi + 0x4ac]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14000448f
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rdi + 8], rsi
jmp 0x14000457d
mov qword [rsp + 0x478], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x10]
cmp eax, 0xb7
sete bpl
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi], rax
test rax, rax
jne 0x1400044f3
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rsi
jmp 0x140004575
test bpl, bpl
jne 0x140004500
mov dword [rax], esi
mov rax, qword [rdi]
mov dword [rax + 4], esi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140004523
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400045b0
lea rcx, [rdi + 0x9c]
mov edx, 0x104
lea r8, [rsp + 0x240]
call fcn.140034a3c
mov rcx, rdi
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx + 0x1c], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140004550
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov dword [rdi + 0x18], eax
inc dword [rcx]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbp, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140027f90
mov rbx, qword [rsp + 0x488]
add rsp, 0x460
pop rdi
ret
Function at 0x1400045b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rcx, rdx
mov r14, r8
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x140004777
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140004777
mov qword [rsp + 0x30], rbp
mov rcx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140004744
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14000461e
cmp eax, 0xb7
jmp 0x140004753
inc r14
mov eax, 2
mul r14
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140027e6c
mov rbp, rax
test rax, rax
je 0x14000475a
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.140034a3c
mov eax, 2
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.140027e6c
mov rdi, rax
test rax, rax
je 0x14000471f
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.140034a3c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov rdx, r14
mov rcx, rbp
mov r8, rax
call fcn.140034a3c
xor r8d, r8d
lea rdx, [0x140089fd8]
mov rcx, rbp
call fcn.140048440
test rax, rax
je 0x1400046fe
nop dword [rax + rax]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400046e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400046fe
xor r8d, r8d
lea rdx, [0x140089fd8]
xor ecx, ecx
call fcn.140048440
test rax, rax
jne 0x1400046c0
mov rdx, rsi
mov rcx, rdi
call fcn.140035abc
mov ecx, ebx
test eax, eax
mov ebx, 1
cmove ecx, ebx
mov ebx, ecx
mov rcx, rdi
call fcn.140027e74
mov rcx, rbp
call fcn.140027e74
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004755
test eax, eax
jne 0x14000475a
mov ebx, 1
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000a410
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x8b0
mov rax, qword [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
xor eax, eax
mov rsi, rcx
xor ebp, ebp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x68], rax
xor edx, edx
mov qword [rsp + 0x70], rax
mov r8d, 0x800
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov edi, ebp
mov qword [rsp + 0x88], rax
mov ebx, ebp
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call fcn.14002a530
mov r8, rsi
lea rcx, [rsp + 0xa0]
mov edx, 0x400
call fcn.140034a3c
lea edx, [rbp + 0x5c]
lea rcx, [rsp + 0xa0]
call fcn.140029b68
lea rcx, [rsp + 0xa0]
mov word [rax], bp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r14d, [rbp + 8]
cmp eax, 0xffffffff
je 0x14000a4ee
and eax, 0x410
cmp eax, 0x10
je 0x14000a4ee
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
cmove ebx, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a581
bt eax, 0xa
jb 0x14000a556
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], 0x210400
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a57b
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14000a57b
cmp dword [rsp + 0x88], 1
jbe 0x14000a57b
mov r9d, 1
mov byte [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov rcx, rdi
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
mov ebx, r14d
cmovne ebx, ebp
cmp rdi, 0xffffffffffffffff
je 0x14000a58a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.140027f90
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000ad40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x14000ad95
mov eax, 1
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
mov word [rsp + 0x50], ax
lea r8d, [rsi + 2]
mov rcx, rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000ae5b
cmp dword [rsp + 0x58], 2
jne 0x14000ae5b
test byte [rbx + 0x818], 0x40
lea r9, [rsp + 0x58]
mov eax, esi
mov qword [rsp + 0x20], rsi
setne al
lea rdx, [rsp + 0x50]
inc ax
mov r8d, 2
mov rcx, rdi
mov word [rsp + 0x50], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000ae5b
cmp dword [rsp + 0x58], 2
jne 0x14000ae5b
movzx eax, word [rbx + 0x800]
lea r9, [rsp + 0x58]
mov r8d, 2
mov word [rsp + 0x50], ax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000ae5b
cmp dword [rsp + 0x58], 2
jne 0x14000ae5b
mov r8d, dword [rbx + 0x800]
lea r9, [rsp + 0x58]
mov rdx, qword [rbx + 0x808]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000ae5b
mov eax, dword [rbx + 0x800]
cmp dword [rsp + 0x58], eax
jne 0x14000ae5b
mov rdx, rdi
mov rcx, rbx
call fcn.14000d9c0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 8
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b460
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x240], rax
test byte [rcx + 0x54], 1
mov rbx, rcx
je 0x14000b588
xor edi, edi
mov qword [rsp + 0x30], 0x11c
xor edx, edx
mov qword [rsp + 0x38], rdi
mov r8d, 0x100
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x44]
call fcn.14002a530
xor eax, eax
mov word [rsp + 0x144], di
mov r8b, 1
mov dword [rsp + 0x146], eax
lea edx, [rdi + 2]
mov word [rsp + 0x14a], ax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rdi + 2]
mov dword [rsp + 0x34], 5
mov r8, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14000b588
lea rcx, str.kernel32
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000b537
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rdi
test eax, eax
je 0x14000b56e
cmp dword [rsp + 0x20], 0
je 0x14000b56e
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b581
lea rcx, [rbx + 0x48]
call rax
test eax, eax
je 0x14000b581
or dword [rbx + 0x50], 0x40
lea rcx, [rbx + 0x58]
mov edx, 0x400
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000b5d1
mov eax, 8
jmp 0x14000b5de
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.allusersprofile
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000b5d9
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rbx + 0x58]
call fcn.14000ddc0
test eax, eax
js 0x14000b5d9
lea rcx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b5d9
or dword [rbx + 0x50], 0x20
xor eax, eax
jmp 0x14000b5de
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140027f90
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14000b6a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x802
call fcn.14002a530
xor ebx, ebx
lea rcx, str.kernel32
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14000b848
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rsi
test eax, eax
jne 0x14000b848
mov esi, ebx
mov edx, 0x400
mov qword [rsp + 0x868], rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000b785
lea r8, str.drivers
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140060b94
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rdi + 0x58]
call fcn.14000ddc0
test eax, eax
js 0x14000b785
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b890
lea rcx, str.nvldumd.dll
test esi, esi
jne 0x14000b797
lea rcx, str.nvldumdx.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b7fe
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b7fe
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.140029b68
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008bd64]
lea rcx, [rdi + 0x58]
mov word [rax], bx
call fcn.14000ddc0
test eax, eax
js 0x14000b7fe
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b7fe
mov ebx, 1
test ebx, ebx
jne 0x14000b890
lea rcx, [rsp + 0x30]
call fcn.14000a8c0
test eax, eax
jne 0x14000b841
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008bd64]
lea rcx, [rdi + 0x58]
call fcn.14000ddc0
test eax, eax
js 0x14000b841
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b890
mov eax, 1
jmp 0x14000b896
mov esi, dword [rsp + 0x20]
test esi, esi
je 0x14000b722
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b889
lea rcx, [rdi + 0x48]
call rax
test eax, eax
je 0x14000b889
or dword [rdi + 0x50], 0x40
jmp 0x14000b722
mov eax, 8
jmp 0x14000b89e
or dword [rdi + 0x50], 0x20
xor eax, eax
mov rbp, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140027f90
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000bab0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x840
mov rax, qword [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x830], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x14000bae1
call fcn.14000b460
test eax, eax
jne 0x14000bc00
lea rax, str.nvdrssel.bin
add rbx, 0x58
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, str._s_s
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000ddc0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, str.nvdrswr.lk
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000ddc0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, str.update.bin
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000ddc0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov qword [rsp + 0x20], 0
lea r8, str._s_nvdrsdb_d.bin
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000ddc0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9, rbx
mov dword [rsp + 0x20], 1
lea r8, str._s_nvdrsdb_d.bin
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000ddc0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, str.nvAppTimestamps
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000ddc0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140027f90
add rsp, 0x840
pop rbx
ret
add rcx, 0x838
jmp 0x14000bab0

Function at 0x14000bca0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x860
mov rax, qword [0x1400a7430]
xor rax, rsp
mov qword [rsp + 0x850], rax
test byte [rcx + 0x50], 0x20
mov rdi, rdx
mov rbx, rcx
jne 0x14000bcd8
call fcn.14000b460
test eax, eax
jne 0x14000bd93
lea rax, str.nvdrssel.bin
mov edx, 0x400
lea r9, [rbx + 0x58]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x50]
call fcn.14000ddc0
lea rcx, [rsp + 0x50]
call fcn.14000a410
test eax, eax
jne 0x14000bd50
mov qword [rsp + 0x30], 0
lea r8d, [rax + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000bd57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.14000b3b0
mov eax, 8
jmp 0x14000bd93
or dword [rbx + 0x50], 0x10
lea r9, [rsp + 0x40]
mov r8d, 1
mov qword [rbx + 0x20], rax
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000bd8e
cmp dword [rsp + 0x40], 1
jne 0x14000bd8e
xor eax, eax
jmp 0x14000bd93
mov eax, 0xf
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140027f90
mov rbx, qword [rsp + 0x880]
add rsp, 0x860
pop rdi
ret
Function at 0x14000bdc0
Capabilities:
Write file on windows

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

Function at 0x14000be30
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov esi, edx
mov rdi, r9
xor edx, edx
mov r14d, r8d
mov r15, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x14000beff
mov r12d, 1
mov edx, ebp
mov ecx, r12d
call fcn.140060c20
mov rbx, rax
test rax, rax
je 0x14000beff
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, r15
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000bef7
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rsp + 0x28]
lea rdx, [0x140089fd8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000bef7
mov rax, qword [rsp + 0x28]
movzx edx, word [rax + 0xa]
mov dword [rdi], 0
test r14d, r14d
jne 0x14000bedb
cmp edx, esi
jb 0x14000beea
mov rcx, rbx
mov dword [rdi], r12d
call fcn.140060c28
mov eax, r12d
jmp 0x14000bf01
cmp edx, esi
jb 0x14000beea
mov ecx, dword [rdi]
cmp edx, r14d
cmovbe ecx, r12d
mov dword [rdi], ecx
mov rcx, rbx
call fcn.140060c28
mov eax, r12d
jmp 0x14000bf01
mov rcx, rbx
call fcn.140060c28
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret