joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100094274
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r10d, r10d
xor r13d, r13d
xor r12d, r12d
cmp dword [rcx], 2
mov r14, r9
mov r15, r8
mov qword [rsp + 0x38], r10
mov rax, rdx
jne 0x1000942b5
lea rbp, [rcx + 0x10]
xor esi, esi
lea rbx, [rbp + 0x10]
jmp 0x1000942c8
cmp dword [rcx], 6
jne 0x100094463
lea rsi, [rcx + 0x10]
xor ebp, ebp
lea rbx, [rsi + 0x10]
cmp dword [rbx], r10d
je 0x100094404
cmp dword [rbx], 6
jne 0x100094463
cmp dword [rcx + 8], 0x5c
mov r13d, 0x38
jb 0x100094463
mov eax, dword [rcx + 0x40]
add eax, r13d
cmp dword [rcx + 8], eax
jb 0x100094463
cmp dword [rcx + 0x38], r10d
jne 0x100094463
cmp dword [rcx + 0x48], 5
jne 0x100094463
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
add rcx, r13
mov qword [rsp + 0x20], rax
call fcn.100091960
mov r10, qword [rsp + 0x38]
mov edi, eax
test eax, eax
js 0x10009443e
cmp dword [rsp + 0x90], 0x2e
jb 0x100094356
cmp dword [r10], 3
jne 0x100094356
mov eax, dword [r10 + 0x14]
cmp dword [rax + r10], 2
je 0x100094360
mov edi, 0xc000000d
jmp 0x10009443e
lea rdx, [rax + r10 + 0x14]
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, rdx
mov qword [rsp + 0x48], rdx
mov rcx, r8
repne scasw ax, word [rdi]
lea rdi, [r10 + 0x18]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasw ax, word [rdi]
add edx, edx
not rcx
mov qword [rsp + 0x40], rdx
lea eax, [rcx + rcx]
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
lea r8d, [rdx + rax]
xor edx, edx
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x30], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
jne 0x1000943cc
mov r10, qword [rsp + 0x38]
mov edi, 0xc0000017
jmp 0x10009443e
mov edi, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
lea rcx, [rdi + r12]
add rdx, 0x18
call sub.msvcrt.dll_memcpy
mov r10, qword [rsp + 0x38]
mov rax, qword [rsp + 0x98]
xor edi, edi
test rax, rax
je 0x10009440e
mov qword [rax], rsi
test r15, r15
je 0x100094416
mov qword [r15], rbp
test r14, r14
je 0x10009441e
mov qword [r14], rbx
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x10009442e
mov dword [rax], r13d
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x10009443e
mov qword [rax], r12
test r10, r10
je 0x100094468
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100094468
mov edi, 0xc000000d
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100096bb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
movzx eax, byte [rcx + 3]
xor edi, edi
mov r14, rdx
shl eax, 8
mov r13, r8
mov r8b, 0x7f
movsxd r9, eax
movzx eax, byte [rcx + 2]
mov rbx, rcx
or r9, rax
mov esi, edi
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
je 0x100096cfe
cmp dl, 4
jne 0x100096c26
cmp byte [r9 + 1], dl
jne 0x100096c26
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x100096c82
lea eax, [rcx - 4]
add esi, eax
movzx eax, byte [r9 + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [r9 + 2]
or rcx, rax
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
jne 0x100096c02
cmp esi, edi
je 0x100096cfe
mov rax, qword gs:[0x30]
add esi, 2
xor edx, edx
mov rcx, qword [rax + 0x60]
mov r8d, esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, rdi
jne 0x100096c89
mov eax, 0xc000009a
jmp 0x100096d03
mov eax, 0xc0000095
jmp 0x100096d03
mov r12, rax
movzx eax, byte [rbx + 3]
shl eax, 8
movsxd rdi, eax
movzx eax, byte [rbx + 2]
or rdi, rax
add rdi, rbx
jmp 0x100096ce4
cmp cl, 4
jne 0x100096cd0
cmp byte [rdi + 1], cl
jne 0x100096cd0
movzx ecx, byte [rdi + 3]
movzx eax, byte [rdi + 2]
lea rdx, [rdi + 4]
shl ecx, 8
or ecx, eax
sub ecx, 4
mov ebx, ecx
mov r8d, ecx
mov rcx, r12
call sub.msvcrt.dll_memcpy
add r12, rbx
movzx eax, byte [rdi + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rdi + 2]
or rcx, rax
add rdi, rcx
mov cl, byte [rdi]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x100096ca2
xor eax, eax
mov qword [r14], rbp
mov dword [r13], esi
mov word [r12], ax
jmp 0x100096d03
mov eax, 0xc0000225
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x100097c78
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbp, rcx
xor r12d, r12d
lea rdx, [0x10014f7f0]
lea rcx, [rax - 0x58]
mov qword [rax + 0x18], r12
mov rdi, r12
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x90]
mov edx, 0x20001
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x48], 0x40
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jge 0x100097d11
cmp eax, 0xc0000017
je 0x100097df5
cmp eax, 0xc000009a
je 0x100097df5
mov ebx, 0xc0000452
jmp 0x100097df5
mov rsi, qword [rsp + 0x90]
call fcn.100097fec
mov rbx, rax
cmp rax, r12
je 0x100097d31
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x100097d34
mov rbx, rsi
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x88], r12d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x100097d81
cmp eax, r12d
jl 0x100097df5
mov ebx, 0xc0000001
jmp 0x100097df5
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rax + 0x60]
add r8, 2
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
cmp rax, r12
jne 0x100097db5
mov ebx, 0xc000009a
jmp 0x100097df5
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
movzx eax, word [rsp + 0x88]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov word [rsp + 0x22], ax
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jl 0x100097df5
movzx eax, word [rsp + 0x20]
shr rax, 1
mov word [rdi + rax*2], r12w
mov qword [rbp], rdi
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x100097e08
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, r12d
jge 0x100097e2e
cmp rdi, r12
je 0x100097e2e
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100098784
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
and dword [rax + 0x10], 0
and qword [rax + 0x18], 0
mov rbp, rcx
lea rcx, [rax - 0x68]
lea rdx, [0x10014f940]
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x68], rsi
and qword [rsp + 0x80], rsi
and qword [rsp + 0x88], rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x40
call fcn.100098914
mov edi, eax
test eax, eax
js 0x1000988b6
lea rax, [rsp + 0xb8]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov edi, eax
test eax, eax
js 0x1000988b6
mov rbx, qword [rsp + 0xc0]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [0x10014f9c0]
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9d, [rsi + 1]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
test eax, eax
js 0x1000988b6
mov ecx, 0x60019
call fcn.100098ba8
mov rsi, rax
test rax, rax
jne 0x10009889a
mov edi, 0xc0000001
jmp 0x1000988b6
mov rcx, qword [rsp + 0xc0]
mov r8, rax
mov edx, 4
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov edi, eax
test eax, eax
jns 0x1000988c4
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x1000988d7
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x1000988f8
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x100098914
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rax + 8], 0
lea r9, [rax + 8]
lea rdx, [0x10014f940]
mov r8d, 0x60019
xor ecx, ecx
xor esi, esi
call fcn.100098eec
mov edi, eax
test eax, eax
jns 0x100098998
cmp eax, 0xc0000034
jne 0x100098952
xor edi, edi
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x100098965
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x100098986
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov ecx, 0xf003f
call fcn.100098ba8
mov rbx, qword [rsp + 0x30]
mov rsi, rax
test rax, rax
jne 0x1000989b6
mov edi, 0xc0000001
jmp 0x100098957
mov r8, rax
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov edi, eax
test eax, eax
js 0x100098957
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
lea rdx, [0x10014f940]
mov r8d, 0xf003f
xor ecx, ecx
call fcn.100098eec
mov edi, eax
test eax, eax
js 0x100098952
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov edi, eax
jmp 0x100098957
Function at 0x100098f88
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
xor edi, edi
and qword [rax + 0x18], rdi
and qword [rbp], rdi
and dword [rsi], edi
lea rcx, [rax - 0x28]
mov rbx, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rbx, rbx
je 0x100098fe8
lea r9, [rsp + 0x70]
mov r8d, 0x20019
mov rdx, rbx
xor ecx, ecx
call fcn.100098eec
mov ebx, eax
test eax, eax
jns 0x100098fed
jmp 0x1000990e5
and qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10009902d
test eax, eax
js 0x1000990e5
mov ebx, 0xc0000001
jmp 0x1000990e5
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x10009905d
mov ebx, 0xc000009a
jmp 0x1000990e5
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x1000990e5
cmp dword [rdi + 4], 1
je 0x10009909e
mov ebx, 0xc0000024
jmp 0x1000990e5
add dword [rsp + 0x60], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp], rax
test rax, rax
je 0x100099053
mov r8d, dword [rsp + 0x60]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x60]
xor ebx, ebx
mov dword [rsi], r11d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1000990f5
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x100099116
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x100099bac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
jne 0x100099bd9
lea edx, [rcx + 0x38]
lea r8, [0x100009b80]
lea rcx, [0x100009b90]
call fcn.100099ad8
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor edi, edi
mov rcx, rbx
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x58], rdi
call fcn.10009b37c
mov ebx, eax
test eax, eax
js 0x100099cb7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100099c38
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070005
jne 0x100099cb7
mov ebx, 0x80780047
jmp 0x100099cb7
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, [0x100009bc0]
call fcn.10009b5b0
mov ebx, eax
test eax, eax
js 0x100099cb2
and qword [rsp + 0x30], rdi
mov rdi, qword [rsp + 0x58]
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x100099cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80780047
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070005
cmove ecx, ebx
mov ebx, ecx
jmp 0x100099cb7
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, 0xffffffffffffffff
je 0x100099cda
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x10009ad34
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r9d
mov rdi, r8
mov rbp, rdx
cmp rdx, rbx
jne 0x10009ad70
lea r8, [0x100009cb0]
lea rcx, [0x100009c28]
mov edx, 0x205
call fcn.100099ad8
cmp rdi, rbx
jne 0x10009ad8d
lea r8, [0x100009c68]
lea rcx, [0x100009c28]
mov edx, 0x206
call fcn.100099ad8
cmp esi, ebx
jbe 0x10009ade5
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call sub.bcrypt.dll_BCryptHashData
cmp eax, ebx
jge 0x10009ae1c
bts eax, 0x1c
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10009ae1c
test byte [rcx + 0x1c], 1
je 0x10009ae1c
cmp byte [rcx + 0x19], 2
jb 0x10009ae1c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b18]
mov edx, 0x13
mov r9d, ebx
call fcn.10001c7dc
jmp 0x10009ae1c
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10009ae1c
test byte [rcx + 0x1c], 1
je 0x10009ae1c
cmp byte [rcx + 0x19], 5
jb 0x10009ae1c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b18]
mov edx, 0x14
mov r9, rdi
call fcn.10001d680
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x10009bf90
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor r14d, r14d
mov r12, rdx
lea r9, [rax + 0x10]
mov qword [rdx], r14
xor r8d, r8d
xor edx, edx
mov r13, rcx
mov ebx, r14d
mov dword [rax + 0x18], r14d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp eax, r14d
jne 0x10009bfef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10009bfef
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
jmp 0x10009c0b8
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
cmp rax, r14
jne 0x10009c00e
mov ebx, 0x8007000e
jmp 0x10009c0aa
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp eax, r14d
jne 0x10009c040
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
jmp 0x10009c0aa
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rbp, rcx
cmp ecx, r14d
je 0x10009c0aa
lea eax, [rcx + 1]
mov ebx, eax
lea rcx, [rax + rax]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
cmp rax, r14
jne 0x10009c078
mov ebx, 0x8007000e
jmp 0x10009c09c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.100043e4c
cmp eax, r14d
mov ebx, eax
jl 0x10009c09c
lea ecx, [rbp - 1]
mov qword [r12], rdi
mov word [rdi + rcx*2], r14w
mov rdi, r14
cmp rdi, r14
je 0x10009c0aa
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, r14
je 0x10009c0b8
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, r14d
jge 0x10009c0f8
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10009c0f8
test byte [rcx + 0x1c], 1
je 0x10009c0f8
cmp byte [rcx + 0x19], 3
jb 0x10009c0f8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003af8]
mov edx, 0xa
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10009c118
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r12
push r15
sub rsp, 0x40
and qword [rdx], 0
and qword [rax + 0x18], 0
mov rsi, rdx
lea rdx, [rax + 0x18]
mov r12, rcx
call fcn.10009b438
lea r15, [0x1001653b8]
mov ebx, eax
test eax, eax
js 0x10009c274
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x80]
and dword [rsp + 0x28], 0
mov r8d, 3
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x10009c1b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10009c243
test byte [rcx + 0x1c], 1
je 0x10009c243
cmp byte [rcx + 0x19], 2
jb 0x10009c243
lea edx, [rbp + 0xc]
jmp 0x10009c220
xor eax, eax
xor r9d, r9d
xor r8d, r8d
and qword [rsp + 0x38], rax
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov edx, 0x7405c
mov rcx, rbp
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10009c253
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10009c243
test byte [rcx + 0x1c], 1
je 0x10009c243
cmp byte [rcx + 0x19], 2
jb 0x10009c243
mov edx, 0xc
mov r9, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003af8]
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x10009c265
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, qword [0x1001653b8]
cmp rbp, 0xffffffffffffffff
je 0x10009c27b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x80], 0
je 0x10009c29b
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10009c2cd
cmp rcx, r15
je 0x10009c2cd
bt dword [rcx + 0x1c], 9
jae 0x10009c2cd
cmp byte [rcx + 0x19], 2
jb 0x10009c2cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003af8]
mov edx, 0xd
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov eax, ebx
add rsp, 0x40
pop r15
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x10009d154
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
lea r14, [0x100003af8]
mov ebp, 1
cmp rcx, r12
je 0x10009d1b8
test byte [rcx + 0x1c], bpl
je 0x10009d1b8
cmp byte [rcx + 0x19], 4
jb 0x10009d1b8
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r14
call fcn.10001c7b8
xor ebx, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
lea edi, [rbx + 0x14]
mov r8, rdi
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x5a]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, ebx
jge 0x10009d222
mov ebx, eax
bts ebx, 0x1c
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10009d2c5
test byte [rcx + 0x1c], 8
je 0x10009d2a3
cmp byte [rcx + 0x19], 2
jb 0x10009d2a3
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 5]
mov r9d, ebx
mov r8, r14
call fcn.10001c7dc
jmp 0x10009d29c
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10009d257
test byte [rcx + 0x1c], bpl
je 0x10009d257
cmp byte [rcx + 0x19], 4
jb 0x10009d257
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1a
mov r8, r14
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r12
je 0x10009d299
test byte [rcx + 0x1c], bpl
je 0x10009d299
cmp byte [rcx + 0x19], 4
jb 0x10009d299
mov rcx, qword [rcx + 0x10]
lea rax, [0x100004a18]
cmp dil, bl
lea r9, [0x100004a20]
mov edx, 0x1b
mov r8, r14
cmovne r9, rax
call fcn.10001da24
mov byte [rsi], dil
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10009d2c5
test byte [rcx + 0x1c], bpl
je 0x10009d2c5
cmp byte [rcx + 0x19], 4
jb 0x10009d2c5
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r14
call fcn.10001c7b8
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret