joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a515c
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r15
sub rsp, 0x40
mov rdi, r9
mov r12, rdx
mov rbx, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
lea r15, [0x1000039c8]
cmp rcx, rax
je 0x1000a51b1
test byte [rcx + 0x1c], 1
je 0x1000a51b1
cmp byte [rcx + 0x19], 4
jb 0x1000a51b1
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r15
call fcn.10001c7b8
and qword [rsp + 0x68], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x38], 0
test rdi, rdi
jne 0x1000a51e0
lea r8, [0x10000a998]
lea rcx, [0x10000a8c0]
mov edx, 0x1e3
call fcn.100099ad8
or qword [rdi], 0xffffffffffffffff
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1000a56e4
mov ebx, eax
test eax, eax
js 0x1000a5349
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9d, 8
mov r8, r12
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x1000a533b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a5277
test byte [rcx + 0x1c], 1
je 0x1000a5277
cmp byte [rcx + 0x19], 2
jb 0x1000a5277
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d
mov r9d, ebx
mov r8, r15
call fcn.10001c7dc
cmp ebx, 0x8007052e
je 0x1000a5293
cmp ebx, 0x8007051f
je 0x1000a5293
cmp ebx, 0x8007052f
jne 0x1000a5349
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r8, r12
lea r9d, [rbx + 9]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x1000a530b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a5349
test byte [rcx + 0x1c], 1
je 0x1000a5349
cmp byte [rcx + 0x19], 2
jb 0x1000a5349
mov rcx, qword [rcx + 0x10]
mov edx, 0x1e
mov r9d, ebx
mov r8, r15
call fcn.10001c7dc
jmp 0x1000a5349
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a533b
test byte [rcx + 0x1c], 1
je 0x1000a533b
cmp byte [rcx + 0x19], 4
jb 0x1000a533b
mov rcx, qword [rcx + 0x10]
mov edx, 0x1f
mov r8, r15
call fcn.10001c7b8
mov rax, qword [rsp + 0x68]
or qword [rsp + 0x68], 0xffffffffffffffff
mov qword [rdi], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
or qword [rsp + 0x68], 0xffffffffffffffff
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a53a0
test byte [rcx + 0x1c], 1
je 0x1000a53a0
cmp byte [rcx + 0x19], 4
jb 0x1000a53a0
mov rcx, qword [rcx + 0x10]
mov edx, 0x20
mov r8, r15
call fcn.10001c7b8
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r15
ret
Function at 0x1000a70d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x450
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebp, ebp
mov rsi, rcx
cmp rcx, rbp
jne 0x1000a7121
lea r8, [0x10000ad60]
lea rcx, [0x10000acc0]
mov edx, 0x24a
call fcn.100099ad8
mov qword [rsi], rbp
mov rbx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rbx, r12
je 0x1000a715f
test byte [rbx + 0x1c], 1
je 0x1000a715f
cmp byte [rbx + 0x19], 4
jb 0x1000a715f
mov rcx, qword [rbx + 0x10]
lea r8, [0x100003728]
mov edx, 0x23
call fcn.10001c7b8
mov rbx, qword [0x1001653b8]
mov edi, 0x208
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rdi
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x230]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [0x100003738]
lea rax, [rsp + 0x20]
mov r11d, 0x104
sub r8, rax
lea rcx, [rsp + 0x20]
mov rdx, r11
mov edi, ebp
lea rax, [rdx + 0x7ffffefa]
cmp rax, rbp
je 0x1000a71c7
movzx eax, word [r8 + rcx]
cmp ax, bp
je 0x1000a71c7
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1000a71a4
cmp rdx, rbp
jne 0x1000a71d5
sub rcx, 2
mov edi, 0x8007007a
cmp edi, ebp
mov word [rcx], bp
jl 0x1000a7228
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, r11d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jne 0x1000a720c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, ebp
cmovle edi, eax
jmp 0x1000a7221
lea rcx, [rsp + 0x230]
xor r8d, r8d
mov rdx, rsi
call fcn.10009b4ec
mov edi, eax
mov rbx, qword [0x1001653b8]
cmp rbx, r12
je 0x1000a724e
test byte [rbx + 0x1c], 1
je 0x1000a724e
cmp byte [rbx + 0x19], 4
jb 0x1000a724e
mov rcx, qword [rbx + 0x10]
lea r8, [0x100003728]
mov edx, 0x24
call fcn.10001c7b8
mov eax, edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.10014e480
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1000b2048
Capabilities:
Move file

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 r13
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
xor edi, edi
lea r13, [0x1001653b8]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1000b20d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x20
jne 0x1000b210f
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000b20c6
test byte [rcx + 0x1c], 1
je 0x1000b20c6
cmp byte [rcx + 0x19], 3
jb 0x1000b20c6
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x32]
lea r8, [0x1000036e8]
mov r9, rbp
mov qword [rsp + 0x20], rsi
call fcn.10001df38
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jb 0x1000b2070
cmp edi, 5
jne 0x1000b2157
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000b2108
test byte [rcx + 0x1c], 1
je 0x1000b2108
cmp byte [rcx + 0x19], 2
jb 0x1000b2108
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x4f]
lea r8, [0x1000036e8]
call fcn.10001c7b8
mov eax, 0x80780163
jmp 0x1000b2159
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000b2148
test byte [rcx + 0x1c], 1
je 0x1000b2148
cmp byte [rcx + 0x19], 2
jb 0x1000b2148
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
lea r8, [0x1000036e8]
mov edx, 0x53
mov r9, rbp
mov qword [rsp + 0x20], rsi
call fcn.10001e360
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1000b2159
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x1000b31e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
mov ebx, edx
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000b3289
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000b327a
test byte [rcx + 0x1c], 2
je 0x1000b327a
cmp byte [rcx + 0x19], 2
jb 0x1000b327a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000036e8]
mov edx, 0x63
mov r9d, ebx
call fcn.10001c7dc
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1000b32f3
mov r9d, dword [rsp + 0x30]
cmp r9d, 0x20
je 0x1000b32d2
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000b32ea
test byte [rcx + 0x1c], 2
je 0x1000b32ea
cmp byte [rcx + 0x19], 2
jb 0x1000b32ea
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000036e8]
mov edx, 0x64
mov dword [rsp + 0x20], 0x20
call fcn.10001e8b4
jmp 0x1000b32ea
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call fcn.10009aac4
test eax, eax
jns 0x1000b32f3
neg ebx
sbb eax, eax
add eax, 0x80780002
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1000b3314
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call fcn.10009a964
mov ebx, eax
test eax, eax
js 0x1000b33f5
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000b33d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000b33c6
test byte [rcx + 0x1c], 2
je 0x1000b33c6
cmp byte [rcx + 0x19], 2
jb 0x1000b33c6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000036e8]
mov edx, 0x65
mov r9d, edi
call fcn.10001c7dc
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1000b33f5
cmp dword [rsp + 0x30], 0x20
je 0x1000b33f5
lea r8, [0x10000b988]
lea rcx, [0x10000b150]
mov edx, 0xd2f
call fcn.100099ad8
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1000b87d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
test r8d, r8d
je 0x1000b880f
test rdx, rdx
jne 0x1000b881c
lea r8, [0x10000bfa0]
lea rcx, [0x10000bef0]
mov edx, 0x2c3
call fcn.100099ad8
test rdi, rdi
jne 0x1000b881c
or eax, 0xffffffff
jmp 0x1000b8a16
xor eax, eax
test ebp, ebp
je 0x1000b8838
mov rdx, rdi
mov r8, rbp
movzx ecx, byte [rdx]
rol eax, 1
inc rdx
xor eax, ecx
sub r8, 1
jne 0x1000b8828
mov r9, qword [rsi + 0x10]
xor edx, edx
div dword [rsi]
mov r15d, edx
mov ebx, edx
mov r12d, edx
shl r15, 3
add r9, r15
mov qword [rsp + 0x78], r15
mov r14, qword [r9]
test r14, r14
jne 0x1000b888c
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call fcn.1000ba6c4
test eax, eax
jns 0x1000b8884
lea rdx, [0x1001613c8]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll__CxxThrowException
int3
shl ebx, 0xb
jmp 0x1000b8a14
mov rax, qword [rsi + 0x18]
mov ecx, ebx
mov r13d, 1
and ecx, 0x1f
shr r12, 5
shl r13d, cl
test dword [rax + r12*4], r13d
jne 0x1000b8955
cmp byte [r14], 9
jne 0x1000b88e3
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rdx, r14
mov rcx, rsi
call fcn.1000bb570
cmp dword [rsp + 0x70], ebp
jne 0x1000b88e3
mov r8d, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rdx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1000b8884
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call fcn.1000ba6c4
test eax, eax
jns 0x1000b8910
lea rdx, [0x1001613c8]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll__CxxThrowException
int3
mov rax, qword [rsi + 0x10]
mov r8, qword [rsp + 0x68]
mov rdx, r14
lea r9, [r15 + rax]
mov rcx, rsi
call fcn.1000ba798
test eax, eax
jns 0x1000b8942
lea rdx, [0x1001613c8]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll__CxxThrowException
int3
mov rax, qword [rsi + 0x18]
shl ebx, 0xb
or dword [rax + r12*4], r13d
or ebx, 1
jmp 0x1000b8a14
mov r13d, dword [r14]
xor r12d, r12d
lea r15, [r14 + 8]
test r13d, r13d
je 0x1000b89a6
mov rdx, qword [r15]
cmp byte [rdx], 9
jne 0x1000b899a
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.1000bb570
cmp dword [rsp + 0x70], ebp
jne 0x1000b899a
mov r8d, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rdx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1000b89d3
inc r12d
add r15, 8
cmp r12d, r13d
jb 0x1000b8964
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call fcn.1000ba6c4
test eax, eax
jns 0x1000b89db
lea rdx, [0x1001613c8]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll__CxxThrowException
int3
shl ebx, 0xb
or ebx, r12d
jmp 0x1000b8a14
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x68]
mov rdx, r14
add r9, qword [rsi + 0x10]
mov rcx, rsi
call fcn.1000ba8c4
test eax, eax
jns 0x1000b8a0e
lea rdx, [0x1001613c8]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll__CxxThrowException
int3
shl ebx, 0xb
or ebx, r13d
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000bb39c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, r9
mov r13d, r8d
mov r12, rdx
mov r15, rcx
test r9, r9
jne 0x1000bb3d9
lea r8, [0x10000c198]
lea rcx, [0x10000bef0]
mov edx, 0x10e9
call fcn.100099ad8
test r12, r12
jne 0x1000bb3f6
lea r8, [0x10000bfa0]
lea rcx, [0x10000bef0]
mov edx, 0x10ea
call fcn.100099ad8
or dword [rsi], 0xffffffff
xor eax, eax
test r13d, r13d
je 0x1000bb416
mov rdx, r12
mov r8, r13
movzx ecx, byte [rdx]
rol eax, 1
inc rdx
xor eax, ecx
sub r8, 1
jne 0x1000bb406
mov rcx, qword [r15 + 0x10]
xor edx, edx
div dword [r15]
mov ebx, edx
mov r9d, edx
mov rdx, qword [rcx + rdx*8]
test rdx, rdx
je 0x1000bb4d5
mov r8, qword [r15 + 0x18]
shr r9, 5
mov ecx, ebx
mov eax, dword [r8 + r9*4]
and ecx, 0x1f
bt eax, ecx
jb 0x1000bb484
cmp byte [rdx], 9
jne 0x1000bb4d5
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, r15
call fcn.1000bb570
cmp dword [rsp + 0x70], r13d
jne 0x1000bb4d5
mov r8d, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rdx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1000bb4d5
shl ebx, 0xb
jmp 0x1000bb4f4
mov r14d, dword [rdx]
xor edi, edi
lea rbp, [rdx + 8]
test r14d, r14d
je 0x1000bb4d5
mov rdx, qword [rbp]
cmp byte [rdx], 9
jne 0x1000bb4ca
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, r15
call fcn.1000bb570
cmp dword [rsp + 0x70], r13d
jne 0x1000bb4ca
mov r8d, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rdx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1000bb4ef
inc edi
add rbp, 8
cmp edi, r14d
jb 0x1000bb492
mov eax, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
shl ebx, 0xb
or ebx, edi
xor eax, eax
mov dword [rsi], ebx
jmp 0x1000bb4da
Function at 0x1000c54e8
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x288
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, qword [rsp + 0x2f0]
mov rsi, qword [rsp + 0x2f8]
mov rbx, qword [rsp + 0x308]
mov dword [rsp + 0x40], r9d
mov r12b, r8b
mov bpl, dl
mov qword [rsp + 0x48], rcx
mov rdi, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rdi, r13
je 0x1000c55aa
test byte [rdi + 0x1c], 4
je 0x1000c5571
cmp byte [rdi + 0x19], 4
jb 0x1000c5571
mov rcx, qword [rdi + 0x10]
lea r8, [0x100003198]
mov edx, 0x59
call fcn.10001c7b8
mov rdi, qword [0x1001653b8]
cmp rdi, r13
je 0x1000c55aa
test byte [rdi + 0x1c], 4
je 0x1000c55aa
cmp byte [rdi + 0x19], 5
jb 0x1000c55aa
movzx eax, r12b
movzx ecx, bpl
lea r8, [0x100003198]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi + 0x10]
mov edx, 0x5a
mov r9, rsi
call fcn.10001dd64
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, r15
mov rcx, r8
repne scasw ax, word [rdi]
mov rdi, rsi
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasw ax, word [rdi]
not rcx
lea r14d, [rcx + rdx - 1]
lea r13, [rcx - 1]
lea eax, [r14 + 1]
cmp eax, 0x104
jbe 0x1000c55ef
mov dword [rbx], 0x57
lea eax, [r8 + 3]
jmp 0x1000c5738
mov eax, edx
lea rcx, [rsp + 0x60]
mov rdx, r15
lea rdi, [rax + rax]
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov r8d, r13d
lea rcx, [rsp + rdi + 0x60]
add r8, r8
mov rdx, rsi
call sub.msvcrt.dll_memcpy
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r8d, [rax + 7]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], 0x2000080
mov word [rsp + r14*2 + 0x60], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000c56b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000c5664
xor eax, eax
jmp 0x1000c5738
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000c56a9
test byte [rcx + 0x1c], 4
je 0x1000c56a9
cmp byte [rcx + 0x19], 2
jb 0x1000c56a9
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
lea r8, [0x100003198]
mov edx, 0x5b
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov eax, 6
jmp 0x1000c5738
mov r8, qword [rsp + 0x300]
mov edx, dword [rsp + 0x40]
movzx eax, bpl
mov dword [rsp + 0x50], eax
movzx eax, r12b
lea r9, [0x1000c428c]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x48]
mov rcx, rsi
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.1000c432c
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x1000c5736
test byte [rcx + 0x1c], 4
je 0x1000c5736
cmp byte [rcx + 0x19], 4
jb 0x1000c5736
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x5c
call fcn.10001c7b8
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1000c8f24
Capabilities:
Encode data using xor

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 r14
sub rsp, 0x60
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x1000c8f7d
test byte [rcx + 0x1c], 4
je 0x1000c8f7d
cmp byte [rcx + 0x19], 4
jb 0x1000c8f7d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0xb9
call fcn.10001c7b8
mov r8d, dword [rbx + 0x48]
mov rdx, qword [rbx + 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov rax, qword [0x1001653b8]
cmp rax, r14
je 0x1000c8fd2
test byte [rax + 0x1c], 4
je 0x1000c8fd2
cmp byte [rax + 0x19], 4
jb 0x1000c8fd2
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003198]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xba
call fcn.10001c7dc
cmp byte [rbx + 0x10], 0
je 0x1000c90de
mov r8d, dword [rbx + 0x48]
mov rdx, qword [rbx + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov r11d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
add r11, 0x1f
shr r11, 5
test r11d, r11d
je 0x1000c9020
mov r8d, r11d
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r8, 1
jne 0x1000c900e
cmp dword [rbx + 0x4c], 1
jne 0x1000c90d7
mov rdi, qword [rsp + 0x90]
lea rax, [0x10000d420]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
or qword [rsp + 0x30], 0xffffffffffffffff
mov qword [rsp + 0x28], rax
mov r9d, esi
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x20], rbp
call fcn.1000c54e8
test eax, eax
jne 0x1000c916f
mov qword [rsp + 0x38], rdi
or qword [rsp + 0x30], 0xffffffffffffffff
lea rax, [0x10000d440]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
mov r9d, esi
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x20], rbp
call fcn.1000c54e8
test eax, eax
jne 0x1000c916f
lea rcx, [rsp + 0x40]
mov r9d, esi
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
call fcn.1000c5d2c
test eax, eax
jne 0x1000c916f
mov r8, rdi
mov edx, esi
mov rcx, rbx
call fcn.1000c6320
test eax, eax
jne 0x1000c916f
xor eax, eax
jmp 0x1000c916f
mov rax, qword [rsp + 0x90]
mov r9, rdi
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1000c8aa8
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000c916d
test byte [rcx + 0x1c], 4
je 0x1000c9147
cmp byte [rcx + 0x19], 4
jb 0x1000c9147
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003198]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xbb
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000c916d
test byte [rcx + 0x1c], 4
je 0x1000c916d
cmp byte [rcx + 0x19], 4
jb 0x1000c916d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0xbc
call fcn.10001c7b8
mov eax, ebx
lea r11, [rsp + 0x60]
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
Function at 0x1000d2614
Capabilities:
Get volume information via ioctl

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, 0xc0
xor r13d, r13d
mov rsi, rcx
mov dword [rsp + 0x40], r13d
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x1000d2673
test byte [rcx + 0x1c], 4
je 0x1000d2673
cmp byte [rcx + 0x19], 4
jb 0x1000d2673
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x1c6
call fcn.10001c7b8
mov rbp, qword [rsp + 0x108]
mov r12, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x118]
mov qword [rbp], r13
mov r8d, 3
mov qword [rsp + 0x30], r13
mov qword [r12], r13
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rbx], r13d
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000d270e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x1000d2704
test byte [rcx + 0x1c], 4
je 0x1000d2704
cmp byte [rcx + 0x19], 2
jb 0x1000d2704
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x1c7
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov eax, 0xd
jmp 0x1000d2845
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x90064
mov rcx, rdi
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r13d
jne 0x1000d275b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d2704
mov rsi, qword [rsp + 0x98]
mov r13, qword [rsp + 0x100]
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call fcn.100062c34
lea rcx, [r13 + 8]
call fcn.10001cf48
lea rcx, [rsp + 0x48]
mov bl, al
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
test bl, bl
jne 0x1000d27df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000d27d8
test byte [rcx + 0x1c], 4
je 0x1000d27d8
cmp byte [rcx + 0x19], 2
jb 0x1000d27d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x1c8
call fcn.10001c7b8
mov eax, 1
jmp 0x1000d2845
mov r8, rsi
mov rdx, rsi
mov rcx, r13
call fcn.100062c34
lea rcx, [r13 + 8]
call fcn.10001cf48
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp], rsi
mov qword [r12], rsi
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000d2843
test byte [rcx + 0x1c], 4
je 0x1000d2843
cmp byte [rcx + 0x19], 4
jb 0x1000d2843
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov edx, 0x1ca
call fcn.10001c7b8
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret