joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f5238
Capabilities:
Resolve function by parsing pe exports

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 r15
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x1400f5291
test byte [rcx + 0x1c], 4
je 0x1400f5291
cmp byte [rcx + 0x19], 4
jb 0x1400f5291
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d660]
mov edx, 0xa
call fcn.14001dd24
mov rax, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x60]
mov r9d, dword [rsp + 0x68]
mov ecx, 0xffff
mov qword [rbx], rbp
mov qword [rbx + 8], rsi
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0x78]
movdqu xmmword [rbx + 0x10], xmm0
movups xmm1, xmmword [rax]
mov rax, rdi
mov dword [rbx + 0x3c], r8d
cqo
mov dword [rbx + 0x40], r9d
and rdx, rcx
add rax, rdx
and rax, rcx
mov ecx, 0x10000
movdqu xmmword [rbx + 0x20], xmm1
sub rax, rdx
xor edx, edx
test eax, eax
mov qword [rbx + 0x34], rdx
mov qword [rbx + 0x48], rdx
cmove eax, ecx
mov dword [rbx + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x58], eax
mov al, byte [rsp + 0x90]
mov byte [rbx + 0x5c], al
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 0x68], rax
mov al, byte [rsp + 0xa8]
mov byte [rbx + 0x70], al
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1400f53fd
test byte [rcx + 0x1c], 4
je 0x1400f5379
cmp byte [rcx + 0x19], 4
jb 0x1400f5379
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], r9d
mov r9d, dword [rbx + 0x30]
mov dword [rsp + 0x20], r8d
lea r8, [0x14000d660]
mov edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.1400d3284
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1400f53fd
test byte [rcx + 0x1c], 4
je 0x1400f53a5
cmp byte [rcx + 0x19], 4
jb 0x1400f53a5
movzx edx, byte [rbx + 0x5c]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.1400f508c
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1400f53fd
test byte [rcx + 0x1c], 4
je 0x1400f53d7
cmp byte [rcx + 0x19], 4
jb 0x1400f53d7
movzx r9d, byte [rbx + 0x70]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d660]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableLevel
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x1400f53fd
test byte [rcx + 0x1c], 4
je 0x1400f53fd
cmp byte [rcx + 0x19], 4
jb 0x1400f53fd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d660]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableFlags
call fcn.14001dd24
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x14010dd6c
Capabilities:
Query environment variable

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, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r14d, r14d
mov ebp, eax
test eax, eax
jne 0x14010ddb4
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, 2
mov rsi, 0xffffffffffffffff
mul rbp
cmovo rax, rsi
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x14010ddec
lea edx, [rsi + 2]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rdi + 0x10]
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14010de14
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
test rbx, rbx
jne 0x14010de27
mov rax, qword [rdi + 0x10]
mov word [rax], r14w
mov dword [rdi + 0x18], r14d
jmp 0x14010de55
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x14010de27
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.140105ff4
test eax, eax
jns 0x14010de55
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.msvcrt.dll_free]
Function at 0x140110ea8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, r8
mov dword [rsp + 0x60], 4
test r8, r8
jne 0x140110ede
lea r8, [0x14000a0f8]
lea rcx, [0x140011a90]
mov edx, 0x46e
call fcn.1400a8be8
jmp 0x140110f30
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140110eee
mov ebx, 0x8000ffff
jmp 0x140110f3d
and dword [r8], ebx
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140110f29
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140110f3d
cmp dword [rsp + 0x68], 4
je 0x140110f37
mov ebx, 0x80004005
jmp 0x140110f3d
mov ecx, dword [rsp + 0x30]
mov dword [rdi], ecx
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14011e5ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
sub rsp, 0x30
and qword [rax + 0x10], 0
mov rsi, rdx
mov byte [rdx], 0
lea rdx, [rax + 0x10]
mov rbp, rcx
call fcn.1400afc1c
mov ebx, eax
test eax, eax
js 0x14011e618
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceEvent
je 0x14011e5ee
mov byte [rsi], 1
jmp 0x14011e614
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070003
je 0x14011e612
cmp ebx, 0x80070002
jne 0x14011e614
xor ebx, ebx
test ebx, ebx
jns 0x14011e653
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14011e653
test byte [rcx + 0x1c], 1
je 0x14011e653
cmp byte [rcx + 0x19], 2
jb 0x14011e653
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0xa
mov r9, rbp
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
cmp qword [rsp + 0x48], 0
je 0x14011e666
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

Function at 0x14011e680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
mov byte [rdx], bl
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceEvent
je 0x14011e6ad
test al, 0x10
jne 0x14011e700
mov byte [rdi], 1
jmp 0x14011e700
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14011e700
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14011e700
test byte [rcx + 0x1c], 1
je 0x14011e700
cmp byte [rcx + 0x19], 2
jb 0x14011e700
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, reloc.ADVAPI32.dll_TraceMessage
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14011e718
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x14011e767
test byte [rcx + 0x1c], 1
je 0x14011e767
cmp byte [rcx + 0x19], 5
jb 0x14011e767
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, reloc.ADVAPI32.dll_GetTraceLoggerHandle
call fcn.14001dd24
test rdi, rdi
jne 0x14011e784
lea r8, [0x140012510]
lea rcx, [0x140012540]
mov edx, 0xab
call fcn.1400a8be8
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceEvent
je 0x14011e7d8
bt eax, 0xa
jae 0x14011e824
mov byte [rdi], 1
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x14011e851
test byte [rcx + 0x1c], 1
je 0x14011e82b
cmp byte [rcx + 0x19], 4
jb 0x14011e82b
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
lea r8, [0x1400127c8]
mov r9, rsi
call fcn.14001ec40
jmp 0x14011e824
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14011e824
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x14011e851
test byte [rcx + 0x1c], 1
je 0x14011e82b
cmp byte [rcx + 0x19], 2
jb 0x14011e82b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableFlags
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x14011e851
test byte [rcx + 0x1c], 1
je 0x14011e851
cmp byte [rcx + 0x19], 5
jb 0x14011e851
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
call fcn.14001dd24
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r14
ret
Function at 0x14011ed74
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rdi, r9
mov r12, r8
and qword [rax + 0x10], rbx
and qword [rdx], rbx
mov r14, rdx
mov r15, rcx
test r9, r9
je 0x14011edad
and qword [r9], rbx
mov ebp, 0x250
mov ecx, ebp
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea r13, [0x14017d3a8]
mov rsi, rax
test rax, rax
jne 0x14011edda
mov rcx, qword [0x14017d3a8]
mov ebx, 0x8007000e
jmp 0x14011ef39
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14011ee62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x14011ef12
cmp eax, 3
je 0x14011ef12
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14011ee4f
test byte [rcx + 0x1c], 1
je 0x14011ee4f
cmp byte [rcx + 0x19], 3
jb 0x14011ee4f
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x1d]
lea r8, [0x1400127c8]
mov r9, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14011ef19
lea r13, [rsi + 0x2c]
lea r8, [rsp + 0x68]
mov rcx, r15
mov rdx, r13
call fcn.14011ec14
mov ebx, eax
test eax, eax
jns 0x14011eeca
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14011eec3
test byte [rcx + 0x1c], 1
je 0x14011eec3
cmp byte [rcx + 0x19], 2
jb 0x14011eec3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x1d
mov r9, r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
call fcn.140028ec8
mov r11, qword [rsp + 0x68]
jmp 0x14011eee7
mov r11, qword [rsp + 0x68]
jmp 0x14011eeee
mov rax, qword [rsp + 0x68]
xor r11d, r11d
mov qword [r14], rax
mov qword [r12], rbp
or rbp, 0xffffffffffffffff
test rdi, rdi
je 0x14011ef12
mov qword [rdi], rsi
xor esi, esi
mov rcx, qword [0x14017d3a8]
test r11, r11
je 0x14011ef03
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rbp, 0xffffffffffffffff
je 0x14011ef19
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14017d3a8]
test rsi, rsi
je 0x14011ef2e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x14011ef66
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14011ef66
test byte [rcx + 0x1c], 1
je 0x14011ef66
cmp byte [rcx + 0x19], 3
jb 0x14011ef66
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x1e
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14011f7cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov bpl, dl
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
lea r12, [0x1400127c8]
cmp rcx, r15
je 0x14011f821
test byte [rcx + 0x1c], 1
je 0x14011f821
cmp byte [rcx + 0x19], 4
jb 0x14011f821
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.14001dd24
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, reloc.ADVAPI32.dll_TraceEvent
jne 0x14011f8bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14011f8a2
test byte [rcx + 0x1c], 1
je 0x14011f880
cmp byte [rcx + 0x19], 2
jb 0x14011f880
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14011f8a2
test byte [rcx + 0x1c], 1
je 0x14011f8a2
cmp byte [rcx + 0x19], 4
jb 0x14011f8a2
mov rcx, qword [rcx + 0x10]
mov edx, UnregisterTraceGuids
mov r8, r12
call fcn.14001dd24
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
lea rcx, [rsp + 0x60]
mov byte [rsp + 0x60], 0
call fcn.1400b2d34
mov ebx, eax
test eax, eax
js 0x14011f879
test bpl, bpl
je 0x14011f91a
bt edi, 0xb
jae 0x14011f951
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14011f910
test byte [rcx + 0x1c], 1
je 0x14011f910
cmp byte [rcx + 0x19], 2
jb 0x14011f910
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
mov ebx, 0x80780066
jmp 0x14011f880
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14011f958
test byte [rcx + 0x1c], 1
je 0x14011f958
cmp byte [rcx + 0x19], 4
jb 0x14011f958
mov rcx, qword [rcx + 0x10]
mov eax, edi
mov edx, 0x32
and eax, 0x800
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
bt edi, 0xe
jae 0x14011f880
cmp rcx, r15
je 0x14011f98e
test byte [rcx + 0x1c], 1
je 0x14011f98e
cmp byte [rcx + 0x19], 2
jb 0x14011f98e
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
mov ebx, 0x80780067
jmp 0x14011f880
Function at 0x1401204c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov rdi, r9
mov r14b, r8b
mov r15b, dl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceEvent
je 0x140120535
mov rcx, qword [0x14017d3a8]
lea rbx, [0x14017d3a8]
cmp rcx, rbx
je 0x14012052b
test byte [rcx + 0x1c], 1
je 0x14012052b
cmp byte [rcx + 0x19], 4
jb 0x14012052b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x48
mov r9, rsi
call fcn.14001ec40
mov edi, 1
jmp 0x14012064a
mov rax, qword [0x14017d3a8]
lea rbx, [0x14017d3a8]
cmp rax, rbx
je 0x140120579
test byte [rax + 0x1c], 1
je 0x140120579
cmp byte [rax + 0x19], 3
jb 0x140120579
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
lea r8, [0x1400127c8]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x49
call fcn.14001de24
mov r9, rdi
mov r8b, r14b
mov dl, r15b
mov rcx, rsi
call fcn.1400ad9cc
mov edi, eax
test eax, eax
jns 0x1401205c6
mov rcx, qword [0x14017d3a8]
cmp rcx, rbx
je 0x140120619
test byte [rcx + 0x1c], 1
je 0x140120619
cmp byte [rcx + 0x19], 2
jb 0x140120619
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x4a
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x140120612
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140120612
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
cmp rcx, rbx
je 0x140120619
test byte [rcx + 0x1c], 1
je 0x140120619
cmp byte [rcx + 0x19], 3
jb 0x140120619
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x4b
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
test edi, edi
jns 0x14012064a
cmp rcx, rbx
je 0x14012064a
test byte [rcx + 0x1c], 1
je 0x14012064a
cmp byte [rcx + 0x19], 2
jb 0x14012064a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x4c
mov r9, rsi
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret

Function at 0x140120670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov byte [rdx], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceEvent
jne 0x1401206c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x1401206cd
test byte [rcx + 0x1c], 1
je 0x1401206cd
cmp byte [rcx + 0x19], 3
jb 0x1401206cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400127c8]
mov edx, 0x4d
mov r9d, eax
call fcn.14001de24
jmp 0x1401206cd
test al, 0x10
je 0x1401206cd
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14012d388
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
and dword [rdx], ebx
mov byte [rax + 0x10], bl
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea rbp, [0x14017d3a8]
sub eax, 2
je 0x14012d431
dec eax
je 0x14012d3d3
cmp eax, 2
jne 0x14012d472
mov dword [rdi], 1
jmp 0x14012d472
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14012d08c
mov ebx, eax
test eax, eax
jns 0x14012d420
mov rcx, qword [0x14017d3a8]
cmp rcx, rbp
je 0x14012d41a
test byte [rcx + 0x1c], 1
je 0x14012d41a
cmp byte [rcx + 0x19], 3
jb 0x14012d41a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013858]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableFlags
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
xor ebx, ebx
xor al, al
jmp 0x14012d424
mov al, byte [rsp + 0x48]
neg al
sbb eax, eax
neg eax
add eax, 2
mov dword [rdi], eax
jmp 0x14012d437
mov dword [rdi], 5
test ebx, ebx
jns 0x14012d472
mov rcx, qword [0x14017d3a8]
cmp rcx, rbp
je 0x14012d472
test dword [rcx + 0x1c], reloc.ADVAPI32.dll_TraceEvent
je 0x14012d472
cmp byte [rcx + 0x19], 3
jb 0x14012d472
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013858]
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14012eee0
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
xor ebp, ebp
lea r9, [rax + 0x10]
xor r8d, r8d
xor edx, edx
mov rsi, rcx
mov ebx, ebp
mov edi, ebp
mov dword [rax + 0x10], ebp
mov dword [rax + 0x18], ebp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea r15, [0x14017d3a8]
lea r12, [0x140013858]
test eax, eax
jne 0x14012ef88
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x14012efe8
mov eax, dword [rsp + 0x68]
mov ecx, reloc.ADVAPI32.dll_TraceEvent
add rax, rax
cmp rax, rcx
jbe 0x14012ef5d
mov ebx, 0x80070216
jmp 0x14012f0e3
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14012ef79
mov ebx, 0x8007000e
jmp 0x14012f0e3
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov ebx, ebp
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x14012f029
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012f0d5
test byte [rcx + 0x1c], 1
je 0x14012f0d5
cmp byte [rcx + 0x19], 2
jb 0x14012f0d5
mov edx, reloc.ADVAPI32.dll_EventRegister
jmp 0x14012f0bb
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012f10c
test byte [rcx + 0x1c], 1
je 0x14012f0ea
cmp byte [rcx + 0x19], 2
jb 0x14012f0ea
mov rcx, qword [rcx + 0x10]
mov edx, reloc.ADVAPI32.dll_UnregisterTraceGuids
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x14012f0e3
mov rsi, rdi
cmp word [rdi], bp
je 0x14012f0ce
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012f061
test byte [rcx + 0x1c], 1
je 0x14012f061
cmp byte [rcx + 0x19], 4
jb 0x14012f061
mov rcx, qword [rcx + 0x10]
mov edx, reloc.ADVAPI32.dll_EventEnabled
mov r9, rsi
mov r8, r12
call fcn.14001ec40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x14012f08a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012f072
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012f035
jmp 0x14012f0ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012f0d5
test byte [rcx + 0x1c], 1
je 0x14012f0d5
cmp byte [rcx + 0x19], 2
jb 0x14012f0d5
mov edx, reloc.ADVAPI32.dll_EventUnregister
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
test rdi, rdi
je 0x14012f0ea
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012f10c
test byte [rcx + 0x1c], 1
je 0x14012f10c
cmp byte [rcx + 0x19], 4
jb 0x14012f10c
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r12
call fcn.14001dd24
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret