joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ae39c
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, [0x140183048]
mov rbp, rcx
xor edi, edi
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400ae442
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x20
jne 0x1400ae479
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400ae42a
test byte [rcx + 0x1c], 1
je 0x1400ae42a
cmp byte [rcx + 0x19], 3
jb 0x1400ae42a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x32]
mov r9, rbp
mov qword [rsp + 0x20], rsi
lea r8, [0x140163478]
call fcn.140006004
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
inc edi
cmp edi, 5
jb 0x1400ae3c4
cmp edi, 5
jne 0x1400ae4c1
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400ae472
test byte [rcx + 0x1c], 1
je 0x1400ae472
cmp byte [rcx + 0x19], 2
jb 0x1400ae472
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x4f]
lea r8, [0x140163478]
call fcn.140004e50
mov eax, 0x80780163
jmp 0x1400ae4c3
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400ae4b2
test byte [rcx + 0x1c], 1
je 0x1400ae4b2
cmp byte [rcx + 0x19], 2
jb 0x1400ae4b2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140163478]
mov edx, 0x53
mov dword [rsp + 0x28], ebx
mov r9, rbp
mov qword [rsp + 0x20], rsi
call fcn.1400060c0
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400ae4c3
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 0x1400af50c
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rsp + 0x78], rax
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x58]
and qword [r11 - 0x68], 0
xorps xmm0, xmm0
mov edi, edx
mov rsi, rcx
mov rcx, qword [rcx + 8]
lea rdx, [r11 - 0x30]
mov ebx, 0x20
mov r8d, ebx
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400af5c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x1400af5b1
test byte [rcx + 0x1c], 2
je 0x1400af5b1
cmp byte [rcx + 0x19], 2
jb 0x1400af5b1
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x43]
mov r9d, edi
lea r8, [0x140163478]
call fcn.140004e7c
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400af660
mov r9d, dword [rsp + 0x30]
cmp r9d, ebx
je 0x1400af608
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x1400af656
test byte [rcx + 0x1c], 2
je 0x1400af656
cmp byte [rcx + 0x19], 2
jb 0x1400af656
mov rcx, qword [rcx + 0x10]
lea r8, [0x140163478]
mov edx, 0x64
mov dword [rsp + 0x20], ebx
call fcn.1400104d0
jmp 0x1400af656
mov rsi, qword [rsi + 0x10]
lea rdx, [rsp + 0x38]
xorps xmm0, xmm0
mov rcx, rsi
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.14009a464
mov ebx, eax
test eax, eax
js 0x1400af645
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
call fcn.14009ab60
test al, al
mov ecx, 0x80004005
cmove ebx, ecx
lea r8, [rsi + 0x10]
lea rdx, [rsi + 8]
call fcn.14009acb4
test ebx, ebx
jns 0x1400af660
neg edi
sbb ebx, ebx
add ebx, 0x80780002
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401534b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400af68c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140183808]
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.14009a464
mov ebx, eax
test eax, eax
js 0x1400af770
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 0x1400af751
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x1400af741
test byte [rcx + 0x1c], 2
je 0x1400af741
cmp byte [rcx + 0x19], 2
jb 0x1400af741
mov rcx, qword [rcx + 0x10]
lea r8, [0x140163478]
mov edx, 0x65
mov r9d, edi
call fcn.140004e7c
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400af770
cmp dword [rsp + 0x30], 0x20
je 0x1400af770
lea r8, str.dwWritten__sizeof_rgChecksum_
mov edx, 0xd2f
lea rcx, [0x140162bf8]
call fcn.14008f4c8
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401534b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400b383c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebp, r8d
mov rsi, r9
mov r15, rdx
mov rdi, rcx
test r9, r9
jne 0x1400b3881
lea r8, str.pAtom___NULL
mov edx, 0x10ec
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.14008f4c8
test r15, r15
jne 0x1400b389e
lea r8, str.pbVal___NULL
mov edx, 0x10ed
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.14008f4c8
or dword [rsi], 0xffffffff
xor eax, eax
test ebp, ebp
je 0x1400b38bd
mov rdx, r15
mov r8, rbp
movzx ecx, byte [rdx]
inc rdx
rol eax, 1
xor eax, ecx
sub r8, 1
jne 0x1400b38ad
xor edx, edx
div dword [rdi]
mov rax, qword [rdi + 0x10]
mov ebx, edx
mov r9d, edx
mov rdx, qword [rax + rdx*8]
test rdx, rdx
je 0x1400b3992
mov r8, qword [rdi + 0x18]
mov ecx, ebx
shr r9, 5
and ecx, 0x1f
mov eax, dword [r8 + r9*4]
bt eax, ecx
jb 0x1400b3938
cmp byte [rdx], 9
jne 0x1400b3992
lea rax, [rdx + 1]
and eax, 7
lea r13, [0x1401637c8]
mov ecx, dword [r13 + rax*4]
mov eax, dword [rcx + rdx + 1]
test eax, eax
jne 0x1400b3915
xor ecx, ecx
jmp 0x1400b391c
add rcx, 5
add rcx, rdx
cmp eax, ebp
jne 0x1400b3992
mov r8, rax
mov rdx, r15
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400b3992
shl ebx, 0xb
mov dword [rsi], ebx
xor eax, eax
jmp 0x1400b3997
mov r12d, dword [rdx]
lea r14, [rdx + 8]
xor edi, edi
test r12d, r12d
je 0x1400b3992
lea r13, [0x1401637c8]
mov rcx, qword [r14]
cmp byte [rcx], 9
jne 0x1400b3987
lea rax, [rcx + 1]
and eax, 7
mov edx, dword [r13 + rax*4]
mov eax, dword [rdx + rcx + 1]
test eax, eax
jne 0x1400b396d
xor ecx, ecx
jmp 0x1400b3974
add rcx, 5
add rcx, rdx
cmp eax, ebp
jne 0x1400b3987
mov r8, rax
mov rdx, r15
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400b39b5
inc edi
add r14, 8
cmp edi, r12d
jb 0x1400b394d
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
shl ebx, 0xb
or ebx, edi
jmp 0x1400b3932
Function at 0x1400bdcd0
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 [0x140183808]
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 [0x140183048]
lea rbx, [0x140183048]
cmp r10, rbx
je 0x1400bdd92
test byte [r10 + 0x1c], 4
je 0x1400bdd5d
cmp byte [r10 + 0x19], 4
jb 0x1400bdd5d
mov rcx, qword [r10 + 0x10]
lea r8, [0x140164628]
mov edx, 0x60
call fcn.140004e50
mov r10, qword [0x140183048]
cmp r10, rbx
je 0x1400bdd92
test byte [r10 + 0x1c], 4
je 0x1400bdd92
cmp byte [r10 + 0x19], 5
jb 0x1400bdd92
mov rcx, qword [r10 + 0x10]
lea r8, [0x140164628]
mov edx, 0x61
mov dword [rsp + 0x28], r13d
mov r9, r14
mov dword [rsp + 0x20], r12d
call fcn.140010c84
or rdx, 0xffffffffffffffff
mov rcx, rdx
xor eax, eax
inc rcx
cmp word [r15 + rcx*2], ax
jne 0x1400bdd9b
mov rdi, rdx
inc rdi
cmp word [r14 + rdi*2], ax
jne 0x1400bdda8
lea ebp, [rdi + rcx]
lea eax, [rbp + 1]
cmp eax, 0x104
jbe 0x1400bddef
mov dword [rsi], 0x57
mov eax, 2
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401534b0
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 0x1400bdf62
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 0x1400bded8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400bde83
xor eax, eax
jmp 0x1400bddca
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
mov rcx, qword [0x140183048]
lea rdx, [0x140183048]
cmp rcx, rdx
je 0x1400bdece
test byte [rcx + 0x1c], 4
je 0x1400bdece
cmp byte [rcx + 0x19], 2
jb 0x1400bdece
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
mov edx, 0x62
mov dword [rsp + 0x20], eax
lea r8, [0x140164628]
call fcn.140005f80
mov eax, 6
jmp 0x1400bddca
mov rax, qword [rsp + 0x48]
lea r9, [0x1400bce90]
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.1400bcf3c
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
lea rdx, [0x140183048]
cmp rcx, rdx
je 0x1400bdf5b
test byte [rcx + 0x1c], 4
je 0x1400bdf5b
cmp byte [rcx + 0x19], 4
jb 0x1400bdf5b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164628]
mov edx, 0x63
call fcn.140004e50
mov eax, edi
jmp 0x1400bddca
call fcn.140153688
int3
Function at 0x1400c9760
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rbp + 0x2f], rax
and dword [rbp - 0x25], 0
mov rbx, rcx
and dword [rbp - 0x29], 0
lea rcx, [rbp - 0x39]
mov rdi, r9
mov dword [rbp - 0x39], 0x67452301
mov r14d, r8d
mov dword [rbp - 0x35], 0xefcdab89
mov dword [rbp - 0x31], 0x98badcfe
mov dword [rbp - 0x2d], 0x10325476
call fcn.1400de238
mov esi, 8
lea rdx, [rbp - 0x29]
mov r8d, esi
lea rcx, [rbp + 0x27]
call fcn.1400de8a0
mov r9d, dword [rbp - 0x29]
lea eax, [rsi + 0x30]
shr r9d, 3
lea r8d, [rsi + 0x70]
and r9d, 0x3f
lea rdx, [0x140183c10]
sub eax, r9d
lea rcx, [rbp - 0x39]
sub r8d, r9d
cmp r9d, 0x38
cmovb r8d, eax
call fcn.1400de238
mov r8d, esi
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
call fcn.1400de238
mov esi, 0x10
lea rdx, [rbp - 0x39]
mov r8d, esi
mov rcx, rdi
call fcn.1400de8a0
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rsi + 0x48]
call sub.msvcrt.dll_memset
mov rdx, rdi
mov rcx, rbx
sub rdx, rbx
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub rsi, 1
jne 0x1400c9839
mov rcx, qword [0x140183048]
lea rsi, [0x140183048]
cmp rcx, rsi
je 0x1400c98d6
test byte [rcx + 0x1c], 4
je 0x1400c9899
cmp byte [rcx + 0x19], 5
jb 0x1400c9899
mov eax, dword [rdi + 0xc]
mov edx, 0x1f5
mov rcx, qword [rcx + 0x10]
mov r9d, r14d
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
call fcn.1400ba82c
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x1400c98d6
test byte [rcx + 0x1c], 4
je 0x1400c98d6
cmp byte [rcx + 0x19], 5
jb 0x1400c98d6
mov eax, dword [rbx + 0xc]
mov edx, 0x1f6
mov rcx, qword [rcx + 0x10]
mov r9d, r14d
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.1400ba82c
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401534b0
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400c98f8
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r15
sub rsp, 0x40
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
cmp rcx, r15
je 0x1400c9965
test byte [rcx + 0x1c], 4
je 0x1400c9965
cmp byte [rcx + 0x19], 5
jb 0x1400c9965
mov eax, dword [r9 + 0x14]
mov edx, 0x1f7
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rbp
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x28], rsi
call fcn.1400bb2a8
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1400c9a11
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x3e5
jne 0x1400c99dc
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400c9a55
test byte [rcx + 0x1c], 4
je 0x1400c9a55
cmp byte [rcx + 0x19], 5
jb 0x1400c9a55
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164628]
mov edx, 0x1f8
call fcn.140004e50
jmp 0x1400c9a55
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400c9a0c
test byte [rcx + 0x1c], 4
je 0x1400c9a0c
cmp byte [rcx + 0x19], 2
jb 0x1400c9a0c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164628]
mov edx, 0x1f9
mov r9d, edi
call fcn.140004e7c
mov qword [rbx], rdi
jmp 0x1400c9a41
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400c9a3e
test byte [rcx + 0x1c], 4
je 0x1400c9a3e
cmp byte [rcx + 0x19], 5
jb 0x1400c9a3e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164628]
mov edx, 0x1fa
call fcn.140004e50
mov rsi, rdi
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x1400c9da8
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r15
sub rsp, 0x40
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
cmp rcx, r15
je 0x1400c9e15
test byte [rcx + 0x1c], 4
je 0x1400c9e15
cmp byte [rcx + 0x19], 5
jb 0x1400c9e15
mov eax, dword [r9 + 0x14]
mov edx, 0x1fd
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rbp
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x28], rsi
call fcn.1400bb2a8
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1400c9ec1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x3e5
jne 0x1400c9e8c
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400c9f05
test byte [rcx + 0x1c], 4
je 0x1400c9f05
cmp byte [rcx + 0x19], 5
jb 0x1400c9f05
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164628]
mov edx, 0x1fe
call fcn.140004e50
jmp 0x1400c9f05
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400c9ebc
test byte [rcx + 0x1c], 4
je 0x1400c9ebc
cmp byte [rcx + 0x19], 2
jb 0x1400c9ebc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164628]
mov edx, 0x1ff
mov r9d, edi
call fcn.140004e7c
mov qword [rbx], rdi
jmp 0x1400c9ef1
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400c9eee
test byte [rcx + 0x1c], 4
je 0x1400c9eee
cmp byte [rcx + 0x19], 5
jb 0x1400c9eee
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164628]
mov edx, 0x200
call fcn.140004e50
mov rsi, rdi
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x1400dd6b8
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 0x1400dd6e1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]
Function at 0x1400deb10
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 [0x140183048]
lea r15, [0x140183048]
cmp rcx, r15
je 0x1400deb69
test byte [rcx + 0x1c], 4
je 0x1400deb69
cmp byte [rcx + 0x19], 4
jb 0x1400deb69
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164ff8]
mov edx, 0xa
call fcn.140004e50
mov rax, qword [rsp + 0x70]
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
cqo
and rdx, rcx
add rax, rdx
and rax, rcx
xor ecx, ecx
sub rax, rdx
mov dword [rbx + 0x30], eax
mov r8, rax
movdqu xmmword [rbx + 0x20], xmm1
test eax, eax
jne 0x1400debb7
mov eax, 0x10000
mov dword [rbx + 0x30], eax
mov r8d, eax
mov rax, qword [rsp + 0x80]
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x68]
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 qword [rbx + 0x34], rcx
mov qword [rbx + 0x48], rcx
mov dword [rbx + 0x3c], r9d
mov dword [rbx + 0x40], r10d
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400deceb
test byte [rcx + 0x1c], 4
je 0x1400dec58
cmp byte [rcx + 0x19], 4
jb 0x1400dec58
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x140164ff8]
call fcn.1400ba7d0
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400deceb
test byte [rcx + 0x1c], 4
je 0x1400dec93
cmp byte [rcx + 0x19], 4
jb 0x1400dec93
mov rax, qword [rbx]
movzx r9d, byte [rbx + 0x5c]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.1400de9d4
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400deceb
test byte [rcx + 0x1c], 4
je 0x1400decc5
cmp byte [rcx + 0x19], 4
jb 0x1400decc5
movzx r9d, byte [rbx + 0x70]
lea r8, [0x140164ff8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.140004e7c
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1400deceb
test byte [rcx + 0x1c], 4
je 0x1400deceb
cmp byte [rcx + 0x19], 4
jb 0x1400deceb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164ff8]
mov edx, 0xe
call fcn.140004e50
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 0x1400f58ac
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
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor r14d, r14d
mov ebp, eax
test eax, eax
jne 0x1400f5900
xor r9d, r9d
lea edx, [rax + 1]
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 fcn.140153f50
mov rcx, qword [rdi + 0x10]
mov r8d, ebp
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400f5952
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
test rbx, rbx
jne 0x1400f5965
mov rax, qword [rdi + 0x10]
mov word [rax], r14w
mov dword [rdi + 0x18], r14d
jmp 0x1400f5999
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x1400f5965
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400ee320
test eax, eax
jns 0x1400f5999
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_void___cdecl_operator_delete___void____ptr64_]
Function at 0x1400f8ba8
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 0x1400f8be3
lea r8, str.pdwValue
mov edx, 0x46e
lea rcx, str.base_stor_blbcoresdk_smart_smartregistry.hpp
call fcn.14008f4c8
mov ebx, 0x80004005
jmp 0x1400f8c41
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400f8bf3
mov ebx, 0x8000ffff
jmp 0x1400f8c41
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 0x1400f8c34
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400f8c41
cmp dword [rsp + 0x68], 4
jne 0x1400f8bdc
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 0x140105d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rsi, rdx
mov byte [rdx], r14b
mov rbp, rcx
lea rdx, [rax + 0x10]
mov qword [rax + 0x10], r14
call fcn.140096968
mov ebx, eax
test eax, eax
js 0x140105dca
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140105d9f
mov byte [rsi], 1
jmp 0x140105dc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
cmovbe ebx, r14d
test ebx, ebx
jns 0x140105e05
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x140105e05
test byte [rcx + 0x1c], 1
je 0x140105e05
cmp byte [rcx + 0x19], 2
jb 0x140105e05
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005f80
cmp qword [rsp + 0x48], r14
je 0x140105e1d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140105e3c
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 byte [rdx], bl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140105e6f
test al, 0x10
jne 0x140105ec8
mov byte [rdi], 1
jmp 0x140105ec8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140105ec8
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x140105ec8
test byte [rcx + 0x1c], 1
je 0x140105ec8
cmp byte [rcx + 0x19], 2
jb 0x140105ec8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005f80
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret