joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140086b70
Capabilities:
Get disk information

Disassembly:
sub rsp, reloc.MFC80U.DLL_Ordinal_632
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor eax, eax
movzx r8d, dx
lea rcx, [rsp + 0x50]
lea rdx, [0x1402e0030]
mov word [rsp + 0x50], 0
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x60], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x162]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x160], 0
call sub.ntdll.dll_memset
mov dword [rsp + 0x38], 0x80
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov r8d, 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rdx, [0x1402e4330]
lea rcx, [rsp + 0x60]
mov r8d, 4
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
jne 0x140086c6b
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140161080
add rsp, reloc.MFC80U.DLL_Ordinal_632
ret
mov qword [rsp + 0x280], rbx
mov ebx, 5
lea rdx, [0x1402e4320]
lea rcx, [rsp + 0x60]
mov r8, rbx
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
je 0x140086d71
lea rdx, [0x1402e5c90]
lea rcx, [rsp + 0x60]
mov r8, rbx
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
jne 0x140086cb8
mov eax, 4
jmp 0x140086d71
lea rdx, str.REFS
lea rcx, [rsp + 0x60]
mov r8, rbx
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
jne 0x140086cdb
mov eax, 9
jmp 0x140086d71
lea rdx, [0x1402e5c70]
lea rcx, [rsp + 0x60]
mov r8d, 4
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
jne 0x140086cfe
mov eax, 6
jmp 0x140086d71
lea rdx, [0x1402e5c60]
lea rcx, [rsp + 0x60]
mov r8d, 4
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
jne 0x140086d21
mov eax, 7
jmp 0x140086d71
lea rdx, [0x1402e5c50]
lea rcx, [rsp + 0x60]
mov r8d, 4
call qword [sym.imp.ntdll.dll__wcsnicmp]
test eax, eax
jne 0x140086d44
mov eax, 8
jmp 0x140086d71
xor eax, eax
mov qword [rsp + 0x270], rdi
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x270]
mov eax, 0xc
not rcx
cmp rcx, 1
cmove eax, ebx
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140161080
add rsp, reloc.MFC80U.DLL_Ordinal_632
ret
Function at 0x14009a450
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x350
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r12, rdx
mov rbx, rcx
call fcn.140049400
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0xfe
mov rbp, rax
mov word [rsp + 0x30], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x132]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x130], 0
call sub.ntdll.dll_memset
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x30]
mov rsi, qword [rbp]
mov rcx, rbx
mov rdi, rax
mov rax, qword [rbx]
call qword [rax + 0x38]
mov rcx, rdi
mov rbx, rax
mov rax, qword [rdi]
call qword [rax + 0x50]
lea rdx, [rsp + 0x30]
mov r8d, 0x80
mov rcx, rbp
mov r9d, eax
mov qword [rsp + 0x20], rbx
call qword [rsi + 0x58]
test eax, eax
je 0x14009a585
lea r8, [rsp + 0x30]
lea rdx, [0x1402e2ad0]
lea rcx, [rsp + 0x130]
mov r9, r12
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x130]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov edi, eax
jne 0x14009a58a
lea rcx, str...helper.cpp
mov edx, 0x1fa
call fcn.140099de0
mov rbx, rax
call fcn.140049470
lea r8, str.DeleteFile_tcsFilePath_
mov r10, qword [rax]
lea rdx, str._s_return_code:_0x_08X___s.
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [r10 + 0x10]
mov eax, edi
jmp 0x14009a58a
mov eax, 1
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14009aab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ebx, ebx
test eax, eax
mov esi, ebx
setne sil
test esi, esi
jne 0x14009ac0f
lea rcx, [0x1404341a0]
xor edx, edx
mov r8d, 0x80
call sub.ntdll.dll_memset
lea edx, [rbx + 0x5c]
lea rcx, str...helper.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14009abe7
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x30]
mov r8d, 0x53e
mov byte [rsp + 0x30], bl
mov qword [rsp + 0x31], rax
mov word [rsp + 0x39], ax
mov byte [rsp + 0x3b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
lea rcx, [0x1404341a0]
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14009aba0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1404341a0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x30]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14009abd0
lea rbx, [0x1404341a0]
call fcn.140049470
lea r8, [0x1402e9800]
lea rdx, str._s_return_code:_0x_08X___s.
mov rdi, qword [rax]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [rdi + 0x10]
mov eax, esi
jmp 0x14009ac7c
lea r8, [rsp + 0x40]
lea rdx, [0x1402e97d8]
lea rcx, [rsp + 0x250]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
test ebx, ebx
jne 0x14009ac7a
lea rcx, str...helper.cpp
mov edx, 0x540
call fcn.140099de0
mov rdi, rax
call fcn.140049470
lea r8, str.GetFileAttributes_tszMark__INVALID_FILE_ATTRIBUTES
mov r10, qword [rax]
lea rdx, str._s_return_code:_0x_08X___s.
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [r10 + 0x10]
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14009bfb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.14009be20
test eax, eax
jne 0x14009c0ba
call fcn.140049470
lea rbx, [0x140434220]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x14009c023
xor ebx, ebx
jmp 0x14009c0a0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14009c060
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14009c090
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14009c13a
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009c138
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x14009c138
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009cd80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov r12, r9
mov r9d, 1
mov rbp, rcx
lea r8, [rsp + 0x34]
lea edx, [r9 - 0x1d]
mov rcx, rsi
mov dword [rsp + 0x34], 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x14009ce9a
call fcn.140049470
lea rbx, [0x140434220]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str..._bcd.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x14009ce08
xor ebx, ebx
jmp 0x14009ce80
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x40]
mov r8d, 0x1e7
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x41], rax
mov word [rsp + 0x49], ax
mov byte [rsp + 0x4b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14009ce40
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x40]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14009ce70
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_SetFilePointer_in_UpdateBcdFile.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14009cf80
mov eax, dword [rbp]
xor ebx, ebx
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea r8d, [rbx + 8]
mov rcx, rsi
imul rax, qword [rsp + 0xb8]
mov edi, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14009cef6
cmp dword [rsp + 0x30], 8
jne 0x14009cef6
lea r9d, [rbx + 1]
lea edx, [rbx + 4]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x14009cf7e
mov r9d, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xf]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0xb0]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14009cf79
cmp dword [rsp + 0x30], 4
jne 0x14009cf79
lea r9d, [rax + 1]
lea r8, [rsp + 0x34]
lea edx, [rax - 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [rbp]
lea r9, [rsp + 0x30]
imul rdx, r12
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x38]
mov r8d, 8
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14009cf7e
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140161080
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009cfa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov r9d, 1
mov rbp, rcx
lea r8, [rsp + 0x34]
lea edx, [r9 - 0x41]
mov rcx, rsi
mov dword [rsp + 0x34], 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x14009d0ba
call fcn.140049470
lea rbx, [0x140434220]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str..._bcd.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x14009d026
xor ebx, ebx
jmp 0x14009d0a0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x38]
mov r8d, Ordinal_541
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x39], rax
mov word [rsp + 0x41], ax
mov byte [rsp + 0x43], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14009d060
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x38]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14009d090
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_SetFilePointer_in_UpdateBcdFile.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14009d165
mov eax, dword [rbp]
xor ebx, ebx
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x48]
lea r8d, [rbx + 8]
mov rcx, rsi
imul rax, qword [rsp + 0xa8]
mov edi, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14009d105
cmp dword [rsp + 0x30], 8
jne 0x14009d105
mov edx, 0x80
jmp 0x14009d151
mov r9d, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xf]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14009d147
cmp dword [rsp + 0x30], 4
je 0x14009d14c
mov edi, 1
mov edx, 0x44
mov r9d, 1
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009d9e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x450
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1095], rax
lea rax, [rsp + 0x30]
mov rdi, r9
mov ebp, r8d
mov rsi, rcx
xor r12d, r12d
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x30], r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009da41
xor eax, eax
jmp 0x14009db13
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x40], r12b
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, str.Element
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009daf6
test rdi, rdi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x78], r12
je 0x14009daa7
mov eax, dword [rsi]
imul rax, rdi
jmp 0x14009daba
mov rcx, qword [rsp + 0x4a0]
test rcx, rcx
je 0x14009dabf
mov eax, dword [rsi]
imul rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea rdx, str.Element
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r12d
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14009db11
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140161080
add rsp, 0x450
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009db40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r12
sub rsp, 0x450
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1095], rax
lea rax, [rsp + 0x38]
mov rbp, r9
mov rsi, r8
xor r12d, r12d
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x38], r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14009dba0
xor eax, eax
jmp 0x14009dce8
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x40], r12b
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
cmp dword [rsp + 0x490], r12d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x400
jle 0x14009dc50
lea rdx, str.FirmwareVariable
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009dccb
movsxd rcx, dword [rsp + 0x490]
mov rax, qword [rsi]
lea rdx, str.FirmwareVariable
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsi + 8]
mov r9d, 3
mov qword [rsp + rcx + 0x48], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14009dccb
mov ebx, r12d
jmp 0x14009dccb
lea rdx, str.Element
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009dccb
mov eax, dword [rsi]
lea rcx, [rsp + 0x60]
lea rdx, str.Element
mov dword [rcx], eax
mov eax, dword [rsi + 4]
mov r9d, 3
mov dword [rcx + 4], eax
mov eax, dword [rsi + 8]
xor r8d, r8d
mov dword [rcx + 8], eax
mov eax, dword [rsi + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rbp]
lea rcx, [rsp + 0x78]
mov dword [rcx], eax
mov eax, dword [rbp + 4]
mov dword [rcx + 4], eax
mov eax, dword [rbp + 8]
mov dword [rcx + 8], eax
mov eax, dword [rbp + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, r12d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14009dce6
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop r12
pop rsi
pop rbp
ret
Function at 0x14009e720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov rsi, r9
mov ebp, r8d
mov r12, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13, qword [rsp + 0xc8]
mov r14d, dword [rsp + 0xc0]
xor eax, eax
xor r15d, r15d
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x49], eax
mov word [rsp + 0x4d], ax
mov byte [rsp + 0x4f], al
movabs rdi, 0x6300650052005c
nop
nop
nop
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov r8d, 8
mov rcx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009e90d
cmp qword [rsp + 0x48], rdi
jne 0x14009e902
mov r9d, 1
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [r9 - 0x41]
mov dword [rsp + 0x30], 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x14009e902
xor eax, eax
lea r9, [rsp + 0x3c]
lea rdx, [rsp + 0x50]
lea r8d, [rax + 8]
mov rcx, rbx
mov byte [rsp + 0x50], r15b
mov dword [rsp + 0x51], eax
mov word [rsp + 0x55], ax
mov byte [rsp + 0x57], al
mov dword [rsp + 0x3c], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009e902
mov rax, qword [rsp + 0x50]
mov ecx, dword [r12]
cqo
idiv rcx
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14009e8f8
mov r9d, 1
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [r9 + 0xf]
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x14009e8f8
xor eax, eax
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x34]
lea r8d, [rax + 4]
mov rcx, rbx
mov byte [rsp + 0x34], r15b
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009e8f8
mov r9d, 1
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [r9 + 0x23]
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r11d, dword [rsp + 0x34]
cmp r11d, 0xffffffff
je 0x14009e8f8
cmp ebp, r11d
jne 0x14009e8f8
cmp rsi, rdi
jne 0x14009e8f8
mov r9, rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r14d
call fcn.14009cfa0
movabs rdi, 0x6300650052005c
cmp dword [rsp + 0x38], r15d
jne 0x14009e7a0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a1240
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov rdx, r8
mov rbp, r9
mov rsi, rcx
call fcn.1400a10b0
test eax, eax
jne 0x1400a134a
call fcn.140049470
lea rbx, [0x1404342a0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str.....IncludeDiskIO.h
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400a12b3
xor ebx, ebx
jmp 0x1400a1330
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400a12f0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400a1320
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400a13ca
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rsi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, r12
cmove edi, ecx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
imul ebp, edi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a13c8
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x1400a13c8
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret