joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a330
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov r15, r8
mov rbp, rcx
mov rcx, qword [0x140173048]
lea r13, [0x140173048]
cmp rcx, r13
je 0x14009a388
test byte [rcx + 0x1c], 1
je 0x14009a388
cmp byte [rcx + 0x19], 4
jb 0x14009a388
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x2c
call fcn.14000c328
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x70], ebx
mov qword [r15], rbx
mov dword [r14], ebx
lea esi, [rbx + 0x40]
mov dword [rsp + 0x68], esi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ecx, esi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14009a49b
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14009a3f6
test byte [rcx + 0x1c], 1
je 0x14009a3f6
cmp byte [rcx + 0x19], 4
jb 0x14009a3f6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x2d
mov r9d, esi
call fcn.1400155dc
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.RestoredVolumes
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14009a47e
cmp eax, 0xea
jne 0x14009a43b
mov esi, dword [rsp + 0x68]
jmp 0x14009a39d
test eax, eax
jg 0x14009a443
mov ebx, eax
jmp 0x14009a44c
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14009a4a0
test byte [rcx + 0x1c], 1
je 0x14009a4a0
cmp byte [rcx + 0x19], 2
jb 0x14009a4a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x2e
mov r9d, ebx
call fcn.14000c354
jmp 0x14009a4a0
cmp dword [rsp + 0x70], 7
je 0x14009a48c
mov ebx, 0x8000ffff
jmp 0x14009a4a0
mov eax, dword [rsp + 0x68]
mov qword [r15], rdi
mov rdi, rbx
mov dword [r14], eax
jmp 0x14009a4a0
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14009a4dc
test byte [rcx + 0x1c], 1
je 0x14009a4dc
cmp byte [rcx + 0x19], 4
jb 0x14009a4dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x2f
call fcn.14000c328
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14009a4fc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14009a552
test byte [rcx + 0x1c], 1
je 0x14009a552
cmp byte [rcx + 0x19], 4
jb 0x14009a552
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x1f
call fcn.14000c328
xor ebx, ebx
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x34]
lea r9d, [rbx + 0xc]
mov dword [rsp + 0x34], ebx
lea edx, [rbx + 5]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
test eax, eax
jns 0x14009a5bc
mov ecx, eax
call fcn.14002a840
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14009a64f
test byte [rcx + 0x1c], 1
je 0x14009a629
cmp byte [rcx + 0x19], 2
jb 0x14009a629
mov edx, 0x20
jmp 0x14009a60f
mov eax, dword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov r9d, 4
or eax, 0xe
mov rcx, rdi
mov dword [rsp + 0x30], eax
lea edx, [r9 - 2]
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
nop dword [rax + rax]
test eax, eax
jns 0x14009a622
mov ecx, eax
call fcn.14002a840
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14009a64f
test byte [rcx + 0x1c], 1
je 0x14009a629
cmp byte [rcx + 0x19], 2
jb 0x14009a629
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov r9d, eax
call fcn.14000c354
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14009a64f
test byte [rcx + 0x1c], 1
je 0x14009a64f
cmp byte [rcx + 0x19], 4
jb 0x14009a64f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x22
call fcn.14000c328
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14009ae60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov r14, rcx
mov rcx, qword [0x140173048]
lea r12, [0x140173048]
cmp rcx, r12
je 0x14009aeb8
test byte [rcx + 0x1c], 1
je 0x14009aeb8
cmp byte [rcx + 0x19], 4
jb 0x14009aeb8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x23
call fcn.14000c328
mov eax, dword [rsp + 0x70]
mov r9d, esi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, r14
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14009af2d
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x14009af1a
test byte [rcx + 0x1c], 1
je 0x14009af1a
cmp byte [rcx + 0x19], 2
jb 0x14009af1a
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
xor r9d, r9d
lea r8, [0x140157088]
call fcn.14000c354
mov rcx, qword [0x140173048]
test edi, edi
jg 0x14009af22
mov ebx, edi
jmp 0x14009af34
movzx ebx, di
or ebx, 0x80070000
jmp 0x14009af34
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x14009af5a
test byte [rcx + 0x1c], 1
je 0x14009af5a
cmp byte [rcx + 0x19], 4
jb 0x14009af5a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x25
call fcn.14000c328
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret

Function at 0x14009b364
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r9d
mov rdi, r8
mov rbp, rdx
test rdx, rdx
jne 0x14009b3a0
lea r8, str.hCryptHash
mov edx, 0x206
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.1400906e0
test rdi, rdi
jne 0x14009b3bd
lea r8, [0x140157138]
mov edx, 0x207
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.1400906e0
test esi, esi
je 0x14009b41f
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
test eax, eax
jns 0x14009b456
mov ecx, eax
call fcn.14002a840
mov ebx, eax
mov rcx, qword [0x140173048]
lea rdx, [0x140173048]
cmp rcx, rdx
je 0x14009b456
test byte [rcx + 0x1c], 1
je 0x14009b456
cmp byte [rcx + 0x19], 2
jb 0x14009b456
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157200]
mov edx, 0x13
mov r9d, eax
call fcn.14000c354
jmp 0x14009b456
mov rcx, qword [0x140173048]
lea rdx, [0x140173048]
cmp rcx, rdx
je 0x14009b456
test byte [rcx + 0x1c], 1
je 0x14009b456
cmp byte [rcx + 0x19], 5
jb 0x14009b456
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157200]
mov edx, 0x14
mov r9, rdi
call fcn.140040cb4
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a0aec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
test rcx, rcx
jne 0x1400a0b30
lea r8, str.pwszLogsDirectory
mov edx, 0x23c
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.1400906e0
and qword [rdi], 0
mov rcx, qword [0x140173048]
lea rsi, [0x140173048]
cmp rcx, rsi
je 0x1400a0b68
test byte [rcx + 0x1c], 1
je 0x1400a0b68
cmp byte [rcx + 0x19], 4
jb 0x1400a0b68
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157878]
mov edx, 0x23
call fcn.14000c328
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.140006530
mov ebx, eax
test eax, eax
js 0x1400a0c00
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 0x1400a0beb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400a0c00
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400a0c00
xor r8d, r8d
lea rcx, [rsp + 0x230]
mov rdx, rdi
call fcn.140091bf0
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x1400a0c2d
test byte [rcx + 0x1c], 1
je 0x1400a0c2d
cmp byte [rcx + 0x19], 4
jb 0x1400a0c2d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157878]
mov edx, 0x24
call fcn.14000c328
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400ab598
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, [0x140173048]
mov rbp, rcx
xor edi, edi
cmp edi, 5
jae 0x1400ab691
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400ab6c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x20
jne 0x1400ab647
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x1400ab62f
test byte [rcx + 0x1c], 1
je 0x1400ab62f
cmp byte [rcx + 0x19], 3
jb 0x1400ab62f
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x32]
mov r9, rbp
mov qword [rsp + 0x20], rsi
lea r8, [0x1401587a8]
call fcn.140015238
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
inc edi
jmp 0x1400ab5c0
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x1400ab680
test byte [rcx + 0x1c], 1
je 0x1400ab680
cmp byte [rcx + 0x19], 2
jb 0x1400ab680
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401587a8]
mov edx, 0x53
mov dword [rsp + 0x28], ebx
mov r9, rbp
mov qword [rsp + 0x20], rsi
call fcn.1400152ec
test ebx, ebx
jle 0x1400ab68d
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x1400ab6c9
jne 0x1400ab6c7
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x1400ab6c0
test byte [rcx + 0x1c], 1
je 0x1400ab6c0
cmp byte [rcx + 0x19], 2
jb 0x1400ab6c0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401587a8]
mov edx, 0x54
call fcn.14000c328
mov eax, 0x80780163
jmp 0x1400ab6c9
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 0x1400ae7a0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140173708]
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 0x1400ae84d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x1400ae83e
test byte [rcx + 0x1c], 2
je 0x1400ae83e
cmp byte [rcx + 0x19], 2
jb 0x1400ae83e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401587a8]
mov edx, 0x63
mov r9d, ebx
call fcn.1400155dc
test ebx, ebx
jle 0x1400ae8b4
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400ae8b4
mov r9d, dword [rsp + 0x30]
cmp r9d, 0x20
je 0x1400ae896
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x1400ae8aa
test byte [rcx + 0x1c], 2
je 0x1400ae8aa
cmp byte [rcx + 0x19], 2
jb 0x1400ae8aa
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401587a8]
mov edx, 0x64
mov dword [rsp + 0x20], 0x20
call fcn.14004099c
jmp 0x1400ae8aa
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x38]
call fcn.14009bc34
mov ebx, eax
test eax, eax
jns 0x1400ae8b4
neg edi
sbb ebx, ebx
add ebx, 0x80780002
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400aeab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140173708]
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.14009b500
mov ebx, eax
test eax, eax
js 0x1400aeb93
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 0x1400aeb74
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x1400aeb65
test byte [rcx + 0x1c], 2
je 0x1400aeb65
cmp byte [rcx + 0x19], 2
jb 0x1400aeb65
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401587a8]
mov edx, 0x65
mov r9d, ebx
call fcn.1400155dc
test ebx, ebx
jle 0x1400aeb93
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400aeb93
cmp dword [rsp + 0x30], 0x20
je 0x1400aeb93
lea r8, str.dwWritten__sizeof_rgChecksum_
mov edx, 0xd2f
lea rcx, [0x140157f18]
call fcn.1400906e0
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400b0240
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x300
mov rax, qword [0x140173708]
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.1400ab374
nop
xor r14d, r14d
test rbx, rbx
jne 0x1400b02a8
lea r8, str.pCatalog___NULL
mov edx, 0x599
lea rcx, [0x140157f18]
call fcn.1400906e0
mov rdx, rdi
call fcn.1400af0d0
nop
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400aee74
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400ab52c
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400a7754
mov ebx, eax
test eax, eax
jns 0x1400b0331
lea rax, [0x140173048]
mov rcx, qword [0x140173048]
cmp rcx, rax
je 0x1400b042f
test byte [rcx + 0x1c], 1
je 0x1400b042f
cmp byte [rcx + 0x19], 2
jb 0x1400b042f
mov edx, 0x36
mov r9d, ebx
lea r8, [0x1401587a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000c354
jmp 0x1400b042f
lea rcx, [rsp + 0x38]
call fcn.1400ac278
mov ebx, eax
test eax, eax
jns 0x1400b0373
lea rax, [0x140173048]
mov rcx, qword [0x140173048]
cmp rcx, rax
je 0x1400b042f
test byte [rcx + 0x1c], 1
je 0x1400b042f
cmp byte [rcx + 0x19], 2
jb 0x1400b042f
mov edx, 0x37
jmp 0x1400b0319
lea rcx, [rsp + 0x38]
call fcn.1400ab7b0
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.1400afd18
mov ebx, eax
test eax, eax
jns 0x1400b03d7
lea rax, [0x140173048]
mov rcx, qword [0x140173048]
cmp rcx, rax
je 0x1400b042f
test byte [rcx + 0x1c], 1
je 0x1400b042f
cmp byte [rcx + 0x19], 2
jb 0x1400b042f
mov edx, 0x38
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1401587a8]
mov rcx, qword [rcx + 0x10]
call fcn.1400151b8
jmp 0x1400b042f
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400b00a4
mov ebx, eax
test eax, eax
jns 0x1400b0461
lea rax, [0x140173048]
mov rcx, qword [0x140173048]
cmp rcx, rax
je 0x1400b042f
test byte [rcx + 0x1c], 1
je 0x1400b042f
cmp byte [rcx + 0x19], 2
jb 0x1400b042f
mov edx, 0x39
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x1401587a8]
mov rcx, qword [rcx + 0x10]
call fcn.1400152ec
cmp word [rsp + 0x60], r14w
je 0x1400b0453
lea rcx, [rsp + 0x38]
call fcn.1400ab7b0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x38]
call fcn.1400ab420
mov eax, ebx
jmp 0x1400b0493
mov word [rsp + 0x60], r14w
cmp dword [rsp + 0x30], r14d
jne 0x1400b0477
mov rdx, rdi
call fcn.1400aebb4
nop
lea rcx, [rsp + 0x38]
call fcn.1400ab420
xor eax, eax
jmp 0x1400b0493
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x320]
add rsp, 0x300
pop r14
pop rdi
pop rsi
ret
Function at 0x1400b0a20
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 0x1400b0a64
test rdx, rdx
jne 0x1400b0a71
lea r8, str.pbVal___NULL
mov edx, 0x2c6
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.1400906e0
jmp 0x1400b0a69
test rdi, rdi
jne 0x1400b0a71
or eax, 0xffffffff
jmp 0x1400b0c0a
xor eax, eax
test r8d, r8d
je 0x1400b0a8b
mov r8, r14
movzx ecx, byte [rdx]
inc rdx
rol eax, 1
xor eax, ecx
sub r8, 1
jne 0x1400b0a7b
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 0x1400b0ad9
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.1400b2a2c
test eax, eax
jns 0x1400b0b9c
lea rdx, [0x14016f7d0]
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 0x1400b0b8a
mov r13d, dword [r12]
xor r15d, r15d
cmp r15d, r13d
jae 0x1400b0b29
mov rdx, qword [r12 + r15*8 + 8]
mov r9d, r14d
mov r8, rdi
call fcn.1400b33c0
test eax, eax
jne 0x1400b0b1e
inc r15d
jmp 0x1400b0b00
shl ebx, 0xb
or ebx, r15d
jmp 0x1400b0c08
lea r9, [rbp + 0x58]
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.1400b2a2c
test eax, eax
jns 0x1400b0b53
lea rdx, [0x14016f7d0]
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.1400b26f0
test eax, eax
jns 0x1400b0b82
lea rdx, [0x14016f7d0]
mov dword [rbp + 0x50], eax
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
shl ebx, 0xb
or ebx, r13d
jmp 0x1400b0c08
mov r9d, r14d
mov r8, rdi
mov rdx, r12
call fcn.1400b33c0
test eax, eax
je 0x1400b0ba1
shl ebx, 0xb
jmp 0x1400b0c08
lea r9, [rbp + 0x58]
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.1400b2a2c
test eax, eax
jns 0x1400b0bcb
lea rdx, [0x14016f7d0]
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.1400b2db4
test eax, eax
jns 0x1400b0bfa
lea rdx, [0x14016f7d0]
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 0x1400b34ec
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 0x1400b3532
lea r8, str.pAtom___NULL
mov edx, 0x10ec
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.1400906e0
test rbp, rbp
jne 0x1400b354f
lea r8, str.pbVal___NULL
mov edx, 0x10ed
lea rcx, str.base_stor_blbcatalog_atomtbl.cpp
call fcn.1400906e0
or dword [rsi], 0xffffffff
xor eax, eax
test r14d, r14d
je 0x1400b356f
mov rdx, rbp
mov r8, r14
movzx ecx, byte [rdx]
inc rdx
rol eax, 1
xor eax, ecx
sub r8, 1
jne 0x1400b355f
xor edx, edx
div dword [rdi]
mov rax, qword [rdi + 0x10]
mov ebx, edx
mov r15, qword [rax + rdx*8]
test r15, r15
je 0x1400b35dc
mov r8, qword [rdi + 0x18]
mov ecx, ebx
shr rdx, 5
and ecx, 0x1f
mov eax, dword [r8 + rdx*4]
bt eax, ecx
jae 0x1400b35c1
mov r12d, dword [r15]
xor edi, edi
cmp edi, r12d
jae 0x1400b35dc
mov rdx, qword [r15 + rdi*8 + 8]
mov r9d, r14d
mov r8, rbp
call fcn.1400b33c0
test eax, eax
jne 0x1400b35ba
inc edi
jmp 0x1400b359d
shl ebx, 0xb
or ebx, edi
jmp 0x1400b35d6
mov r9d, r14d
mov r8, rbp
mov rdx, r15
call fcn.1400b33c0
test eax, eax
je 0x1400b35dc
shl ebx, 0xb
mov dword [rsi], ebx
xor eax, eax
jmp 0x1400b35e1
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 0x1400c5328
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 [0x140173708]
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 [0x140173048]
lea rbx, [0x140173048]
cmp r10, rbx
je 0x1400c53ea
test byte [r10 + 0x1c], 4
je 0x1400c53b5
cmp byte [r10 + 0x19], 4
jb 0x1400c53b5
mov rcx, qword [r10 + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x60
call fcn.14000c328
mov r10, qword [0x140173048]
cmp r10, rbx
je 0x1400c53ea
test byte [r10 + 0x1c], 4
je 0x1400c53ea
cmp byte [r10 + 0x19], 5
jb 0x1400c53ea
mov rcx, qword [r10 + 0x10]
lea r8, [0x140159dc8]
mov edx, 0x61
mov dword [rsp + 0x28], r13d
mov r9, r14
mov dword [rsp + 0x20], r12d
call fcn.1400403f0
or rdx, 0xffffffffffffffff
mov rcx, rdx
xor eax, eax
inc rcx
cmp word [r15 + rcx*2], ax
jne 0x1400c53f3
mov rdi, rdx
inc rdi
cmp word [r14 + rdi*2], ax
jne 0x1400c5400
lea ebp, [rdi + rcx]
lea eax, [rbp + 1]
cmp eax, 0x104
jbe 0x1400c5447
mov dword [rsi], 0x57
mov eax, 2
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
Function at 0x1400c9ea8
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 0x1400c9ed3
mov edx, eax
mov eax, dword [rcx]
lea rcx, [rcx + 4]
xor dword [r8], eax
lea r8, [r8 + 4]
sub rdx, 1
jne 0x1400c9ec0
ret
Function at 0x1400daa64
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 0x1400daa8d
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]
Function at 0x1400f0518
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 0x1400f055f
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.140007ef0
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 0x1400f05b1
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.1400ea2d4
test eax, eax
jns 0x1400f05d8
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_]