joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024140
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov dword [rsp + 0x30], r8d
cmp qword [rdx + 0x20], 8
jb 0x140024173
mov rdx, qword [rdx + 8]
jmp 0x140024177
add rdx, 8
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400241b5
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x1400241c0
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140161080
add rsp, 0x50
pop rbx
ret

Function at 0x140024200
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2060
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0x52]
call sub.ntdll.dll_memset
mov dword [rsp + 0x34], 0x2000
cmp qword [rbx + 0x20], 8
jb 0x140024270
mov rdx, qword [rbx + 8]
jmp 0x140024274
lea rdx, [rbx + 8]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400242b3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x1400242e1
cmp dword [rsp + 0x30], 1
je 0x1400242c7
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
xor al, al
jmp 0x1400242e1
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140161080
add rsp, 0x2060
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002a140
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2060
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov ebx, r8d
mov rdi, rdx
lea r8, [rsp + 0x38]
lea rdx, str.SYSTEMSetup
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14002a1a0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x14002a247
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x1ffe
mov dword [rsp + 0x40], 0
mov word [rsp + 0x50], 0
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.SystemPartition
xor r8d, r8d
mov dword [rsp + 0x30], 0x2000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14002a212
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14002a247
cmp dword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x38]
jne 0x14002a208
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, dword [rsp + 0x30]
jb 0x14002a199
lea r9, [rsp + 0x50]
lea r8, [0x1403b5c74]
mov rdx, rbx
mov rcx, rdi
call fcn.140013b00
mov al, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x2070]
add rsp, 0x2060
pop rdi
ret
Function at 0x1400496c0
Capabilities:
Manipulate boot configuration

Disassembly:
push rbx
sub rsp, 0x5d0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
mov rbx, rcx
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0xc0], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0xc0]
mov r8, rbx
mov edx, 0x80
call qword [sym.imp.MSVCR80.dll_wcscpy_s]
lea rcx, [rsp + 0x1c2]
xor edx, edx
mov r8d, Ordinal_512
mov word [rsp + 0x1c0], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x3c2]
xor edx, edx
mov r8d, Ordinal_512
mov word [rsp + 0x3c0], 0
call sub.ntdll.dll_memset
lea r8, [rsp + 0xc0]
lea rdx, [0x1402dfd70]
lea rcx, [rsp + 0x1c0]
call fcn.140002b60
lea r8, [rsp + 0xc0]
lea rdx, str._s_bootmgr
lea rcx, [rsp + 0x3c0]
call fcn.140002b60
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor ebx, ebx
lea rax, [rsp + 0x98]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x60]
mov edx, 0x80100000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x80], 0x40
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ntdll.dll_ZwCreateFile]
test eax, eax
js 0x140049853
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, 1
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x5d0
pop rbx
ret
cmp eax, 0xc0000043
je 0x140049835
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x98]
mov dword [rsp + 0x30], 3
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x60]
mov edx, 0x80100000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x80], 0x40
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ntdll.dll_ZwCreateFile]
test eax, eax
jns 0x14004982a
cmp eax, 0xc0000043
je 0x140049835
xor eax, eax
jmp 0x14004983a
Function at 0x14004ee10
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x858
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2114], rax
lea r8, [rsp + 0x30]
lea rdx, str.SystemCurrentControlSetControl
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14004eeb3
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], ax
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
lea rdx, str.SystemStartOptions
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x3c], 0x400
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14004eecd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140161080
add rsp, 0x858
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll__wcslwr]
lea rdx, str.winpe
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
jne 0x14004ef0c
lea rdx, [0x1402e0870]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
je 0x14004eeb3
mov eax, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140161080
add rsp, 0x858
ret
Function at 0x140051000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
mov eax, 0x1050
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_4162], rax
lea rcx, [rsp + 0x442]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + Ordinal_1095], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x40], 0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x440]
mov r8d, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x440]
mov dx, 0x5c
call qword [sym.imp.ntdll.dll_wcsrchr]
test rax, rax
je 0x14005108b
mov word [rax], 0
xor ecx, ecx
nop
movzx eax, word [rsp + rcx + 0x440]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x3e], ax
jne 0x140051090
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov rax, qword [0x1402e0f70]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_2114]
mov qword [rdi - 2], rax
mov rax, qword [0x1402e0f78]
xor edx, edx
mov qword [rdi + 6], rax
movzx eax, word [0x1402e0f80]
mov r8d, 0x7fe
mov word [rdi + 0xe], ax
mov word [rsp + Ordinal_2114], 0
call sub.ntdll.dll_memset
lea r8, [rsp + 0x840]
lea rdx, [0x1402e0f58]
lea rcx, [rsp + 0x40]
call fcn.140050930
lea r9, str.langen.txt
test eax, eax
jne 0x140051136
xor edx, edx
nop
nop
movzx eax, word [rdx + r9]
add rdx, 2
test ax, ax
mov word [rsp + rdx + Ordinal_2114], ax
jne 0x140051120
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x840]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x140051168
xor ecx, ecx
movzx eax, word [rcx + r9]
add rcx, 2
test ax, ax
mov word [rsp + rcx + Ordinal_2114], ax
jne 0x140051152
lea rcx, [rsp + 0x840]
mov dx, 0x3b
call qword [sym.imp.ntdll.dll_wcschr]
test rax, rax
je 0x140051184
mov word [rax], 0
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x400
call sub.ntdll.dll_memset
lea r9, [rsp + 0x840]
lea r8, [rsp + 0x440]
lea rdx, [0x1402e0040]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400511e2
lea r8, [rsp + 0x440]
lea rdx, str._slangen.txt
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll__swprintf]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
lea r8d, [r9 + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140161080
add rsp, 0x1050
pop rdi
ret
Function at 0x140051dd0
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.140051c40
test eax, eax
jne 0x140051eda
call fcn.140049470
lea rbx, [0x140433430]
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 0x140051e43
xor ebx, ebx
jmp 0x140051ec0
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 0x140051e80
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 0x140051eb0
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x140051f5a
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 0x140051f58
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x140051f58
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 0x140051f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x68
mov ecx, dword [rdx]
mov byte [rsp + 8], 0xba
mov byte [rsp + 9], 0x4b
cmp ecx, 0xc12a7328
mov byte [rsp + 0xa], 0
mov byte [rsp + 0xb], 0xa0
mov byte [rsp + 0xc], 0xc9
mov byte [rsp + 0xd], 0x3e
mov byte [rsp + 0xe], 0xc9
mov byte [rsp + 0xf], 0x3b
mov byte [rsp + 0x18], 0x81
mov byte [rsp + 0x19], 0x7d
mov byte [rsp + 0x1a], 0xf9
mov byte [rsp + 0x1b], 0x2d
mov byte [rsp + 0x1c], 0xf0
mov byte [rsp + 0x1d], 2
mov byte [rsp + 0x1e], 0x15
mov byte [rsp + 0x1f], 0xae
mov byte [rsp + 0x28], 0x85
mov byte [rsp + 0x29], 0xd2
mov byte [rsp + 0x2a], 0xe1
mov byte [rsp + 0x2b], 0xe9
mov byte [rsp + 0x2c], 4
mov byte [rsp + 0x2d], 0x34
mov byte [rsp + 0x2e], 0xcf
mov byte [rsp + 0x2f], 0xb3
mov byte [rsp + 0x38], 0xbc
mov byte [rsp + 0x39], 0x68
mov byte [rsp + 0x3a], 0x33
mov byte [rsp + 0x3b], 0x11
mov byte [rsp + 0x3c], 0x71
mov byte [rsp + 0x3d], 0x4a
mov byte [rsp + 0x3e], 0x69
mov byte [rsp + 0x3f], 0xad
mov byte [rsp + 0x48], 0x87
mov byte [rsp + 0x49], 0xc0
mov byte [rsp + 0x4a], 0x68
mov byte [rsp + 0x4b], 0xb6
mov byte [rsp + 0x4c], 0xb7
mov byte [rsp + 0x4d], 0x26
mov byte [rsp + 0x4e], 0x99
mov byte [rsp + 0x4f], 0xc7
mov byte [rsp + 0x58], 0xa1
mov byte [rsp + 0x59], 0x6a
mov byte [rsp + 0x5a], 0xbf
mov byte [rsp + 0x5b], 0xd5
mov byte [rsp + 0x5c], 1
mov byte [rsp + 0x5d], 0x79
mov byte [rsp + 0x5e], 0xd6
mov byte [rsp + 0x5f], 0xac
jne 0x1400520b3
cmp word [rdx + 4], 0xf81f
jne 0x1400520b3
cmp word [rdx + 6], 0x11d2
jne 0x1400520b3
mov rax, qword [rdx + 8]
cmp qword [rsp + 8], rax
jne 0x1400520b3
mov eax, 1
add rsp, 0x68
ret
cmp ecx, 0xe3c9e316
jne 0x1400520e0
cmp word [rdx + 4], 0xb5c
jne 0x1400520e0
cmp word [rdx + 6], 0x4db8
jne 0x1400520e0
mov rax, qword [rdx + 8]
cmp qword [rsp + 0x18], rax
jne 0x1400520e0
mov eax, 2
add rsp, 0x68
ret
cmp ecx, 0x5808c8aa
jne 0x14005210d
cmp word [rdx + 4], 0x7e8f
jne 0x14005210d
cmp word [rdx + 6], 0x42e0
jne 0x14005210d
mov rax, qword [rdx + 8]
cmp qword [rsp + 0x28], rax
jne 0x14005210d
mov eax, 3
add rsp, 0x68
ret
cmp ecx, 0xaf9b60a0
jne 0x14005213a
cmp word [rdx + 4], 0x1431
jne 0x14005213a
cmp word [rdx + 6], 0x4f62
jne 0x14005213a
mov rax, qword [rdx + 8]
cmp qword [rsp + 0x38], rax
jne 0x14005213a
mov eax, 4
add rsp, 0x68
ret
cmp ecx, 0xebd0a0a2
jne 0x140052167
cmp word [rdx + 4], 0xb9e5
jne 0x140052167
cmp word [rdx + 6], 0x4433
jne 0x140052167
mov rax, qword [rdx + 8]
cmp qword [rsp + 0x48], rax
jne 0x140052167
mov eax, 5
add rsp, 0x68
ret
cmp ecx, 0xde94bba4
jne 0x140052194
cmp word [rdx + 4], 0x6d1
jne 0x140052194
cmp word [rdx + 6], 0x4d40
jne 0x140052194
mov rax, qword [rdx + 8]
cmp qword [rsp + 0x58], rax
jne 0x140052194
mov eax, 6
add rsp, 0x68
ret
xor eax, eax
add rsp, 0x68
ret
Function at 0x14005b0b0
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.14005af20
test eax, eax
jne 0x14005b1ba
call fcn.140049470
lea rbx, [0x140433b50]
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 0x14005b123
xor ebx, ebx
jmp 0x14005b1a0
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 0x14005b160
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 0x14005b190
mov rax, qword [rsi]
lea rdx, [0x1402e1048]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005b23a
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 0x14005b238
mov eax, dword [rsp + 0x40]
xor edx, edx
div edi
test edx, edx
jne 0x14005b238
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 0x14005ba40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x860
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea rax, [rsp + 0x38]
mov rbx, r8
xor edi, edi
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005bb79
mov qword [rsp + Ordinal_2164], rsi
call fcn.140049470
lea rcx, [0x140433b50]
xor edx, edx
mov r8d, 0x80
mov rbx, rax
call sub.ntdll.dll_memset
lea edx, [rdi + 0x5c]
lea rcx, str..._reg.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rsi, rax
je 0x14005bb57
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x40]
mov r8d, 0x1bd
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x41], rax
mov word [rsp + 0x49], ax
mov byte [rsp + 0x4b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rsi + 1]
lea rcx, [0x140433b50]
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005bb10
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x140433b50]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x40]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005bb40
lea rdi, [0x140433b50]
mov rax, qword [rbx]
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_IsExistSubKey.
mov r8, rdi
mov rcx, rbx
call qword [rax + 0x10]
mov rsi, qword [rsp + 0x870]
xor eax, eax
jmp 0x14005bc45
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x7ff
mov byte [rsp + 0x50], dil
call sub.ntdll.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14005bbff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140049470
lea rcx, str..._reg.cpp
mov rbx, qword [rax]
mov edx, 0x1cc
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_Failed_to_RegQueryValueEx_in_IsExistSubKey.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14005bc45
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], edi
jne 0x14005bc40
call fcn.140049470
lea rcx, str..._reg.cpp
mov edx, 0x1d3
mov rbx, qword [rax]
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_DataLength__0_in_IsExistSubKey.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14005bc45
mov eax, 1
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x888]
add rsp, 0x860
pop rdi
ret
Function at 0x1400766a0
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
xor eax, eax
xor esi, esi
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov qword [r11 - 0x40], rsi
mov qword [r11 - 0x30], rax
lea rax, [r11 + 0x20]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x48], rax
lea rax, [r11 - 0x30]
mov edx, 0x7405c
mov dword [rsp + 0x28], 8
mov dword [r11 + 0x20], esi
mov qword [r11 - 0x58], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x48]
mov r10, qword [rbx]
add rax, 0x1ff
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
cqo
mov rcx, rbx
mov qword [rsp + 0x50], rsi
and edx, 0x1ff
mov dword [rsp + 0x90], esi
mov dword [rsp + 0x88], esi
lea rdi, [rdx + rax]
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], esi
sar rdi, 9
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rax
call qword [r10 + 0x30]
test eax, eax
jne 0x140076768
mov rax, rdi
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
mov ecx, dword [rsp + 0x80]
mov rax, qword [rsp + 0x48]
lea rax, [rcx + rax - 1]
cqo
idiv rcx
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x90]
imul rdx, rcx
imul rdx, qword [rsp + 0x50]
cmp rdx, rax
cmova rax, rdx
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140086a90
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x160], rax
test dx, dx
mov edi, r9d
mov rbx, r8
jne 0x140086ac1
xor eax, eax
jmp 0x140086b43
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
mov dword [rsp + 0x38], 0x80
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov r8d, edi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rdi
ret