joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401936e4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rdx
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.PM_]
lea rcx, [0x140450340]
cmp qword [0x140450358], 8
cmovae rcx, qword [0x140450340]
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14019374a
mov rdx, qword [rax]
mov rax, qword [rax + 0x10]
xor edi, edi
cmp rax, qword [0x140450350]
jne 0x1401938bd
test rax, rax
je 0x140193782
sub rdx, rcx
movzx r8d, word [rdx + rcx]
movzx r9d, word [rcx]
cmp r8w, r9w
jne 0x140193874
add rcx, 2
sub rax, 1
jne 0x140193765
mov eax, edi
test eax, eax
jne 0x1401938bd
mov rax, qword [rsi]
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x1401937a0
lock inc dword [rbx + 8]
mov rbx, qword [rsi + 8]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rbx
mov rdx, qword [rax + 0x70]
test rdx, rdx
je 0x140193880
mov r8, qword [rax + 0x90]
test r8, r8
je 0x140193880
add r8, 0x10
add rdx, 0x10
lea rcx, [rbp - 0x48]
call fcn.14006b6ac
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
movabs r14, 0xcbf29ce484222325
mov rdx, rdi
mov rax, qword [rbp - 0x38]
lea r9, [rax + rax]
test r9, r9
je 0x14019381c
movabs rcx, 0x100000001b3
movzx eax, byte [rdx + r8]
xor r14, rax
imul r14, rcx
inc rdx
cmp rdx, r9
jb 0x140193808
lea rcx, [rbp - 0x48]
call fcn.14004b500
nop
test rbx, rbx
je 0x140193918
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x140193918
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140193918
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [str.PM_]
jmp 0x140193918
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x140193784
test rbx, rbx
je 0x1401938bd
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1401938bd
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1401938bd
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [str.PM_]
lea rdx, [0x14030cae0]
lea rcx, [rbp - 0x28]
call fcn.14004a9e4
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
movabs r14, 0xcbf29ce484222325
mov rax, qword [rbp - 0x18]
lea r8, [rax + rax]
test r8, r8
je 0x14019390f
movabs rcx, 0x100000001b3
movzx eax, byte [rdi + rdx]
xor r14, rax
imul r14, rcx
inc rdi
cmp rdi, r8
jb 0x1401938fc
lea rcx, [rbp - 0x28]
call fcn.14004b500
mov rax, r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1401a06a8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
lea rdi, [rcx + 0x138]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov qword [rsp + 0x50], rdi
movabs rcx, 0xcbf29ce484222325
xor r9d, r9d
movzx eax, byte [rsp + r9 + 0x60]
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
inc r9
cmp r9, 8
jb 0x1401a06ed
mov rax, qword [rbx + 0xe0]
and rax, rcx
mov rdx, qword [rbx + 0xc8]
mov r8, rax
add r8, r8
mov r8, qword [rdx + r8*8]
lea r9, [rax + rax]
mov rcx, qword [rbx + 0xb8]
cmp qword [rdx + r9*8], rcx
jne 0x1401a073e
mov rax, rcx
jmp 0x1401a0746
mov rax, qword [rdx + r9*8 + 8]
mov rax, qword [rax]
cmp r8, rax
je 0x1401a0756
cmp qword [r8 + 0x10], rsi
je 0x1401a0759
mov r8, qword [r8]
jmp 0x1401a0733
mov r8, rcx
mov rcx, qword [rbx + 0x68]
mov rdx, rbp
cmp r8, qword [rbx + 0xb8]
je 0x1401a076f
mov r8, qword [r8 + 0x18]
jmp 0x1401a0776
mov r8, qword [rbx + 0x130]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str.PM_]
nop
test rdi, rdi
je 0x1401a0792
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401a59ec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r10, rcx
xor esi, esi
mov dword [rax + 0x10], esi
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x1401a5a1a
mov rdx, qword [rdx]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
lea r9, [r8 + r8]
test r9, r9
je 0x1401a5a4c
movzx eax, byte [rcx + rdx]
xor rbx, rax
movabs r11, 0x100000001b3
imul rbx, r11
inc rcx
cmp rcx, r9
jb 0x1401a5a2f
test r8, r8
je 0x1401a5a8c
mov rcx, qword [r10]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
mov rax, qword [rax + 0x60]
call qword [str.PM_]
nop
mov esi, 1
mov dword [rsp + 0x58], esi
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [str.PM_]
test eax, eax
je 0x1401a5a8c
xor dil, dil
jmp 0x1401a5a8f
mov dil, 1
test sil, 1
je 0x1401a5ad7
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1401a5ad7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1401a5ad7
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov edx, esi
lock xadd dword [rbx + 0xc], edx
add edx, esi
jne 0x1401a5ad7
mov rdx, qword [rbx]
mov rcx, rbx
mov rax, qword [rdx + 8]
call qword [str.PM_]
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1401a6784
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r10, rcx
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx eax, byte [r9 + rdx]
movabs rcx, 0x100000001b3
xor r8, rax
inc r9
imul r8, rcx
cmp r9, 8
jb 0x1401a6794
mov rcx, qword [r10]
mov eax, 0x9e3779b9
mov rdx, qword [r10]
shl rcx, 6
shr rdx, 2
add rcx, r8
add rax, rdx
add rcx, rax
xor qword [r10], rcx
ret
Function at 0x1401b9a2c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov r8, rcx
lea rsi, [rdi + 0x10]
cmp qword [rsi + 0x18], 8
mov r9, rsi
mov r10, qword [rsi + 0x10]
jb 0x1401b9a5f
mov r9, qword [rsi]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r10, r10
je 0x1401b9a8e
movzx eax, byte [rdx + r9]
movabs r11, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r11
cmp rdx, r10
jb 0x1401b9a70
mov rdx, qword [r8 + 0x30]
and rdx, rcx
mov rcx, qword [r8 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x1401b9ac6
cmp qword [rcx + rdx*8], rdi
jne 0x1401b9abb
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r8 + 0x18]
mov rax, qword [r8 + 8]
jmp 0x1401b9abf
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1401b9ad3
cmp qword [rcx + rdx*8], rdi
jne 0x1401b9ad3
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rax, qword [rdi + 8]
lea rcx, [rsi + 0x20]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r8 + 0x10]
call fcn.14004b500
mov rcx, rsi
call fcn.14004b500
mov rcx, rdi
call fcn.1402aed28
mov rsi, qword [rsp + 0x38]
mov rax, r14
mov rdi, qword [rsp + 0x40]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x1401be360
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.14004acb4
xor ebx, ebx
mov rcx, qword [rax + 8]
cmp dword [rcx], 4
jbe 0x1401be3c6
lea rax, str.Initializing_component
mov qword [rbp + 0x2f], 0x2e
mov qword [rbp + 0x27], rax
lea rax, [rbp + 7]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039af8d]
xor r8d, r8d
mov dword [rsp + 0x20], 3
call fcn.140001158
lea rcx, [rbp - 0x21]
call fcn.1401becd4
cmp qword [rbp - 9], 8
lea rcx, [rbp - 0x21]
cmovae rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x1401be45e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
cmp eax, 0xb7
je 0x1401be45e
mov byte [0x14044f698], 1
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1401be4e4
lea rax, [rbp - 0x29]
mov qword [rbp + 0x2f], 4
mov qword [rbp + 0x27], rax
lea rax, str.Sample_Cache_Agent_failed_to_create_cache_directory__using_temp_directory.
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], 0x96
lea rax, [rbp + 7]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b055]
xor r8d, r8d
mov dword [rsp + 0x20], 4
call fcn.140001158
jmp 0x1401be4e4
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401be4e4
cmp qword [rbp - 9], 8
lea rax, str.Using_protected_cache_directory
lea rcx, [rbp - 0x21]
mov qword [rbp + 0x27], rax
cmovae rcx, qword [rbp - 0x21]
lea rdx, [0x14030cae0]
mov qword [rbp + 0x2f], 0x40
mov rax, rbx
test rcx, rcx
je 0x1401be4ad
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1401be4a4
lea eax, [rax*2 + 2]
mov qword [rbp + 0x37], rdx
mov dword [rbp + 0x3f], eax
mov dword [rbp + 0x43], ebx
lea rax, [rbp + 7]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039af0c]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
lea rcx, [rbp - 0x21]
call fcn.14004b500
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rbp
ret
Function at 0x1401be924
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdx, qword [r8]
xor ebx, ebx
mov rcx, qword [rcx]
mov r8d, 0x1000
mov dword [rbp - 0x19], ebx
mov rdi, r9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401be9c8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x19], eax
cmp eax, 0x26
jne 0x1401be977
mov dword [rdi], ebx
jmp 0x1401be9cb
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1401be9c8
lea rax, [rbp - 0x19]
mov qword [rbp + 0x2f], VarR8FromUI1
mov qword [rbp + 0x17], rax
mov edx, 4
lea rax, str.Failed_to_read_sample_file_content
mov qword [rbp + 0x1f], rdx
mov qword [rbp + 0x27], rax
lea rax, [rbp - 9]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea rdx, [0x14039b055]
call fcn.140001158
mov ebx, dword [rbp - 0x19]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x90
pop rdi
pop rbx
pop rbp
ret

Function at 0x1401be9e4
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov r8d, dword [r8]
lea r9, [rbp - 5]
mov rdx, qword [rdx]
mov rcx, qword [rcx]
and dword [rbp - 5], 0
and dword [rbp - 9], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401bea85
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 9], eax
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1401bea85
and dword [rbp + 0x33], 0
lea rax, [rbp - 9]
and dword [rbp + 0x43], 0
mov edx, 4
mov qword [rbp + 0x27], rax
lea rax, str.Failed_to_write_cache_file
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x2f], edx
mov dword [rbp + 0x3f], 0x36
lea rax, [rbp + 7]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea rdx, [0x14039b055]
call fcn.140001158
mov eax, dword [rbp - 9]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x90
pop rbp
ret
Function at 0x1401becd4
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
xor edi, edi
cmp byte [0x14044f698], dil
je 0x1401bed3d
mov edi, 0x104
mov edx, edi
lea rcx, [r11 - 0x50]
call fcn.14016b760
nop
mov rdx, qword [rsp + 0x28]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.14004a9e4
nop
lea rcx, [rsp + 0x28]
call fcn.140084ac8
jmp 0x1401bedb8
lea rcx, [rsp + 0x48]
call fcn.1401eff6c
nop
lea rdx, [0x140463840]
cmp qword [0x140463858], 8
cmovae rdx, qword [0x140463840]
mov r8, qword [0x140463850]
mov rcx, rax
call fcn.14005b1c8
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
lea rcx, [rsp + 0x28]
call fcn.14004b500
nop
lea rcx, [rsp + 0x48]
call fcn.14004b500
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x1401bef90
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rsp + 0x70], xmm0
xor eax, eax
mov word [rsp + 0x60], ax
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14016b760
nop
lea rcx, [rsp + 0x40]
call fcn.1401becd4
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x14030cae0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rdx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14004a9e4
nop
lea rcx, [rsp + 0x40]
call fcn.14004b500
nop
lea rcx, [rsp + 0x20]
call fcn.140084ac8
nop
lea rcx, [rsp + 0x60]
call fcn.14004b500
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x90
pop rbx
ret
Function at 0x1401bfe20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rax, r8
lea r9, [rbp - 0x25]
mov edi, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
xor esi, esi
mov r8d, edx
mov dword [rbp - 0x29], esi
mov rdx, qword [rax]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401bff28
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401bff13
lea rcx, [rbx + 8]
mov qword [rbp + 0xf], 0x7a
cmp qword [rcx + 0x18], 8
lea rax, str.Sample_file_compression_failed___Cannot_read_block_from_file
mov qword [rbp + 7], rax
jb 0x1401bfead
mov rcx, qword [rcx]
lea rdx, [0x14030cae0]
mov rax, rsi
test rcx, rcx
je 0x1401bfecc
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x1401bfec3
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x23], esi
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b1dd]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov ecx, dword [rbp - 0x29]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1401bffd7
cmp dword [rbp - 0x25], edi
je 0x1401bffd5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401bff13
lea rcx, [rbx + 8]
mov qword [rbp + 0xf], 0x7a
cmp qword [rcx + 0x18], 8
lea rax, str.Sample_file_compression_failed___not_all_bytes_in_block_read
mov qword [rbp + 7], rax
jb 0x1401bff6a
mov rcx, qword [rcx]
lea rdx, [0x14030cae0]
mov rax, rsi
test rcx, rcx
je 0x1401bff89
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x1401bff80
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x23], esi
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b1dd]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
jmp 0x1401bff13
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401c0114
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov edi, dword [r9]
mov rax, r8
and dword [rbp - 0x15], 0
lea r9, [rbp - 0x15]
and qword [rsp + 0x20], 0
mov rsi, rdx
mov rbx, rcx
add edi, 4
mov rdx, qword [rax]
mov r8d, edi
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401c01dc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x19], eax
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1401c01ca
and dword [rbp + 0x23], 0
lea rax, str.Sample_file_compression_failed___Cannot_write_compressed_block_data_to_file
and dword [rbp + 0x33], 0
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x1f], 0x98
mov dword [rbp + 0x2f], 4
lea rax, [rbp - 9]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b1a9]
xor r8d, r8d
mov dword [rsp + 0x20], 4
call fcn.140001158
mov ecx, dword [rbp - 0x19]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1401c0252
cmp dword [rbp - 0x15], edi
je 0x1401c0246
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x19], eax
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1401c01ca
and dword [rbp + 0x23], 0
lea rax, str.Sample_file_compression_failed___didnt_write_all_compressed_data_to_file
and dword [rbp + 0x33], 0
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x1f], 0x94
mov dword [rbp + 0x2f], 4
lea rax, [rbp - 9]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b1a9]
xor r8d, r8d
mov dword [rsp + 0x20], 4
call fcn.140001158
jmp 0x1401c01ca
add qword [rbx + 0x30], rsi
mov eax, edi
add qword [rbx + 0x38], rax
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401c0344
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401c03e1
call fcn.14004acb4
mov rbx, qword [rax + 8]
cmp dword [rbx], 5
jbe 0x1401c03dd
and dword [rsp + 0x6c], 0
lea rax, str.Failed_to_get_file_size
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x30
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
and dword [rsp + 0x7c], 0
mov ecx, 4
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], ecx
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b2c1]
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, rbx
call fcn.140001158
xor eax, eax
jmp 0x1401c03e6
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x90
pop rbx
ret
Function at 0x1401c4020
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rcx, rdx
jb 0x1401c4058
mov rcx, qword [rdx]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x2000006
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x1401c4139
call fcn.14004acb4
mov r14, qword [rax + 8]
cmp dword [r14], 5
jbe 0x1401c41f3
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_get_a_file_handle
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x38
jb 0x1401c40c5
mov rbx, qword [rbx]
lea rcx, [0x14030cae0]
mov rax, rdi
test rbx, rbx
je 0x1401c40e4
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x1401c40db
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b402]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r14
call fcn.140001158
jmp 0x1401c41f3
lea rdx, [rbp - 0x21]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401c41ef
call fcn.14004acb4
mov r14, qword [rax + 8]
cmp dword [r14], 5
jbe 0x1401c41f3
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_get_file_size
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x30
jb 0x1401c417e
mov rbx, qword [rbx]
lea rcx, [0x14030cae0]
mov rax, rdi
test rbx, rbx
je 0x1401c419d
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x1401c4194
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039b402]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r14
call fcn.140001158
jmp 0x1401c41f3
mov rdi, qword [rbp - 0x21]
lea rcx, [rsi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1401c4206
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1401cbc40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [r8 + 0x10]
mov rdi, rdx
cmp qword [r9 + 0x18], 8
mov r10, rcx
mov rbx, qword [r9 + 0x10]
jb 0x1401cbc62
mov r9, qword [r9]
xor ecx, ecx
movabs r11, 0xcbf29ce484222325
add rbx, rbx
je 0x1401cbc91
movzx eax, byte [rcx + r9]
movabs rdx, 0x100000001b3
xor r11, rax
inc rcx
imul r11, rdx
cmp rcx, rbx
jb 0x1401cbc73
mov rdx, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and rdx, r11
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x1401cbcc9
cmp qword [rcx + rdx*8], r8
jne 0x1401cbcbe
mov rax, qword [r10 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
jmp 0x1401cbcc2
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1401cbcd6
cmp qword [rcx + rdx*8], r8
jne 0x1401cbcd6
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
lea rcx, [r10 + 8]
mov rdx, rdi
call fcn.1401cbcf0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret