joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013fbc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x30], 0
mov rdi, rcx
lea rcx, [rbp - 0x30]
mov rdx, r8
mov rsi, r8
call fcn.14023ec50
mov ebx, eax
test eax, eax
je 0x14013fc02
jle 0x14013fd38
movzx ebx, ax
jmp 0x14013fcc2
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14013fc0f
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x30]
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 8
mov r9d, SafeArrayGetDim
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14013fcca
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14013fcbb
cmp qword [rsi + 0x18], 8
mov rcx, qword [rbp + 0x28]
mov qword [rbp - 0x28], rcx
jb 0x14013fc5f
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x20], rsi
jb 0x14013fc6d
mov rdi, qword [rdi]
lea rcx, str.Failed_to_set_registry_key
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rcx
lea rdx, [0x140443922]
lea rcx, [rbp - 0x28]
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000a0d0
test ebx, ebx
jle 0x14013fd38
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14013fd38
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14013fd36
cmp qword [rsi + 0x18], 8
mov rcx, qword [rbp + 0x28]
mov qword [rbp + 0x38], rcx
jb 0x14013fce6
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x10], rsi
jb 0x14013fcf4
mov rdi, qword [rdi]
lea rcx, str.Write_registry_value
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rcx
lea rdx, [0x1404438e1]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140009fa8
xor ebx, ebx
lea rcx, [rbp - 0x30]
call fcn.1400f8348
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140145be0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [rcx + 0x2b8]
lea rcx, [rsp + 0x20]
call fcn.1400a71b4
mov rdx, rax
mov rcx, rdi
call fcn.14008f5f8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140145c18
call fcn.14007e3e0
mov rcx, qword [rbx + 0x430]
lea rdx, [rbx + 0x2a4]
mov r8, qword [rdi]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1400ae9d9.0]
test eax, eax
jns 0x140145c42
mov rcx, rdi
call fcn.14013382c
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp method.sense::sensorHub::SecureEtwHandler.virtual_8

Function at 0x14015fa18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
sub r9, r8
mov rax, rdx
sub rax, rcx
mov r15, r8
xor rax, r9
mov rbp, rdx
mov r14, rcx
test rax, 0xfffffffffffffffe
jne 0x14015fa94
mov rbx, qword [rsp + 0x60]
sub r15, rcx
cmp r14, rbp
je 0x14015fa98
movzx edx, word [r15 + r14]
mov rcx, qword [rbx + 8]
movzx esi, word [r14]
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
movzx edx, si
movzx edi, ax
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
cmp ax, di
jne 0x14015fa94
add r14, 2
jmp 0x14015fa55
xor al, al
jmp 0x14015fa9a
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140161450
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
sar r8, 1
add r8, r8
jmp fcn.1400a1210
Function at 0x1401f278c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x28], 0
mov rdi, rcx
lea rcx, [rbp - 0x28]
mov rdx, r8
mov rsi, r8
call fcn.14023ec50
mov ebx, eax
test eax, eax
je 0x1401f27cd
jle 0x1401f2902
movzx ebx, ax
jmp 0x1401f288b
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401f27da
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x28]
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1401f2893
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x1401f2884
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp + 0x28]
mov dword [rbp + 0x38], ecx
jb 0x1401f2828
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x20], rsi
jb 0x1401f2836
mov rdi, qword [rdi]
lea rcx, str.Failed_to_set_registry_key
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rcx
lea rdx, [0x140447248]
lea rcx, [rbp + 0x38]
mov dword [rbp - 0x30], ebx
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000ce98
test ebx, ebx
jle 0x1401f2902
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1401f2902
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x1401f2900
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp + 0x28]
mov dword [rbp + 0x38], ecx
jb 0x1401f28ad
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x10], rsi
jb 0x1401f28bb
mov rdi, qword [rdi]
lea rcx, str.Write_registry_value
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rcx
lea rdx, [0x140447207]
lea rcx, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140001fa0
xor ebx, ebx
lea rcx, [rbp - 0x28]
call fcn.1400f8348
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401f8348
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x270
mov rbx, rcx
cmp dword [rcx], r9d
jne 0x1401f839b
lea r8, [rcx + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1401f8360
jmp 0x1401f83a8
cmp dword [rcx], 0x4e0
jb 0x1401f83a8
call fcn.1401f84d8
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x1401f84d8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov eax, dword [r10]
mov r11d, 0xe3
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x1401f84eb
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov eax, dword [r10]
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x1401f8536
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], 0
ret
Function at 0x14022075c
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
xor r14d, r14d
mov qword [rbp - 0x10], r14
mov word [rbp - 8], r14w
lea rcx, [rbp - 0x10]
call fcn.14026c5b0
mov rdx, rax
mov rcx, rdi
call fcn.1400dc334
mov rcx, qword [rdi]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x1402207f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14022086a
mov dword [rbp + 0x30], ebx
lea rcx, str.HelloProvisionStatusAction___Failed_to_get_logged_on_UserToken.
mov qword [rbp + 0x48], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x14044a56a]
mov rcx, rax
call fcn.14000615c
jmp 0x14022086a
mov r9d, 8
mov dword [rbp + 0x40], r9d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 - 4]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x140220880
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x140220867
mov dword [rbp + 0x30], ebx
lea rcx, str.HelloProvisionStatusAction___Failed_to_get_logged_on_user_sid_from_token.
mov qword [rbp + 0x48], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x14044a56a]
mov rcx, rax
call fcn.14000615c
mov qword [rdi], r14
test ebx, ebx
jle 0x140220906
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140220906
mov rbx, qword [r14]
mov qword [rbp + 0x30], rbx
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
jne 0x1402208ca
xor edx, edx
mov rcx, rdi
call fcn.1400dc334
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1402208bf
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rbp + 0x30]
call fcn.1400f362c
jmp 0x140220906
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x1402208fa
xor edx, edx
mov rcx, rdi
call fcn.1400dc334
lea rcx, [rbp + 0x30]
call fcn.1400f362c
mov ebx, 0x80070558
jmp 0x140220906
lea rcx, [rbp + 0x30]
call fcn.1400f362c
mov ebx, r14d
lea rcx, [rbp - 0x10]
call fcn.14026be44
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140239de0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 1], rcx
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp + 0x37], xmm0
xor eax, eax
mov word [rbp + 0x27], ax
mov edx, 0x104
lea rcx, [rbp - 0x19]
call fcn.1400ab794
nop
lea rcx, [rbp + 7]
call fcn.140239eac
nop
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
mov r9, qword [rbp - 0x19]
xor r8d, r8d
lea rdx, [0x1403a9f84]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x19]
mov rcx, rbx
call fcn.14008c350
nop
lea rcx, [rbp + 7]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x19]
call fcn.1400f6764
nop
lea rcx, [rbp + 0x27]
call fcn.14007a7c0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret

Function at 0x14023a020
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp - 0x10], rax
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14023a068
lea rcx, str.Initializing_component
mov qword [rbp - 0x40], rcx
lea rdx, [0x14044bb7a]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140005f40
lea rcx, [rbp - 0x30]
call fcn.140239eac
cmp qword [rbp - 0x18], 8
lea rcx, [rbp - 0x30]
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
cmp eax, 1
je 0x14023a0e9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
je 0x14023a0e9
mov byte [0x1404e28b8], 1
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14023a131
lea rcx, str.Sample_Cache_Agent_failed_to_create_cache_directory__using_temp_directory.
mov dword [rbp - 0x40], ebx
mov qword [rbp - 0x38], rcx
lea rdx, [0x14044ba6a]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
jmp 0x14023a131
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14023a131
cmp qword [rbp - 0x18], 8
lea rcx, [rbp - 0x30]
lea rdx, [0x14044bb40]
cmovae rcx, qword [rbp - 0x30]
mov qword [rbp - 0x38], rcx
lea rcx, str.Using_protected_cache_directory
mov qword [rbp - 0x40], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400056ec
lea rcx, [rbp - 0x30]
call fcn.14007a7c0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x14023a15c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rdx, qword [r8]
xor ebx, ebx
mov rcx, qword [rcx]
mov r8d, 0x1000
and qword [rsp + 0x20], rbx
mov rdi, r9
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14023a1e7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x26
jne 0x14023a1aa
and dword [rdi], 0
xor ebx, ebx
jmp 0x14023a1e7
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14023a1e7
lea rcx, str.Failed_to_read_sample_file_content
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rcx
lea rdx, [0x14044ba6a]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x30
mov r8d, dword [r8]
lea r9, [rsp + 0x40]
mov rdx, qword [rdx]
xor ebx, ebx
mov rcx, qword [rcx]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14023a2d6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14023a2d6
lea rcx, str.Failed_to_write_cache_file
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rcx
lea rdx, [0x14044ba6a]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14023aa94
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [r8], 0
mov r9d, ecx
not r9d
mov r10, rdx
jbe 0x14023aad0
mov r11d, dword [r8]
movzx eax, byte [r10]
mov ecx, r9d
xor rcx, rax
inc r10
mov eax, r9d
movzx edx, cl
shr eax, 8
lea rcx, [0x1403a9700]
mov r9d, dword [rcx + rdx*4]
xor r9d, eax
sub r11, 1
jne 0x14023aaa6
not r9d
mov eax, r9d
ret
Function at 0x14023aae0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0x30
mov ebx, dword [r8]
lea r9, [rax + 8]
mov rdx, qword [rdx]
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
add ebx, 4
and dword [rax + 8], 0
mov r8d, ebx
and qword [rax - 0x18], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14023ab7b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14023ab6a
lea rcx, str.Sample_file_compression_failed___Cannot_write_compressed_block_data_to_file
lea rdx, [0x14044bd4b]
mov qword [rsp + 0x50], rcx
xor r8d, r8d
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rsp + 0x48], ebx
call fcn.14000615c
test ebx, ebx
jle 0x14023ab77
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x14023abb1
cmp dword [rsp + 0x40], ebx
je 0x14023aba9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14023ab6a
lea rcx, str.Sample_file_compression_failed___didnt_write_all_compressed_data_to_file
lea rdx, [0x14044bd4b]
jmp 0x14023ab42
mov eax, ebx
add qword [rdi + 0x28], rax
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14023abc4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rcx + 0x20]
lea rdx, [rbp - 0x20]
mov rbx, rcx
mov dword [rbp - 0x40], 6
cmp dword [rax + 0x68], r8d
cmovb r8d, dword [rax + 0x68]
xor esi, esi
mov dword [rbp - 0xc], esi
xor ecx, ecx
mov dword [rbp - 0x20], 0xc0e5510a
mov byte [rbp - 0x19], 3
mov rax, qword [rax + 0x68]
lea edi, [rsi + 0x18]
mov dword [rbp - 0x18], eax
shr rax, 0x20
mov dword [rbp - 0x10], r8d
lea r8, [rbp - 0x40]
mov dword [rbp - 0x14], eax
mov word [rbp - 0x1c], di
call fcn.14023aa94
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x40], SafeArrayLock
mov ecx, eax
lea r8, [rbp - 0x40]
call fcn.14023aa94
mov byte [rbp - 0x1a], al
cmp byte [rbx + 0x40], sil
je 0x14023ac65
mov edx, edi
lea rcx, [rbp - 0x20]
call fcn.14023a9d8
mov rcx, qword [rbx + 0x30]
lea r9, [rbp - 0x3c]
mov r8d, edi
mov dword [rbp - 0x3c], esi
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14023acf0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14023acdf
lea rcx, str.Sample_file_compression_failed___Cannot_write_compressed_header_to_file
mov dword [rbp - 0x40], ebx
mov qword [rbp - 0x30], rcx
lea rdx, [0x14044bd7f]
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x38], edi
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000ad90
test ebx, ebx
jle 0x14023acec
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x14023ad5f
cmp dword [rbp - 0x3c], edi
je 0x14023ad59
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x14023acdf
mov ecx, dword [rbp - 0x3c]
lea rdx, [0x14044bdc9]
mov dword [rbp - 0x40], ecx
lea rcx, str.Sample_file_compression_failed___didnt_write_all_compressed_header_to_file
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rbp - 0x38], ebx
mov dword [rbp - 0x30], edi
call fcn.14000ea54
jmp 0x14023acdf
add qword [rbx + 0x28], rdi
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14023c7bc
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
xor edi, edi
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov rcx, rdx
mov qword [rbp + 0x30], rdi
jb 0x14023c7e2
mov rcx, qword [rdx]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2000006
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400dc334
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x14023c865
call fcn.140091ae4
mov rsi, rax
cmp dword [rax], 5
jbe 0x14023c8de
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp qword [rbx + 0x18], 8
mov dword [rbp + 0x28], eax
jb 0x14023c855
mov rbx, qword [rbx]
lea rax, str.Failed_to_get_a_file_handle
lea rdx, [0x14044c2ef]
jmp 0x14023c8ad
lea rdx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x14023c8da
call fcn.140091ae4
mov rsi, rax
cmp dword [rax], 5
jbe 0x14023c8de
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp qword [rbx + 0x18], 8
mov dword [rbp + 0x28], eax
jb 0x14023c89f
mov rbx, qword [rbx]
lea rax, [0x1403dfc38]
lea rdx, [0x14044c2ef]
mov qword [rbp + 0x40], rax
mov rcx, rsi
lea rax, [rbp + 0x28]
mov qword [rbp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140005ba8
jmp 0x14023c8de
mov rdi, qword [rbp - 0x18]
lea rcx, [rbp + 0x30]
call fcn.1400f0310
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14023e0b0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rcx, [rsp + 0x20]
mov rsi, r8
mov rdi, rdx
call fcn.1400e2da0
mov rcx, qword [rsp + 0x20]
add rcx, 0xb0
cmp qword [rcx + 0x18], 8
jb 0x14023e0e5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14023e10b
movzx eax, ax
or eax, 0x80070000
mov dword [rsi], eax
cmp ebx, 0xffffffff
je 0x14023e11b
test bl, 0x10
jne 0x14023e11b
mov bl, 1
jmp 0x14023e11d
xor bl, bl
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14023e12c
call fcn.14007e3e0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14023e13a
call fcn.14007e3e0
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret