joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004550
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 0x140004717
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140004717
mov qword [rsp + 0x30], rbp
mov rcx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400046e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1400045be
cmp eax, 0xb7
jmp 0x1400046f3
inc r14
mov eax, 2
mul r14
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.14002795c
mov rbp, rax
test rax, rax
je 0x1400046fa
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.14003451c
mov eax, 2
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.14002795c
mov rdi, rax
test rax, rax
je 0x1400046bf
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.14003451c
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.14003451c
xor r8d, r8d
lea rdx, [0x140088fc8]
mov rcx, rbp
call fcn.140047f20
test rax, rax
je 0x14000469e
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 0x140004688
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000469e
xor r8d, r8d
lea rdx, [0x140088fc8]
xor ecx, ecx
call fcn.140047f20
test rax, rax
jne 0x140004660
mov rdx, rsi
mov rcx, rdi
call fcn.14003559c
mov ecx, ebx
test eax, eax
mov ebx, 1
cmove ecx, ebx
mov ebx, ecx
mov rcx, rdi
call fcn.140027964
mov rcx, rbp
call fcn.140027964
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 0x1400046f5
test eax, eax
jne 0x1400046fa
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 0x140009ea0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x8a0
mov rax, qword [0x1400a6410]
xor rax, rsp
mov qword [rsp + 0x890], rax
xor eax, eax
mov rbp, rcx
xor r14d, r14d
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x60], rax
xor edx, edx
mov qword [rsp + 0x68], rax
mov r8d, 0x800
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov edi, r14d
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.14002a010
mov r8, rbp
lea rcx, [rsp + 0x90]
mov edx, 0x400
call fcn.14003451c
lea edx, [r14 + 0x5c]
lea rcx, [rsp + 0x90]
call fcn.140029650
lea rcx, [rsp + 0x90]
mov word [rax], r14w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009f74
and eax, 0x410
cmp eax, 0x10
je 0x140009f74
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov ecx, 8
cmove edi, ecx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a036
mov qword [rsp + 0x8d0], rsi
bt eax, 0xa
jb 0x14000a001
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 0x200400
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a010
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x8c8], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ebx, r14d
mov rcx, rsi
test eax, eax
cmovne ebx, dword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
mov rbx, qword [rsp + 0x8c8]
jbe 0x14000a010
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
cmove edi, r14d
mov rsi, qword [rsp + 0x8d0]
mov eax, edi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140027a80
add rsp, 0x8a0
pop r14
pop rdi
pop rbp
ret
mov eax, edi
jmp 0x14000a01a
Function at 0x14000a7c0
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 0x14000a815
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 0x14000a8db
cmp dword [rsp + 0x58], 2
jne 0x14000a8db
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 0x14000a8db
cmp dword [rsp + 0x58], 2
jne 0x14000a8db
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 0x14000a8db
cmp dword [rsp + 0x58], 2
jne 0x14000a8db
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 0x14000a8db
mov eax, dword [rbx + 0x800]
cmp dword [rsp + 0x58], eax
jne 0x14000a8db
mov rdx, rdi
mov rcx, rbx
call fcn.14000d440
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 0x14000aee0
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 [0x1400a6410]
xor rax, rsp
mov qword [rsp + 0x240], rax
test byte [rcx + 0x54], 1
mov rbx, rcx
je 0x14000b008
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.14002a010
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 0x14000b008
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 0x14000afb7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rdi
test eax, eax
je 0x14000afee
cmp dword [rsp + 0x20], 0
je 0x14000afee
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 0x14000b001
lea rcx, [rbx + 0x48]
call rax
test eax, eax
je 0x14000b001
or dword [rbx + 0x50], 0x40
lea rcx, [rbx + 0x58]
mov edx, 0x400
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000b051
mov eax, 8
jmp 0x14000b05e
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.allusersprofile
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000b059
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rbx + 0x58]
call fcn.14000d840
test eax, eax
js 0x14000b059
lea rcx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b059
or dword [rbx + 0x50], 0x20
xor eax, eax
jmp 0x14000b05e
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140027a80
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14000b120
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 [0x1400a6410]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x802
call fcn.14002a010
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 0x14000b2c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rsi
test eax, eax
jne 0x14000b2c8
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 0x14000b205
lea r8, str.drivers
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140060674
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rdi + 0x58]
call fcn.14000d840
test eax, eax
js 0x14000b205
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b310
lea rcx, str.nvldumd.dll
test esi, esi
jne 0x14000b217
lea rcx, str.nvldumdx.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b27e
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b27e
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.140029650
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008ad54]
lea rcx, [rdi + 0x58]
mov word [rax], bx
call fcn.14000d840
test eax, eax
js 0x14000b27e
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b27e
mov ebx, 1
test ebx, ebx
jne 0x14000b310
lea rcx, [rsp + 0x30]
call fcn.14000a340
test eax, eax
jne 0x14000b2c1
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008ad54]
lea rcx, [rdi + 0x58]
call fcn.14000d840
test eax, eax
js 0x14000b2c1
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b310
mov eax, 1
jmp 0x14000b316
mov esi, dword [rsp + 0x20]
test esi, esi
je 0x14000b1a2
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 0x14000b309
lea rcx, [rdi + 0x48]
call rax
test eax, eax
je 0x14000b309
or dword [rdi + 0x50], 0x40
jmp 0x14000b1a2
mov eax, 8
jmp 0x14000b31e
or dword [rdi + 0x50], 0x20
xor eax, eax
mov rbp, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140027a80
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000b530
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x840
mov rax, qword [0x1400a6410]
xor rax, rsp
mov qword [rsp + 0x830], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x14000b561
call fcn.14000aee0
test eax, eax
jne 0x14000b680
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.14000d840
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.14000d840
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.14000d840
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.14000d840
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.14000d840
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.14000d840
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140027a80
add rsp, 0x840
pop rbx
ret
add rcx, 0x838
jmp 0x14000b530

Function at 0x14000b720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x860
mov rax, qword [0x1400a6410]
xor rax, rsp
mov qword [rsp + 0x850], rax
test byte [rcx + 0x50], 0x20
mov rdi, rdx
mov rbx, rcx
jne 0x14000b758
call fcn.14000aee0
test eax, eax
jne 0x14000b813
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.14000d840
lea rcx, [rsp + 0x50]
call fcn.140009ea0
test eax, eax
jne 0x14000b7d0
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 0x14000b7d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.14000ae30
mov eax, 8
jmp 0x14000b813
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 0x14000b80e
cmp dword [rsp + 0x40], 1
jne 0x14000b80e
xor eax, eax
jmp 0x14000b813
mov eax, 0xf
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140027a80
mov rbx, qword [rsp + 0x880]
add rsp, 0x860
pop rdi
ret
Function at 0x14000b840
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 0x14000b899
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 0x14000b899
cmp dword [rsp + 0x40], 1
jne 0x14000b899
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.14000ae30
mov eax, 8
add rsp, 0x30
pop rbx
ret

Function at 0x14000b8b0
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 0x14000b97f
mov r12d, 1
mov edx, ebp
mov ecx, r12d
call fcn.140060700
mov rbx, rax
test rax, rax
je 0x14000b97f
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, r15
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000b977
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rsp + 0x28]
lea rdx, [0x140088fc8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000b977
mov rax, qword [rsp + 0x28]
movzx edx, word [rax + 0xa]
mov dword [rdi], 0
test r14d, r14d
jne 0x14000b95b
cmp edx, esi
jb 0x14000b96a
mov rcx, rbx
mov dword [rdi], r12d
call fcn.140060708
mov eax, r12d
jmp 0x14000b981
cmp edx, esi
jb 0x14000b96a
mov ecx, dword [rdi]
cmp edx, r14d
cmovbe ecx, r12d
mov dword [rdi], ecx
mov rcx, rbx
call fcn.140060708
mov eax, r12d
jmp 0x14000b981
mov rcx, rbx
call fcn.140060708
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
Function at 0x14000bc70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1060
call fcn.140027ac0
sub rsp, rax
mov rax, qword [0x1400a6410]
xor rax, rsp
mov qword [rsp + 0x1050], rax
test byte [rcx + 0x50], 0x20
mov rdi, rcx
jne 0x14000bcb0
call fcn.14000aee0
test eax, eax
jne 0x14000bdea
lea rax, str.nvdrssel.bin
mov edx, 0x400
lea rbx, [rdi + 0x58]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str._s_s
lea rcx, [rsp + 0x50]
call fcn.14000d840
lea rcx, [rsp + 0x50]
call fcn.140009ea0
test eax, eax
jne 0x14000bd29
xor esi, esi
lea r8d, [rax + 3]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000bd33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call fcn.14000ae30
mov eax, 8
jmp 0x14000bdea
or dword [rdi + 0x50], 0x10
lea r9, [rsp + 0x44]
mov r8d, 1
mov qword [rdi + 0x20], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000bde5
cmp dword [rsp + 0x44], 1
jne 0x14000bde5
movzx eax, byte [rsp + 0x40]
lea r8, str._s_nvdrsdb_d.bin
mov r9, rbx
mov dword [rsp + 0x20], eax
mov edx, 0x400
lea rcx, [rsp + 0x850]
call fcn.14000d840
lea rcx, [rsp + 0x850]
call fcn.140009ea0
test eax, eax
jne 0x14000bd29
lea rdx, [rsp + 0x850]
mov rcx, rdi
call fcn.14000be10
test eax, eax
jne 0x14000bdea
test rbx, rbx
je 0x14000bde1
lea rdx, str.SYSTEM_DB
mov ecx, esi
sub rdx, rbx
cmp ecx, 0x3ff
jae 0x14000bdde
movzx eax, word [rdx + rbx]
inc ecx
mov word [rbx], ax
add rbx, 2
cmp word [rdx + rbx], si
jne 0x14000bdc3
mov word [rbx], si
xor eax, eax
jmp 0x14000bdea
mov eax, 0xf
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140027a80
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000be10
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 ebx, ebp
mov rdi, rcx
nop
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000beae
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14000be8c
cmp ebx, 0xbb8
jae 0x14000be8c
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x3c
cmp ebx, 0xbb8
jb 0x14000be30
mov rcx, rdi
call fcn.14000ae30
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 [rdi + 0x50], 8
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000be8c
cmp dword [rsp + 0x64], ebp
jne 0x14000be8c
mov rcx, qword [rdi + 0x28]
xor r9d, r9d
mov ebx, dword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14000be8c
or dword [rdi + 0x50], 4
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov rcx, rax
mov qword [rdi + 0x30], rax
mov qword [rsp + 0x20], rbx
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi], rax
test rax, rax
je 0x14000be8c
mov rcx, qword [rsp + 0x60]
mov r8d, 0x400
mov dword [rdi + 8], ecx
mov rdx, rsi
mov dword [rdi + 0xc], ecx
lea rcx, [rdi + 0x58]
mov qword [rdi + 0x10], rax
call fcn.14000d380
xor eax, eax
jmp 0x14000be99
Function at 0x14000c190
Capabilities:
Clear file content
Persist via application shimming
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x868
mov rax, qword [0x1400a6410]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea rbx, [rcx + 0x58]
movzx eax, dl
mov rsi, rcx
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str._s_nvdrsdb_d.bin
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14000d840
lea rcx, [rsp + 0x50]
call fcn.140009ea0
test eax, eax
je 0x14000c1eb
mov eax, 8
jmp 0x14000c27a
mov qword [rsp + 0x890], rbp
xor ebp, ebp
mov qword [rsp + 0x860], rdi
mov edi, ebp
nop
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000c294
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14000c25d
cmp edi, 0xbb8
jae 0x14000c25d
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3c
cmp edi, 0xbb8
jb 0x14000c200
mov rcx, rsi
call fcn.14000ae30
mov eax, 8
mov rbp, qword [rsp + 0x890]
mov rdi, qword [rsp + 0x860]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140027a80
add rsp, 0x868
pop rsi
pop rbx
ret
mov r8d, dword [rsi + 0xc]
lea r9, [rsp + 0x40]
mov rdx, qword [rsi]
mov rcx, rax
or dword [rsi + 0x50], 8
mov qword [rsi + 0x28], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
je 0x14000c2c6
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 0x14000c25d
mov eax, dword [rsi + 0xc]
cmp dword [rsp + 0x40], eax
jne 0x14000c25d
mov rcx, rbx
test rbx, rbx
je 0x14000c322
mov edx, ebp
cmp word [rsp + 0x50], dx
je 0x14000c31f
lea r8, [rsp + 0x50]
sub r8, rbx
cmp edx, 0x3ff
jae 0x14000c31f
movzx eax, word [r8 + rcx]
inc edx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], bp
jne 0x14000c302
mov word [rcx], bp
lea rcx, str.SYSTEM_DB
test rbx, rbx
je 0x14000c350
mov edx, ebp
cmp edx, 0x3ff
jae 0x14000c34d
movzx eax, word [rcx]
inc edx
mov word [rbx], ax
add rcx, 2
add rbx, 2
cmp word [rcx], bp
jne 0x14000c330
mov word [rbx], bp
xor eax, eax
jmp 0x14000c26a