joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009936c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
test rcx, rcx
jne 0x1400993b0
lea r8, str.pwszLogsDirectory
mov edx, 0x23c
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.140088f60
and qword [rdi], 0
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x1400993e8
test byte [rcx + 0x1c], 1
je 0x1400993e8
cmp byte [rcx + 0x19], 4
jb 0x1400993e8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f1d8]
mov edx, 0x23
call fcn.14000c0e8
mov ebx, 0x208
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rsp + 0x230]
xor edx, edx
call sub.msvcrt.dll_memset
mov r11d, 0x104
lea r8, str._SystemRoot_Logs
mov edx, r11d
lea rcx, [rsp + 0x20]
call fcn.140006300
mov ebx, eax
test eax, eax
js 0x140099480
mov r8d, r11d
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14009946b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140099480
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140099480
xor r8d, r8d
lea rcx, [rsp + 0x230]
mov rdx, rdi
call fcn.14008a470
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x1400994ad
test byte [rcx + 0x1c], 1
je 0x1400994ad
cmp byte [rcx + 0x19], 4
jb 0x1400994ad
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f1d8]
mov edx, 0x24
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400a3e18
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 r15
sub rsp, 0x30
mov rsi, rdx
lea r15, [0x14016a048]
mov rbp, rcx
xor edi, edi
cmp edi, 5
jae 0x1400a3f11
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400a3f47
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x20
jne 0x1400a3ec7
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400a3eaf
test byte [rcx + 0x1c], 1
je 0x1400a3eaf
cmp byte [rcx + 0x19], 3
jb 0x1400a3eaf
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x32]
mov r9, rbp
mov qword [rsp + 0x20], rsi
lea r8, [0x140150108]
call fcn.140014ff8
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
inc edi
jmp 0x1400a3e40
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400a3f00
test byte [rcx + 0x1c], 1
je 0x1400a3f00
cmp byte [rcx + 0x19], 2
jb 0x1400a3f00
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150108]
mov edx, 0x53
mov dword [rsp + 0x28], ebx
mov r9, rbp
mov qword [rsp + 0x20], rsi
call fcn.1400150ac
test ebx, ebx
jle 0x1400a3f0d
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x1400a3f49
jne 0x1400a3f47
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400a3f40
test byte [rcx + 0x1c], 1
je 0x1400a3f40
cmp byte [rcx + 0x19], 2
jb 0x1400a3f40
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150108]
mov edx, 0x54
call fcn.14000c0e8
mov eax, 0x80780163
jmp 0x1400a3f49
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 r15
ret
Function at 0x1400a7020
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x38]
and qword [r11 - 0x48], 0
xorps xmm0, xmm0
mov edi, edx
mov rbx, rcx
mov rcx, qword [rcx + 8]
lea rdx, [r11 - 0x30]
mov r8d, 0x20
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400a70cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400a70be
test byte [rcx + 0x1c], 2
je 0x1400a70be
cmp byte [rcx + 0x19], 2
jb 0x1400a70be
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150108]
mov edx, 0x63
mov r9d, ebx
call fcn.14001539c
test ebx, ebx
jle 0x1400a7134
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400a7134
mov r9d, dword [rsp + 0x30]
cmp r9d, 0x20
je 0x1400a7116
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400a712a
test byte [rcx + 0x1c], 2
je 0x1400a712a
cmp byte [rcx + 0x19], 2
jb 0x1400a712a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150108]
mov edx, 0x64
mov dword [rsp + 0x20], 0x20
call fcn.14004075c
jmp 0x1400a712a
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x38]
call fcn.1400944b4
mov ebx, eax
test eax, eax
jns 0x1400a7134
neg edi
sbb ebx, ebx
add ebx, 0x80780002
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400a7330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
xorps xmm0, xmm0
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.140093d80
mov ebx, eax
test eax, eax
js 0x1400a7413
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400a73f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1400a73e5
test byte [rcx + 0x1c], 2
je 0x1400a73e5
cmp byte [rcx + 0x19], 2
jb 0x1400a73e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150108]
mov edx, 0x65
mov r9d, ebx
call fcn.14001539c
test ebx, ebx
jle 0x1400a7413
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400a7413
cmp dword [rsp + 0x30], 0x20
je 0x1400a7413
lea r8, str.dwWritten__sizeof_rgChecksum_
mov edx, 0xd2f
lea rcx, [0x14014f878]
call fcn.140088f60
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400a8ac0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x300
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov esi, r9d
mov rbx, r8
mov rdi, rdx
xor edx, edx
mov r8d, 0x288
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x38]
call fcn.1400a3bf4
nop
xor r14d, r14d
test rbx, rbx
jne 0x1400a8b28
lea r8, str.pCatalog___NULL
mov edx, 0x599
lea rcx, [0x14014f878]
call fcn.140088f60
mov rdx, rdi
call fcn.1400a7950
nop
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400a76f4
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400a3dac
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14009ffd4
mov ebx, eax
test eax, eax
jns 0x1400a8bb1
lea rax, [0x14016a048]
mov rcx, qword [0x14016a048]
cmp rcx, rax
je 0x1400a8caf
test byte [rcx + 0x1c], 1
je 0x1400a8caf
cmp byte [rcx + 0x19], 2
jb 0x1400a8caf
mov edx, 0x36
mov r9d, ebx
lea r8, [0x140150108]
mov rcx, qword [rcx + 0x10]
call fcn.14000c114
jmp 0x1400a8caf
lea rcx, [rsp + 0x38]
call fcn.1400a4af8
mov ebx, eax
test eax, eax
jns 0x1400a8bf3
lea rax, [0x14016a048]
mov rcx, qword [0x14016a048]
cmp rcx, rax
je 0x1400a8caf
test byte [rcx + 0x1c], 1
je 0x1400a8caf
cmp byte [rcx + 0x19], 2
jb 0x1400a8caf
mov edx, 0x37
jmp 0x1400a8b99
lea rcx, [rsp + 0x38]
call fcn.1400a4030
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.1400a8598
mov ebx, eax
test eax, eax
jns 0x1400a8c57
lea rax, [0x14016a048]
mov rcx, qword [0x14016a048]
cmp rcx, rax
je 0x1400a8caf
test byte [rcx + 0x1c], 1
je 0x1400a8caf
cmp byte [rcx + 0x19], 2
jb 0x1400a8caf
mov edx, 0x38
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x140150108]
mov rcx, qword [rcx + 0x10]
call fcn.140014f78
jmp 0x1400a8caf
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400a8924
mov ebx, eax
test eax, eax
jns 0x1400a8ce1
lea rax, [0x14016a048]
mov rcx, qword [0x14016a048]
cmp rcx, rax
je 0x1400a8caf
test byte [rcx + 0x1c], 1
je 0x1400a8caf
cmp byte [rcx + 0x19], 2
jb 0x1400a8caf
mov edx, 0x39
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140150108]
mov rcx, qword [rcx + 0x10]
call fcn.1400150ac
cmp word [rsp + 0x60], r14w
je 0x1400a8cd3
lea rcx, [rsp + 0x38]
call fcn.1400a4030
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x38]
call fcn.1400a3ca0
mov eax, ebx
jmp 0x1400a8d13
mov word [rsp + 0x60], r14w
cmp dword [rsp + 0x30], r14d
jne 0x1400a8cf7
mov rdx, rdi
call fcn.1400a7434
nop
lea rcx, [rsp + 0x38]
call fcn.1400a3ca0
xor eax, eax
jmp 0x1400a8d13
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x320]
add rsp, 0x300
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a92a0
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
mov rbp, rsp
sub rsp, 0x20
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
test r8d, r8d
je 0x1400a92e4
test rdx, rdx
jne 0x1400a92f1
lea r8, str.pbVal___NULL
mov edx, 0x2c6
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.140088f60
jmp 0x1400a92e9
test rdi, rdi
jne 0x1400a92f1
or eax, 0xffffffff
jmp 0x1400a948a
xor eax, eax
test r8d, r8d
je 0x1400a930b
mov r8, r14
movzx ecx, byte [rdx]
inc rdx
rol eax, 1
xor eax, ecx
sub r8, 1
jne 0x1400a92fb
mov r9, qword [rsi + 0x10]
xor edx, edx
div dword [rsi]
mov ebx, edx
mov r15d, edx
lea rcx, [rdx*8]
add r9, rcx
mov qword [rbp + 0x48], rcx
mov r12, qword [r9]
test r12, r12
jne 0x1400a9359
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.1400ab2ac
test eax, eax
jns 0x1400a941c
lea rdx, [0x1401667c8]
mov dword [rbp + 0x50], eax
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov rax, qword [rsi + 0x18]
mov ecx, ebx
and ecx, 0x1f
shr r15, 5
mov r13d, 1
shl r13d, cl
test dword [rax + r15*4], r13d
je 0x1400a940a
mov r13d, dword [r12]
xor r15d, r15d
cmp r15d, r13d
jae 0x1400a93a9
mov rdx, qword [r12 + r15*8 + 8]
mov r9d, r14d
mov r8, rdi
call fcn.1400abc40
test eax, eax
jne 0x1400a939e
inc r15d
jmp 0x1400a9380
shl ebx, 0xb
or ebx, r15d
jmp 0x1400a9488
lea r9, [rbp + 0x58]
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.1400ab2ac
test eax, eax
jns 0x1400a93d3
lea rdx, [0x1401667c8]
mov dword [rbp + 0x50], eax
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov r9, qword [rbp + 0x48]
mov rdx, r12
add r9, qword [rsi + 0x10]
mov rcx, rsi
mov r8, qword [rbp + 0x58]
call fcn.1400aaf70
test eax, eax
jns 0x1400a9402
lea rdx, [0x1401667c8]
mov dword [rbp + 0x50], eax
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
shl ebx, 0xb
or ebx, r13d
jmp 0x1400a9488
mov r9d, r14d
mov r8, rdi
mov rdx, r12
call fcn.1400abc40
test eax, eax
je 0x1400a9421
shl ebx, 0xb
jmp 0x1400a9488
lea r9, [rbp + 0x58]
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.1400ab2ac
test eax, eax
jns 0x1400a944b
lea rdx, [0x1401667c8]
mov dword [rbp + 0x50], eax
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov r9, qword [rbp + 0x48]
mov rdx, r12
add r9, qword [rsi + 0x10]
mov rcx, rsi
mov r8, qword [rbp + 0x58]
call fcn.1400ab634
test eax, eax
jns 0x1400a947a
lea rdx, [0x1401667c8]
mov dword [rbp + 0x50], eax
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov rax, qword [rsi + 0x18]
shl ebx, 0xb
or dword [rax + r15*4], r13d
or ebx, 1
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 0x1400abd6c
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 r12
push r14
push r15
sub rsp, 0x20
mov r14d, r8d
mov rsi, r9
mov rbp, rdx
mov rdi, rcx
test r9, r9
jne 0x1400abdb2
lea r8, str.pAtom___NULL
mov edx, 0x10ec
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.140088f60
test rbp, rbp
jne 0x1400abdcf
lea r8, str.pbVal___NULL
mov edx, 0x10ed
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.140088f60
or dword [rsi], 0xffffffff
xor eax, eax
test r14d, r14d
je 0x1400abdef
mov rdx, rbp
mov r8, r14
movzx ecx, byte [rdx]
inc rdx
rol eax, 1
xor eax, ecx
sub r8, 1
jne 0x1400abddf
xor edx, edx
div dword [rdi]
mov rax, qword [rdi + 0x10]
mov ebx, edx
mov r15, qword [rax + rdx*8]
test r15, r15
je 0x1400abe5c
mov r8, qword [rdi + 0x18]
mov ecx, ebx
shr rdx, 5
and ecx, 0x1f
mov eax, dword [r8 + rdx*4]
bt eax, ecx
jae 0x1400abe41
mov r12d, dword [r15]
xor edi, edi
cmp edi, r12d
jae 0x1400abe5c
mov rdx, qword [r15 + rdi*8 + 8]
mov r9d, r14d
mov r8, rbp
call fcn.1400abc40
test eax, eax
jne 0x1400abe3a
inc edi
jmp 0x1400abe1d
shl ebx, 0xb
or ebx, edi
jmp 0x1400abe56
mov r9d, r14d
mov r8, rbp
mov rdx, r15
call fcn.1400abc40
test eax, eax
je 0x1400abe5c
shl ebx, 0xb
mov dword [rsi], ebx
xor eax, eax
jmp 0x1400abe61
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400bdba8
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 [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, qword [rsp + 0x2f0]
mov r14, qword [rsp + 0x2f8]
mov rsi, qword [rsp + 0x308]
mov dword [rsp + 0x40], r9d
movzx r13d, r8b
movzx r12d, dl
mov qword [rsp + 0x48], rcx
mov r10, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp r10, rbx
je 0x1400bdc6a
test byte [r10 + 0x1c], 4
je 0x1400bdc35
cmp byte [r10 + 0x19], 4
jb 0x1400bdc35
mov rcx, qword [r10 + 0x10]
lea r8, [0x140151728]
mov edx, 0x60
call fcn.14000c0e8
mov r10, qword [0x14016a048]
cmp r10, rbx
je 0x1400bdc6a
test byte [r10 + 0x1c], 4
je 0x1400bdc6a
cmp byte [r10 + 0x19], 5
jb 0x1400bdc6a
mov rcx, qword [r10 + 0x10]
lea r8, [0x140151728]
mov edx, 0x61
mov dword [rsp + 0x28], r13d
mov r9, r14
mov dword [rsp + 0x20], r12d
call fcn.1400401b0
or rdx, 0xffffffffffffffff
mov rcx, rdx
xor eax, eax
inc rcx
cmp word [r15 + rcx*2], ax
jne 0x1400bdc73
mov rdi, rdx
inc rdi
cmp word [r14 + rdi*2], ax
jne 0x1400bdc80
lea ebp, [rdi + rcx]
lea eax, [rbp + 1]
cmp eax, 0x104
jbe 0x1400bdcc7
mov dword [rsi], 0x57
mov eax, 2
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, ecx
mov rdx, r15
lea rcx, [rsp + 0x60]
lea rbx, [rax + rax]
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, edi
lea rcx, [rsp + 0x60]
add r8, r8
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov eax, ebp
add rax, rax
cmp rax, 0x208
jae 0x1400bde3a
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor edx, edx
mov word [rsp + rax + 0x60], cx
mov dword [rsp + 0x28], 0x2000080
lea r8d, [rcx + 7]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bddb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400bdd5b
xor eax, eax
jmp 0x1400bdca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x1400bdda6
test byte [rcx + 0x1c], 4
je 0x1400bdda6
cmp byte [rcx + 0x19], 2
jb 0x1400bdda6
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
mov edx, 0x62
mov dword [rsp + 0x20], eax
lea r8, [0x140151728]
call fcn.140014f78
mov eax, 6
jmp 0x1400bdca2
mov rax, qword [rsp + 0x48]
lea r9, [0x1400c1790]
mov r8, qword [rsp + 0x300]
mov rcx, rbx
mov edx, dword [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], r13d
call fcn.1400c0340
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x1400bde33
test byte [rcx + 0x1c], 4
je 0x1400bde33
cmp byte [rcx + 0x19], 4
jb 0x1400bde33
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x63
call fcn.14000c0e8
mov eax, edi
jmp 0x1400bdca2
call fcn.1400073b8
int3
Function at 0x1400c2728
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
mov r8, qword [rcx + 8]
add rax, 0x1f
mov rcx, qword [rdx + 8]
shr rax, 5
test eax, eax
je 0x1400c2753
mov edx, eax
mov eax, dword [rcx]
lea rcx, [rcx + 4]
xor dword [r8], eax
lea r8, [r8 + 4]
sub rdx, 1
jne 0x1400c2740
ret
Function at 0x1400d32e4
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400d330d
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]
Function at 0x1400e8d98
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x1400e8ddf
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.140007cb0
mov rcx, qword [rdi + 0x10]
mov r8d, esi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400e8e31
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, rbx
mov rcx, rdi
call fcn.1400e2b54
test eax, eax
jns 0x1400e8e58
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 rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
Function at 0x1400ed07c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x60], 4
mov rdi, r8
test r8, r8
jne 0x1400ed0b7
lea r8, str.pdwValue
mov edx, 0x46e
lea rcx, str.base_stor_blbcoresdk_smart_smartregistry.hpp
call fcn.140088f60
mov ebx, 0x80004005
jmp 0x1400ed116
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400ed0c7
mov ebx, 0x8000ffff
jmp 0x1400ed116
and dword [r8], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400ed109
jg 0x1400ed0fc
mov ebx, eax
jmp 0x1400ed105
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400ed116
cmp dword [rsp + 0x68], 4
jne 0x1400ed0b0
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 0x1400f9778
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 rsi, r9
mov r14b, r8b
mov r15b, dl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400f97ef
mov rcx, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp rcx, rbx
je 0x1400f97e5
test byte [rcx + 0x1c], 1
je 0x1400f97e5
cmp byte [rcx + 0x19], 4
jb 0x1400f97e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0x48
mov r9, rdi
call fcn.140014f10
mov esi, 1
jmp 0x1400f991a
mov rax, qword [0x14016a048]
lea rbx, [0x14016a048]
cmp rax, rbx
je 0x1400f9839
test byte [rax + 0x1c], 1
je 0x1400f9839
cmp byte [rax + 0x19], 3
jb 0x1400f9839
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
lea r8, [0x140156858]
mov edx, 0x49
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000c114
mov r9, rsi
mov r8b, r14b
mov dl, r15b
mov rcx, rdi
call fcn.1400906bc
mov esi, eax
test eax, eax
jns 0x1400f98c2
mov rcx, qword [0x14016a048]
cmp rcx, rbx
je 0x1400f991a
test byte [rcx + 0x1c], 1
je 0x1400f988f
cmp byte [rcx + 0x19], 2
jb 0x1400f988f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0x4a
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140014f78
mov rcx, qword [0x14016a048]
cmp rcx, rbx
je 0x1400f991a
test byte [rcx + 0x1c], 1
je 0x1400f991a
cmp byte [rcx + 0x19], 2
jb 0x1400f991a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0x4c
mov dword [rsp + 0x20], esi
mov r9, rdi
call fcn.140014f78
jmp 0x1400f991a
mov edx, 0x2000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x1400f991a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, rbx
je 0x1400f991a
test byte [rcx + 0x1c], 1
je 0x1400f991a
cmp byte [rcx + 0x19], 3
jb 0x1400f991a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.14003fbc0
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x1400f9940
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]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1400f99a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x1400f99a9
test byte [rcx + 0x1c], 1
je 0x1400f99a9
cmp byte [rcx + 0x19], 3
jb 0x1400f99a9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156858]
mov edx, 0x4d
mov r9d, eax
call fcn.14001539c
jmp 0x1400f99a9
test al, 0x10
je 0x1400f99a9
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret