joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007200
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140007261
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140007220
mov ecx, dword [r9]
jmp 0x14000734b
cmp ecx, 0x4e0
jb 0x14000734b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140007280
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400072d0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140007398
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400073d2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400073d7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140007420
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a5e0]
cmp byte [rcx + rax], 0
je 0x140007420
dec r8
sub rdx, 1
jne 0x140007406
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000855c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400085a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400085a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400085a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400085a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400085a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400085a8
xor al, al
add rsp, 0x28
ret
Function at 0x140003910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000395e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x38]
mov rcx, rax
call rdi
test eax, eax
je 0x1400039a5
cmp dword [rsp + 0x38], 0
je 0x1400039a5
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Wow64DisableWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140003997
mov eax, 8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rbx + 0x48]
call rax
test eax, eax
je 0x140003987
or dword [rbx + 0x50], 0x40
lea rcx, [rbx + 0x58]
mov edx, 0x200
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140003987
or dword [rbx + 0x50], 0x20
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140003e20
Capabilities:
Check if file exists
Get file attributes
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
lea rdx, [rsp + 0x40]
lea rcx, str.allusersprofile
mov r8d, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140003e91
lea r9, [rsp + 0x40]
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rdi + 0x58]
mov edx, 0x200
call fcn.140003d00
test eax, eax
js 0x140003e91
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140003fff
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003f4a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.Common_AppData
xor r8d, r8d
mov dword [rsp + 0x34], 0x20a
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003f37
cmp dword [rsp + 0x30], 1
jne 0x140003f37
lea r9, [rsp + 0x40]
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rdi + 0x58]
mov edx, 0x200
call fcn.140003d00
test eax, eax
js 0x140003f35
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003f35
mov ebx, 1
jmp 0x140003f37
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140003fff
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004007
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.NVDRS_PATH
xor r8d, r8d
mov dword [rsp + 0x30], 0x20a
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003ff0
cmp dword [rsp + 0x34], 1
jne 0x140003ff0
lea r9, [rsp + 0x40]
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rdi + 0x58]
mov edx, 0x200
call fcn.140003d00
test eax, eax
js 0x140003fee
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003fee
mov ebx, 1
jmp 0x140003ff0
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140004007
or dword [rdi + 0x50], 0x20
xor eax, eax
jmp 0x14000400c
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400167a0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140004030
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x140], rax
test byte [rcx + 0x54], 1
mov rbx, rcx
je 0x140004087
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140004080
cmp dword [rsp + 0x24], 5
jne 0x140004087
mov rcx, rbx
call fcn.140003910
test eax, eax
je 0x140004093
jmp 0x140004095
mov eax, 8
jmp 0x140004095
mov rcx, rbx
call fcn.140003e20
test eax, eax
jne 0x140004095
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x150
pop rbx
ret
Function at 0x1400040b0
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rcx
lea rcx, str.kernel32
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x140004116
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call rsi
test eax, eax
je 0x14000415f
cmp dword [rsp + 0x30], ebx
je 0x14000415f
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Wow64DisableWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140004148
mov eax, 8
jmp 0x14000426e
lea rcx, [rdi + 0x48]
call rax
test eax, eax
je 0x14000413e
or dword [rdi + 0x50], 0x40
lea rcx, str.ProgramW6432
jmp 0x140004166
lea rcx, str.ProgramFiles
lea rdx, [rsp + 0x40]
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400041ac
lea r9, [rsp + 0x40]
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rdi + 0x58]
mov edx, 0x200
call fcn.140003d00
test eax, eax
js 0x1400041ac
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140004261
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004269
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.NVDRS_GOLD_PATH
xor r8d, r8d
mov dword [rsp + 0x30], 0x402
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004252
cmp dword [rsp + 0x34], 1
jne 0x140004252
lea r9, [rsp + 0x40]
lea r8, str._sNVIDIA_CorporationDrs
lea rcx, [rdi + 0x58]
mov edx, 0x200
call fcn.140003d00
test eax, eax
js 0x140004250
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004250
mov ebx, 1
jmp 0x140004252
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140004269
or dword [rdi + 0x50], 0x20
xor eax, eax
jmp 0x14000426e
mov eax, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400167a0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400043e0
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 0x140004439
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 0x140004439
cmp dword [rsp + 0x40], 1
jne 0x140004439
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.140003b50
mov eax, 8
add rsp, 0x30
pop rbx
ret

Function at 0x140004450
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 0x1400044ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400044cd
cmp eax, 2
je 0x1400044cd
cmp edi, 0xbb8
jae 0x1400044cd
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3c
cmp edi, 0xbb8
jb 0x140004470
mov rcx, rsi
call fcn.140003b50
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 0x140004521
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 0x1400044cd
mov eax, dword [rsi + 0xc]
cmp dword [rsp + 0x60], eax
jne 0x1400044cd
lea rcx, [rsi + 0x58]
test rcx, rcx
je 0x140004577
test rbx, rbx
je 0x140004577
mov edx, ebp
cmp word [rbx], dx
je 0x140004574
sub rbx, rcx
cmp edx, 0x200
ja 0x140004574
movzx eax, word [rbx + rcx]
add rcx, 2
inc edx
mov word [rcx - 2], ax
cmp word [rbx + rcx], bp
jne 0x140004558
mov word [rcx], bp
xor eax, eax
jmp 0x1400044da
Function at 0x140004580
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x430], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x1400045b1
call fcn.140004030
test eax, eax
jne 0x1400046a0
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.140003d00
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.140003d00
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.140003d00
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.140003d00
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.140003d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x440
pop rbx
ret
add rcx, 0x438
jmp 0x140004580

Function at 0x1400046c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x450], rax
test byte [rcx + 0x50], 0x20
mov rdi, rdx
mov rbx, rcx
jne 0x1400046f8
call fcn.140004030
test eax, eax
jne 0x1400047a5
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.140003d00
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 0x140004769
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140003b50
mov eax, 8
jmp 0x1400047a5
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 0x1400047a0
cmp dword [rsp + 0x40], 1
jne 0x1400047a0
xor eax, eax
jmp 0x1400047a5
mov eax, 0xf
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400167a0
mov rbx, qword [rsp + 0x480]
add rsp, 0x460
pop rdi
ret
Function at 0x1400047d0
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 0x140004870
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000484e
cmp eax, 2
je 0x14000484e
cmp edi, 0xbb8
jae 0x14000484e
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3c
cmp edi, 0xbb8
jb 0x1400047f0
mov rcx, rbx
call fcn.140003b50
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 0x14000484e
cmp dword [rsp + 0x64], ebp
jne 0x14000484e
mov edx, dword [rsp + 0x60]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x14000484e
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.140003630
xor eax, eax
jmp 0x14000485b
Function at 0x1400093c0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x430], rax
test byte [rcx + 0x50], 0x20
mov rbx, rcx
jne 0x1400045b1
call fcn.140004030
test eax, eax
jne 0x1400046a0
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.140003d00
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.140003d00
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.140003d00
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.140003d00
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.140003d00
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x440
pop rbx
ret
add rcx, 0x438
jmp 0x140004580

Function at 0x14000a7b0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, dword [rcx + 8]
lea r8, [rcx + 0x10]
shr r9d, 1
je 0x14000a7e9
lea rcx, [0x140035100]
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 0x14000a7d0
xor eax, eax
ret

Function at 0x14000aaf0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, dword [rcx + 8]
mov r8, qword [rcx + 0x10]
shr r9d, 1
je 0x14000ab29
lea rcx, [0x140035100]
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 0x14000ab10
xor eax, eax
ret
Function at 0x14000c1d0
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 0x14000c206
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 0x14000c236
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 0x14000c220
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 0x14000c28c
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.140012e90
test al, al
jne 0x14000c2bd
nop dword [rax + rax]
mov eax, dword [rbx + 0x18]
shr eax, 0x1f
test al, 1
jne 0x14000c274
mov rbx, qword [rbx + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.140012e90
test al, al
je 0x14000c2a0
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c8a0
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 0x14000c91c
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 0x14000c8f0
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.140013440
mov rbx, rax
mov qword [rsp + 0x80], rax
mov eax, edi
shl rax, 5
mov rcx, qword [rbp]
test byte [rax + rcx], 2
jne 0x14000c979
lea rdx, [rax + rcx + 8]
mov rcx, rbx
call fcn.140012ec0
test al, al
je 0x14000c98f
mov rcx, rbx
call fcn.140013000
add edi, esi
and edi, r13d
inc esi
cmp edi, r15d
je 0x14000c9da
jmp 0x14000c940
mov ecx, edi
shl rcx, 5
mov rdx, qword [rbp]
test byte [rcx + rdx], 1
je 0x14000c9b7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov dword [rcx + rdx + 0x18], eax
mov rcx, rbx
call fcn.140013000
jmp 0x14000c9c5
mov rcx, rbx
call fcn.140013000
mov r14d, 1
or ebx, 0xffffffff
test r14d, r14d
cmove ebx, edi
mov rcx, r12
call fcn.140013000
mov eax, ebx
jmp 0x14000c9fe
mov ecx, dword [rbp + 0x10]
lea eax, [rcx + 1]
mov dword [rbp + 0x10], eax
cmp ecx, 4
jbe 0x14000c9f4
mov rcx, rbp
call fcn.14000f4b0
mov dword [rbp + 0x10], r14d
mov rcx, r12
call fcn.140013000
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 0x14000ca20
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 0x14000ca8c
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 0x14000ca64
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.140013440
mov rbp, rax
mov qword [rsp + 0x80], rax
mov eax, edi
shl rax, 5
mov rcx, qword [r12]
test byte [rax + rcx], 1
je 0x14000cb46
lea rdx, [rax + rcx + 8]
mov rcx, rbp
call fcn.140012e90
test al, al
jne 0x14000cb2c
mov rcx, rbp
call fcn.140013000
add edi, ebx
and edi, r14d
inc ebx
cmp edi, r15d
jne 0x14000cab0
mov ecx, dword [r12 + 0x10]
lea eax, [rcx + 1]
mov dword [r12 + 0x10], eax
cmp ecx, 4
jbe 0x14000cb20
mov rcx, r12
call fcn.14000f4b0
mov dword [r12 + 0x10], 0
mov rcx, r13
call fcn.140013000
xor eax, eax
jmp 0x14000cbaa
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 0x14000cb97
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.140013030
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.140013000
nop
mov rcx, r13
call fcn.140013000
mov eax, edi
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret