joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065540
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov ebp, r8d
xor r12d, r12d
mov qword [rax - 0x38], r12
lea rax, [rax - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006575d
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0xc8], r12d
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], r12d
test bpl, 1
je 0x1400655bb
lea rdx, [0x14014f7a8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
mov edx, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0x60]
cmp edx, ecx
cmovb edx, ecx
mov dword [rsp + 0xc8], edx
lea edx, [rdx*4 + 8]
lea rcx, [rsp + 0x78]
call fcn.140063580
nop
test edi, edi
jne 0x140065745
mov rbx, qword [rsp + 0x78]
test bpl, 4
je 0x1400656c5
mov esi, dword [rsp + 0x64]
dec esi
js 0x1400656c5
nop word [rax + rax]
mov eax, dword [rsp + 0xc8]
lea eax, [rax*4 + 1]
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x6c]
mov r8, rbx
mov edx, esi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1400656a7
mov edi, eax
jmp 0x1400656c0
cmp word [rbx], 0
je 0x1400656c0
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
cmovne edi, eax
sub esi, 1
jns 0x140065660
test bpl, 2
je 0x140065745
mov esi, dword [rsp + 0x68]
dec esi
js 0x140065745
nop word [rax + rax]
mov eax, dword [rsp + 0xc8]
lea eax, [rax*4 + 1]
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x6c]
mov r8, rbx
mov edx, esi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140065727
mov edi, eax
jmp 0x140065740
cmp word [rbx], 0
je 0x140065740
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [0x14019c388]
test eax, eax
cmovne edi, eax
sub esi, 1
jns 0x1400656e0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x78]
call fcn.14005b520
mov eax, edi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400658b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov edx, 0x20019
mov dword [rsp + 0x34], 0x32
mov dword [rsp + 0x30], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov rsi, rax
test rax, rax
je 0x140065956
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
lea rdx, str.Class
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0xa0]
jne 0x140065956
lea rcx, [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140065956
mov eax, 1
jmp 0x140065958
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14010bcc0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140066f70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rbp, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140066fb6
mov rdi, rbx
jmp 0x140066fcb
test rax, rax
je 0x140066fcb
mov rcx, rax
call fcn.140062bb0
mov rsi, rax
test rax, rax
jns 0x140066fce
mov rsi, rbx
lea rcx, [rsp + 0x78]
call fcn.140063230
test rsi, rsi
jle 0x140067021
lea edx, [rsi + 5]
lea rcx, [rsp + 0x78]
call fcn.1400632e0
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
mov rbx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x70]
cmp r11, rsi
cmovg r11d, esi
movsxd rax, r11d
mov byte [rax + rbx], 0
jmp 0x140067026
mov rbx, qword [rsp + 0x78]
or r9d, 0xffffffff
mov rdx, rbx
mov rcx, rbp
or r8d, r9d
call fcn.140063690
lea rcx, [rsp + 0x78]
call fcn.14005b520
test rdi, rdi
je 0x140067056
cmp rdi, 0xffffffffffffffff
je 0x140067056
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140067150
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
jne 0x140067174
lea rax, [0x140143378]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
mov edx, 0x26
mov eax, r8d
cmp dx, word [rbx]
jne 0x14006718f
add rbx, 2
inc eax
cmp dx, word [rbx]
je 0x140067184
cmp word [rbx], r8w
je 0x140067162
test eax, eax
jne 0x1400671e2
xor ecx, ecx
lea rdi, [0x14014337c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x38]
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14006720a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14006720a
lea rdi, [0x140143378]
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 1
mov rdx, rbx
cmovg r8, rcx
or r9d, 0xffffffff
call fcn.14002b14c
lea rcx, [0x14014337c]
lea rdi, [0x140143378]
test rax, rax
cmovne rdi, rcx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140067440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp byte [rcx + 0x18], dil
je 0x140067475
mov r8d, dword [rcx + 0x10]
test r8d, r8d
jle 0x140067475
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rbx + 8]
mov dword [rbx + 0x10], edi
call fcn.14005b520
mov rcx, qword [rbx]
test rcx, rcx
je 0x140067495
cmp rcx, 0xffffffffffffffff
je 0x140067495
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140067510
Capabilities:
Write file on windows

Disassembly:
lea rax, vtable.pecmd::XFILE.0
add rcx, 8
mov qword [rcx - 8], rax
jmp fcn.140067440

Function at 0x1400675e0
Capabilities:
Write file on windows

Disassembly:
lea rax, vtable.pecmd::XFILEU.0
add rcx, 8
mov qword [rcx - 8], rax
jmp fcn.140067440

Function at 0x1400676b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor edi, edi
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140067749
test rax, rax
je 0x140067749
lea r9, [rsp + 0x40]
lea r8d, [rdi + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
xor r8d, r8d
call fcn.14005e970
movzx edi, al
cmp rbx, 0xffffffffffffffff
je 0x140067744
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
jmp 0x14006774b
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010bcc0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140067b30
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r13, r9
mov r15d, r8d
mov r12, rdx
mov r14, rcx
mov ebp, 1
xor edi, edi
mov word [rsp + 0x50], di
mov edx, 0x100000
lea rcx, [rsp + 0x38]
call fcn.140063580
nop
test r13, r13
jne 0x140067bad
mov ebp, edi
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
lea r13, [rsp + 0x50]
test eax, eax
je 0x140067cd1
mov ebx, 0xa0000000
mov dword [rsp + 0x30], edi
mov eax, 0xe0000000
test ebp, ebp
cmovne ebx, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 3]
mov edx, ebx
mov rcx, r12
call qword [0x14019c3c8]
mov rsi, rax
test rax, rax
jne 0x140067c32
cmp ebp, 1
jne 0x140067c20
mov ebp, 2
btr ebx, 0x1e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [rbp + 1]
mov edx, ebx
mov rcx, r12
call qword [0x14019c3c8]
mov rsi, rax
test rax, rax
je 0x140067be8
jmp 0x140067c32
test rsi, rsi
jne 0x140067c32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edi
jmp 0x140067cd1
mov rdx, r13
mov rcx, rsi
call qword [0x14019c3d0]
mov ebx, eax
test eax, eax
jne 0x140067c4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov edx, r15d
mov rcx, rsi
call qword [0x14019c3d8]
mov r12, rax
test rax, rax
jne 0x140067c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edi
jmp 0x140067cb4
test ebx, ebx
je 0x140067cb4
mov eax, 0x200
test ebp, ebp
cmove edi, eax
mov r8d, edi
mov rdx, r14
mov rcx, r12
call qword [0x14019c3e0]
mov ebx, eax
test eax, eax
jne 0x140067cb4
cmp ebp, 2
jne 0x140067caa
bts edi, 9
mov r8d, edi
mov rdx, r14
mov rcx, r12
call qword [0x14019c3e0]
mov ebx, eax
test ebx, ebx
jne 0x140067cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12, r12
je 0x140067cc2
mov rcx, r12
call qword [0x14019c3e8]
test rsi, rsi
je 0x140067cd1
mov rcx, rsi
call qword [0x14019c3e8]
nop
lea rcx, [rsp + 0x38]
call fcn.14005b520
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14010bcc0
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140067d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
sub rsp, 0x40
lea rax, [rsp + 0x60]
mov rsi, r9
mov r12, r8
xor r13d, r13d
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0xffffffff
mov ebp, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140067e2c
mov rbx, qword [rsp + 0x80]
mov edx, 0xffe
mov rcx, rsi
mov dword [rbx], 0xffa
call fcn.1400632e0
mov r11, qword [rsi]
mov byte [r11], bpl
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, 0xea
jne 0x140067de6
add dword [rbx], 0xa
mov edx, dword [rbx]
mov rcx, rsi
add edx, 4
call fcn.1400632e0
mov r11, qword [rsi]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebp, 0xffffffff
test edi, edi
jne 0x140067e2c
cmp dword [rbx], r13d
jge 0x140067e00
mov dword [rbx], r13d
movsxd rcx, dword [rbx]
mov rax, qword [rsi]
mov byte [rcx + rax], r13b
movsxd rax, dword [rbx]
mov rcx, rsi
add rax, qword [rsi]
mov word [rax + 2], r13w
mov word [rax], r13w
mov edx, dword [rbx]
add edx, 5
call fcn.1400632e0
mov eax, dword [rsp + 0x30]
jmp 0x140067e3e
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140067e3b
mov dword [rax], edi
lea eax, [rbp - 1]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x140068010
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, 0x4000000
test r8d, r8d
movzx r15d, r9w
mov ebx, 0x2000000
movzx edx, r9w
mov ebp, r9d
cmovne ebx, eax
mov rdi, rcx
xor r15w, 0xa
mov dword [rsp + 0x88], ebx
call fcn.14002d37c
xor esi, esi
movsxd r12, eax
mov dword [rsp + 0x80], esi
mov r14, rdi
lea r13, [rdi + r12*2]
test ebp, ebp
jne 0x140068082
mov rdi, r13
jmp 0x1400680ab
mov esi, dword [rsp + 0x80]
mov ebx, dword [rsp + 0x88]
cmp rdi, r13
jae 0x140068161
mov r14, rdi
nop
movzx eax, word [rdi]
add rdi, 2
cmp r15w, ax
je 0x1400680a2
cmp rdi, r13
jb 0x140068090
mov r12, rdi
sub r12, r14
sar r12, 1
mov rax, r14
cmp r14, rdi
jae 0x1400680bf
xor word [rax], bp
add rax, 2
cmp rax, rdi
jb 0x1400680b3
mov r9d, r12d
mov r8, r14
mov edx, ebx
mov ecx, 0x20804
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_LCMapStringW]
mov rcx, qword [rsp + 0x78]
lea edx, [rax + rsi + 1]
mov ebx, eax
call fcn.1400635c0
mov rax, qword [rsp + 0x78]
movsxd r11, esi
mov rdx, qword [rax]
mov r9d, r12d
mov r8, r14
lea rsi, [rdx + r11*2]
mov edx, dword [rsp + 0x88]
mov ecx, 0x20804
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_LCMapStringW]
movsxd r8, r12d
xor edx, edx
mov rcx, r14
add r8, r8
mov ebx, eax
call fcn.14010c6c0
test ebx, ebx
jle 0x140068074
add dword [rsp + 0x80], ebx
sub ebx, 1
js 0x140068074
nop dword [rax]
xor word [rsi], bp
add rsi, 2
sub ebx, 1
jns 0x140068150
jmp 0x140068074
mov rbx, qword [rsp + 0x78]
movsxd rcx, esi
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140068190
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, rcx
mov r13, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x209
mov ebp, r9d
mov r14, r8
call fcn.140063580
mov rbx, qword [rsp + 0x20]
xor r11d, r11d
lea rcx, str.Device_
lea r8d, [r11 + 8]
mov rdx, r12
mov word [rbx], r11w
call fcn.14005c510
test al, al
je 0x1400681ec
or ebp, 1
jmp 0x140068231
lea rcx, str.DosDevices_
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rdx, r12
call fcn.14005c510
test al, al
je 0x14006820a
or ebp, 1
jmp 0x140068231
cmp word [r12], r11w
je 0x140068231
cmp word [r12 + 2], r11w
je 0x140068231
lea rcx, [r12 + 4]
mov edx, 0x3a
call qword [sym.imp.SHLWAPI.dll_StrChrW]
test rax, rax
je 0x140068231
or ebp, 1
lea rcx, [0x14014ec18]
mov r8d, VariantTimeToDosDateTime
mov rdx, r12
mov qword [rsp + 0x50], rdi
call fcn.14005c510
test al, al
je 0x14006825e
movzx edi, byte [rsp + 0x70]
and ebp, 0xfffffffe
test dil, dil
jne 0x14006828e
jmp 0x140068263
mov dil, byte [rsp + 0x70]
test dil, dil
je 0x140068272
movzx ecx, word [r13]
call fcn.14005eb10
mov r8, r12
mov rdx, r13
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov esi, eax
test eax, eax
jne 0x1400682a2
test dil, dil
js 0x1400682ed
xor dil, dil
mov r8d, 0x208
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x1400682ce
test dil, dil
jle 0x1400682ed
mov r8d, 0x208
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1400682ed
mov ecx, ebp
mov r8, r12
mov rdx, r13
or ecx, 0xe
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov esi, eax
test dil, dil
js 0x1400682ed
test eax, eax
jne 0x1400682ed
mov dil, 0xff
jmp 0x140068263
lea rcx, [rsp + 0x20]
call fcn.14005b520
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140068320
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
xor edi, edi
xor r9d, r9d
mov edx, 0x100080
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400683b8
test rax, rax
je 0x1400683b8
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x44], 0xffffffff
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400683cc
cmp rbx, 0xffffffffffffffff
je 0x1400683b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov edi, dword [rsp + 0x44]
cmp rbx, 0xffffffffffffffff
je 0x1400683df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
Function at 0x140068cf0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r14, qword [rsp + 0x90]
mov edi, 1
lea rbp, [rsp + 0x78]
test r14, r14
mov r13d, r9d
mov eax, r8d
cmovne rdi, r14
cmp qword [rsp + 0x98], 0
mov rbx, rdx
cmovne rbp, qword [rsp + 0x98]
mov r12, rcx
mov qword [rsp + 0x78], 0
test r9d, r9d
jg 0x140068d5a
mov rcx, qword [rcx]
call fcn.14005ec80
mov r13d, eax
mov eax, dword [rsp + 0x80]
shl rax, 7
xor edx, edx
movsxd rsi, r13d
lea rax, [rax + rsi - 1]
mov rcx, rbx
div rsi
xor edx, edx
add eax, 2
mov qword [rsp + 0x90], rax
lea r8d, [rax + 2]
imul r8d, r13d
call fcn.14010c6c0
mov rcx, qword [r12]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x88], 0
call fcn.14005c450
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, r13d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test r14, r14
jne 0x140068de6
mov eax, 0x1c2
nop dword [rax]
cmp byte [rax + rbx], 0xee
jne 0x140068dda
mov edi, dword [rax + rbx + 4]
add rax, 0x10
cmp rax, 0x1f2
jle 0x140068dd0
mov rcx, qword [r12]
mov rdx, rsi
xor r8d, r8d
imul rdx, rdi
call fcn.14005c450
mov r8, qword [rsp + 0x90]
mov rcx, qword [r12]
inc r8d
lea rdx, [rsi + rbx]
imul r8d, r13d
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp qword [rsp + 0x98], 0
lea eax, [r13 + r13]
cdqe
lea r14, [rax + rbx + 0x10000]
je 0x140068e95
mov r8, rsi
xor edx, edx
mov rcx, r14
call fcn.14010c6c0
cmp qword [rbp], 2
jae 0x140068e60
mov rax, qword [rbx + 0x220]
mov qword [rbp], rax
imul rsi, qword [rbp]
mov rcx, qword [r12]
xor r8d, r8d
mov rdx, rsi
call fcn.14005c450
mov rcx, qword [r12]
lea r9, [rsp + 0x88]
mov r8d, r13d
mov rdx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, rdi
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400691e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x650
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x640], rax
mov r13, rdx
mov rbp, r8
lea rsi, [rsp + 0x240]
shl r13, 9
xor r8d, r8d
mov r12d, r9d
mov rdx, r13
mov rdi, rcx
mov dword [rsp + 0x30], 0
and rsi, 0xfffffffffffffe00
call fcn.14005c450
cmp rax, r13
jne 0x140069303
lea r9, [rsp + 0x30]
lea rdx, [rsi + 0x200]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140069303
lea rdx, [rsi + 0x200]
mov rcx, rsi
mov r8d, 0x200
call fcn.14010cd30
cmp r12d, 1
jne 0x14006929d
mov rax, qword [rbp]
mov qword [rsi + 0x3ce], rax
mov rax, qword [rbp + 8]
mov qword [rsi + 0x3d6], rax
xor eax, eax
mov ecx, 0xaa55
cmp r12d, 1
cmove ax, cx
xor r8d, r8d
mov rcx, rdi
mov rdx, r13
mov word [rsi + 0x3fe], ax
call fcn.14005c450
cmp rax, r13
jne 0x140069303
lea rdx, [rsi + 0x200]
mov r8d, 0x200
mov rcx, rsi
call fcn.14005b5d0
test eax, eax
je 0x140069303
lea r9, [rsp + 0x30]
lea rdx, [rsi + 0x200]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 1
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.14010bcc0
mov rbx, qword [rsp + 0x690]
add rsp, 0x650
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140069650
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov r14d, r9d
mov r15d, r8d
movzx r13d, dx
mov rdi, rcx
mov edx, 0x134
call fcn.1400635c0
mov edx, 0xca
lea rcx, [rsp + 0x20]
call fcn.140063580
nop
mov eax, dword [rsp + 0x80]
mov esi, eax
and esi, 0x100
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov rdi, qword [rdi]
xor r12b, r12b
mov eax, 1
or ecx, 0xffffffff
test ebx, ebx
cmovne eax, ecx
mov dword [rsp + 0x80], eax
neg ebx
sbb ebx, ebx
and ebx, 0x19
test r14d, r14d
je 0x1400696ec
not ebp
cmp r14d, 1
jle 0x1400696ec
and ebp, 0xfffffffc
movsxd r14, esi
cmp ebx, 0x1a
jge 0x140069771
mov r8d, 0x3a
nop word [rax + rax]
test ebx, ebx
js 0x140069771
mov ecx, ebx
mov edx, 1
shl edx, cl
lea esi, [rbx + 0x41]
movsx eax, al
add ebx, eax
test ebp, edx
je 0x14006975f
test r14, r14
je 0x140069731
movsx ecx, sil
call fcn.1400cf2a0
test eax, eax
je 0x14006975f
mov r8d, 0x3a
test r12b, r12b
je 0x140069744
test r13w, r13w
je 0x140069744
mov word [rdi], r13w
add rdi, 2
mov r12b, 1
movsx eax, sil
mov word [rdi], ax
add rdi, 2
test r15d, r15d
je 0x14006975f
mov word [rdi], r8w
add rdi, 2
cmp ebx, 0x1a
mov eax, dword [rsp + 0x80]
mov r8d, 0x3a
jl 0x140069700
xor eax, eax
mov word [rdi], ax
mov rbx, qword [rsp + 0x60]
mov rbx, qword [rbx]
lea rcx, [rsp + 0x20]
call fcn.14005b520
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret