joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032970
Capabilities:
Get file size
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, 0x90
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rdx
xor r13d, r13d
cmp qword [rcx + 0x90], r13
jne 0x140032ad0
lea rcx, [rsp + 0x58]
call fcn.140008b10
mov rbx, rax
mov qword [rsp + 0x50], rax
lea r12, [r13 - 1]
cmp qword [rax + 0x10], r13
jne 0x1400329ef
lea rdx, [r14 + 0x60]
cmp rax, rdx
je 0x1400329ef
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x1400329e7
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140004ff0
mov rcx, rbx
call fcn.14001e500
test al, al
je 0x140032ac1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140032a0c
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r12
je 0x140032ac1
mov qword [rsp + 0x48], r13
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140032ab7
mov r15, qword [rsp + 0x48]
mov rcx, r15
call fcn.14003512c
mov rdi, rax
test rax, rax
je 0x140032a7a
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.1400392d0
jmp 0x140032a7d
mov rdi, r13
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140032aaa
movsxd rax, dword [rdi + 0x3c]
mov r12d, dword [rax + rdi + 8]
test rdi, rdi
je 0x140032ab7
mov rcx, rdi
call fcn.140034d74
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call fcn.140004c80
mov qword [r14 + 0x90], r12
mov rcx, rsi
call fcn.140004c80
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140034e90
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033640
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140083718]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call rax
mov rbx, rax
test rax, rax
jne 0x140033778
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14001f1e0
nop
mov r8, rax
lea rdx, [0x140083a00]
lea rcx, [rsp + 0x40]
call fcn.140032700
nop
xor r9d, r9d
mov r8b, 1
lea rdx, [0x1400837e0]
mov rcx, rax
call fcn.140018fb0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140033723
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003371e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400337b3
call fcn.140034d74
movdqa xmm0, xmmword [0x140061ad0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140033774
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003376f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400337ad
call fcn.140034d74
xor al, al
jmp 0x14003378c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140034e90
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14003d4e8
nop
call fcn.14003d4e8
nop
int3
Function at 0x1400337c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140083718]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call rax
mov rbx, rax
test rax, rax
jne 0x1400338f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14001f1e0
nop
mov r8, rax
lea rdx, [0x140083a00]
lea rcx, [rsp + 0x40]
call fcn.140032700
nop
xor r9d, r9d
mov r8b, 1
lea rdx, [0x1400837e0]
mov rcx, rax
call fcn.140018fb0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400338a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003389e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033941
call fcn.140034d74
movdqa xmm0, xmmword [0x140061ad0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400338f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400338ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003393b
call fcn.140034d74
xor al, al
jmp 0x14003391a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140034e90
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14003d4e8
nop
call fcn.14003d4e8
nop
int3
Function at 0x140034b00
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov ecx, 0x10
call fcn.140034d38
test rax, rax
je 0x140034b26
mov qword [rax], rbx
lea rcx, [0x140034aa0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400302d0]
xor edx, edx
xor ecx, ecx
call fcn.140042d8c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140034b8b
cmp dword [rsp + 0x38], 0
je 0x140034b80
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140036e30
test eax, eax
jne 0x140034b80
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call fcn.1400372d0
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400372d0
int3

Function at 0x140035ba0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140035bea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140035bea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140035bea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140035bea
cmp dword [rcx + 0x84], 0xe
jbe 0x140035bea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140035bec
xor al, al
add rsp, 0x28
ret

Function at 0x1400424b0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004230f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004230f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004230f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004230f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004230f
cmp dword [rcx + 0x84], 0xe
jbe 0x14004230f
cmp dword [rcx + 0xf8], 0
je 0x14004230f
mov ecx, ebx
call fcn.1400423cc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004219c
nop
cmp dword [rbp + 0x20], 0
je 0x14004235d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140042368
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400422a0
Function at 0x140042b10
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14006e378]
mov rbp, rcx
call fcn.14004e414
xor edi, edi
test rax, rax
je 0x140042bf6
mov ebx, edi
call fcn.140043268
mov r14d, dword [rax]
call fcn.140043268
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14004e360
mov rsi, rax
test rax, rax
je 0x140042b87
call fcn.140043268
mov dword [rax], r14d
jmp 0x140042bb1
call fcn.140043268
cmp dword [rax], 0x22
jne 0x140042bee
call fcn.140043268
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14004e360
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140042bee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140042bb5
cmp rax, 3
je 0x140042bd0
mov rcx, rsi
call fcn.140042a6c
test al, al
je 0x140042be1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140042be1
mov dil, 1
mov rcx, rbx
call fcn.14003dd38
mov al, dil
jmp 0x140042bf8
mov rcx, rbx
call fcn.14003dd38
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140034e90
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14005248c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140052513
mov rsi, rbx
cmp word [rax], bp
je 0x1400524d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400524bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400524b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004bf58
mov rdi, rax
test rax, rax
je 0x140052500
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140038c30
mov rbp, rdi
xor ecx, ecx
call fcn.14004bf1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005b1f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005b218
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005b218
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400017b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, r8
mov r10, rdx
not ecx
test r8, r8
je 0x1400017f0
lea r11, [0x140020b80]
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r10]
lea r10, [r10 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [r11 + r8*4]
xor ecx, eax
sub r9, 1
jne 0x1400017d0
not ecx
mov eax, ecx
ret

Function at 0x140001830
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
xor eax, eax
lea r8, [rsp + 0x30]
lea rdx, str.SOFTWAREApple_Inc.Boot_Camp
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400018e1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.SSD_Next_BG_LowTime
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400018e1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.SSD_Next_BG_HighTime
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400018e1
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400018f1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x68]
add rsp, 0x48
ret
Function at 0x140001900
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, str.Entered_IoctlNvmeBG___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
lea rcx, str..Scsi0:
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000196d
lea rcx, str.ERROR_:_IoctlNvmeBG_CreateFile_for_SCSI_path_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140001a12
mov r9d, 8
mov qword [rsp + 0x58], 0xc
xor r8d, r8d
mov dword [rsp + 0x64], 1
lea rdx, str.ASSDPubI
mov dword [rsp + 0x40], 0x1c
lea rcx, [rsp + 0x44]
call fcn.14000b520
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
mov r9d, 0x28
mov dword [rsp + 0x28], ebx
mov edx, 0x4d008
mov rcx, rdi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x4c], 0xf
mov dword [rsp + 0x50], 0x5a5a2800
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
test eax, eax
jne 0x1400019f7
lea rcx, str.ERROR_:_DeviceIoControl_ASSD_PUB_BG_SRB_IO_CODE_request_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001a09
lea rcx, str.DeviceIoControl_ASSD_PUB_BG_SRB_IO_CODE_request_succeeded_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Exited_IoctlNvmeBG___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140007800
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001a40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], 0
lea rdx, str.SOFTWAREApple_Inc.Boot_Camp
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x140001ad0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SSD_Next_BG_LowTime
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x140001ad0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SSD_Next_BG_HighTime
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001aeb
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140001ee0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov eax, dword [0x140021528]
mov r15d, edx
movsd xmm0, qword [str.._]
mov r12d, ecx
movzx ebx, word [0x140021538]
lea rcx, [rbp + 0x16a]
mov dword [rsp + 0x58], eax
xor edx, edx
movzx eax, word [0x14002152c]
mov r8d, 0x1f6
mov word [rsp + 0x5c], ax
movsd qword [rbp + 0x160], xmm0
mov word [rbp + 0x168], bx
call fcn.140008aa0
movsd xmm0, qword [str.._]
lea rcx, [rsp + 0x6a]
xor edx, edx
movsd qword [rsp + 0x60], xmm0
mov r8d, 0x1f6
mov word [rsp + 0x68], bx
call fcn.140008aa0
call sub.KERNEL32.dll_GetLogicalDrives
xor r13d, r13d
mov ebx, eax
mov esi, r13d
test eax, eax
je 0x140002106
test bl, 1
je 0x1400020f3
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x1400020f3
lea r8, [rbp + 0x160]
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.14000aee8
lea r8, [rsp + 0x58]
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.14000b548
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rcx, [rsp + 0x60]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400020f3
mov ecx, 0x28
call fcn.140007824
mov r14, rax
mov qword [rsp + 0x38], r13
mov r9d, 0xc
mov qword [rsp + 0x48], r13
lea r8, [rsp + 0x48]
mov edx, 0x2d1400
mov dword [rax + 4], 0x28
mov rcx, rdi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000207f
mov eax, dword [r14 + 0x1c]
cmp eax, 4
je 0x140002089
cmp eax, 7
je 0x140002089
inc esi
test r12d, r12d
je 0x1400020e5
cmp esi, 1
jmp 0x1400020e8
test r15d, r15d
je 0x1400020ea
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x60]
call fcn.1400023b0
mov qword [rsp + 0x38], r13
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
test eax, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
je 0x1400020cf
mov edx, 0x2d480c
cmp dword [rsp + 0x44], r13d
jne 0x1400020d4
mov edx, 0x2d4808
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002117
cmp esi, 2
je 0x14000208e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc word [rsp + 0x58]
shr ebx, 1
test ebx, ebx
jne 0x140001fa0
test esi, esi
jne 0x140002117
test r15d, r15d
jne 0x140002117
lea edx, [r15 + 1]
mov ecx, r12d
call fcn.140001ee0
mov eax, 1
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140007800
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140005860
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r10, r8
mov dword [rsp + 0x58], 0
mov r8d, edx
mov qword [rsp + 0x20], 0
mov rbx, rdx
lea r9, [rsp + 0x58]
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400058a3
mov ecx, dword [rsp + 0x58]
cmp rcx, rbx
jne 0x1400058a3
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400058b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x30
pop rbx
ret
mov eax, 0xffffe5d4
add rsp, 0x30
pop rbx
ret
Function at 0x140006680
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov ebx, ecx
xor r14d, r14d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov ebp, edx
call fcn.140003630
mov rdi, qword [rsp + 0x50]
mov esi, eax
test eax, eax
jne 0x1400067a2
test ebx, ebx
je 0x1400067f3
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x50], 0x104
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x1400067a2
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str..DefaultSoftwareApple_Inc.OsSwitching
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 1
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400067a2
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.NextBootName
lea rax, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400067a2
mov rbx, rdi
test rdi, rdi
je 0x14000679d
nop word [rax + rax]
lea rdx, [rbx + 0xc]
lea rcx, [rsp + 0x80]
call fcn.14000b7ec
test eax, eax
je 0x14000680f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006780
mov esi, 0xffffe5b9
test rdi, rdi
je 0x1400067c3
nop word [rax + rax]
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.14000aec4
mov rdi, rbx
test rbx, rbx
jne 0x1400067b0
mov eax, esi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140007800
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rbx, rdi
test rdi, rdi
je 0x14000679d
nop dword [rax + rax]
cmp dword [rbx + 8], ebp
je 0x14000680f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006800
jmp 0x14000679d
test rbx, rbx
je 0x14000679d
mov rcx, rbx
mov esi, r14d
call fcn.140001210
test eax, eax
je 0x1400067a2
xor eax, eax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x6e], 1
movzx eax, byte [rbx + 0x220]
mov byte [rsp + 0x6f], al
movzx eax, byte [rbx + 0x216]
mov byte [rsp + 0x70], al
movzx eax, byte [rbx + 0x217]
mov byte [rsp + 0x71], al
movzx eax, byte [rbx + 0x218]
mov byte [rsp + 0x72], al
movzx eax, byte [rbx + 0x219]
mov byte [rsp + 0x73], al
movzx eax, byte [rbx + 0x21a]
mov byte [rsp + 0x74], al
call fcn.140001470
mov esi, eax
jmp 0x1400067a2
mov edx, 2
lea ecx, [rdx - 1]
jmp 0x140006680
Function at 0x140006890
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov ebx, ecx
xor r14d, r14d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov ebp, edx
call fcn.140003630
mov rdi, qword [rsp + 0x50]
mov esi, eax
test eax, eax
jne 0x1400067a2
test ebx, ebx
je 0x1400067f3
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x50], 0x104
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x1400067a2
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str..DefaultSoftwareApple_Inc.OsSwitching
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 1
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400067a2
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.NextBootName
lea rax, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400067a2
mov rbx, rdi
test rdi, rdi
je 0x14000679d
nop word [rax + rax]
lea rdx, [rbx + 0xc]
lea rcx, [rsp + 0x80]
call fcn.14000b7ec
test eax, eax
je 0x14000680f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006780
mov esi, 0xffffe5b9
test rdi, rdi
je 0x1400067c3
nop word [rax + rax]
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.14000aec4
mov rdi, rbx
test rbx, rbx
jne 0x1400067b0
mov eax, esi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140007800
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rbx, rdi
test rdi, rdi
je 0x14000679d
nop dword [rax + rax]
cmp dword [rbx + 8], ebp
je 0x14000680f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006800
jmp 0x14000679d
test rbx, rbx
je 0x14000679d
mov rcx, rbx
mov esi, r14d
call fcn.140001210
test eax, eax
je 0x1400067a2
xor eax, eax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x6e], 1
movzx eax, byte [rbx + 0x220]
mov byte [rsp + 0x6f], al
movzx eax, byte [rbx + 0x216]
mov byte [rsp + 0x70], al
movzx eax, byte [rbx + 0x217]
mov byte [rsp + 0x71], al
movzx eax, byte [rbx + 0x218]
mov byte [rsp + 0x72], al
movzx eax, byte [rbx + 0x219]
mov byte [rsp + 0x73], al
movzx eax, byte [rbx + 0x21a]
mov byte [rsp + 0x74], al
call fcn.140001470
mov esi, eax
jmp 0x1400067a2
mov edx, 2
lea ecx, [rdx - 1]
jmp 0x140006680

Function at 0x1400068a0
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
xor ecx, ecx
jmp 0x140006680

Function at 0x1400068b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x140006680