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

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x1400a3500], ebx
mov dword [rsp + 0x50], ebx
jne 0x14005cc68
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, 0xfffffffc
jne 0x14005cc68
cmp eax, 1
je 0x14005cc68
mov eax, dword [0x1400a27fc]
cmp dword [rsp + 0x50], ebx
mov dword [0x1400a3500], 1
cmovne eax, ebx
mov dword [0x1400a27fc], eax
jmp 0x14005cc6e
mov eax, dword [0x1400a27fc]
add rsp, 0x40
pop rbx
ret

Function at 0x14005cc7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x18], 4
mov qword [rax + 0x20], rbx
mov r14, rdx
mov dword [rax + 8], ebx
mov rdi, rcx
mov esi, ebx
test rcx, rcx
je 0x14005cd40
test rdx, rdx
je 0x14005cd40
mov dword [rdx], ebx
call fcn.14005cbe4
test eax, eax
jne 0x14005ccc8
lea edi, [rbx + 1]
jmp 0x14005cd6a
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14005c4f4
mov rsi, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x14005cd45
lea rax, [rsp + 0x70]
mov r9d, 0x10
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetectCache
lea rax, [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x14005cd31
jg 0x14005cd26
mov edi, eax
jmp 0x14005cd45
movzx edi, ax
or edi, 0x80070000
jmp 0x14005cd45
cmp dword [rsp + 0x60], ebx
je 0x14005cd45
mov dword [r14], 1
jmp 0x14005cd45
mov edi, 0x80070057
test rsi, rsi
je 0x14005cd6a
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14005cd88
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rdx, [r11 - 0x48]
xor eax, eax
xor edi, edi
movups xmmword [rsp + 0x50], xmm0
mov qword [r11 - 0x28], rax
mov rbp, rcx
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
call fcn.14005cc7c
test eax, eax
je 0x14005cde1
cmp dword [rsp + 0x40], edi
sete dil
mov ebx, edi
jmp 0x14005cf9e
mov qword [rsp + 0x30], rdi
mov r8d, 3
mov dword [rsp + 0x28], 0x20000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005ce3d
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 0x14005cf9e
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14005cf9e
mov rcx, rsi
call fcn.14005c938
mov ebx, eax
test eax, eax
je 0x14005cf8f
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x18
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14005ceb2
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 0x14005cf8f
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14005cf8f
mov ebx, dword [rsp + 0x64]
xor ecx, ecx
add ebx, 0x1ff
mov r8d, 0x3000
and ebx, 0xfffffe00
mov edx, ebx
lea r9d, [rcx + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14005ce8e
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14005cf33
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 0x14005cf22
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80310000
jne 0x14005cf78
mov ebx, edi
mov edx, 1
jmp 0x14005cf70
mov edx, dword [rsp + 0x44]
xor r8d, r8d
mov rcx, r14
call fcn.14005d330
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14005cf66
cmp eax, 1
jne 0x14005cf5f
mov rcx, rsi
call fcn.14005c230
mov ebx, eax
test eax, eax
js 0x14005cf78
jmp 0x14005cf68
mov ebx, 1
jmp 0x14005cf68
mov ebx, edi
test ebx, ebx
sete dil
mov edx, edi
mov rcx, rbp
call fcn.14005cfcc
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400149c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14005cfcc
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
and qword [rbp + 0x28], 0
xor eax, eax
and qword [rbp + 0x18], 0
mov rbx, rcx
and qword [rbp + 0x30], 0
test edx, edx
setne al
mov dword [rbp + 0x20], eax
test rcx, rcx
je 0x14005d128
call fcn.14005cbe4
test eax, eax
je 0x14005d0f9
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14005c4f4
mov rbx, qword [rbp + 0x30]
test eax, eax
js 0x14005d0d4
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005d0d4
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
lea rdx, str.Cache
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005d0d4
mov rcx, qword [rbp + 0x18]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test rbx, rbx
je 0x14005d0f9
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14005d113
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14005d128
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
xor esi, esi
lea rdx, [0x14002c8d4]
mov r15d, esi
mov rdi, r8
mov rbx, rcx
mov r13d, 0xffffffff
call fcn.140004bb0
mov r12, rax
test rax, rax
jne 0x1400010a9
lea rdx, [r14 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002960
jmp 0x1400011ca
mov edx, dword [r14 + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r12
call fcn.1400113a4
test eax, eax
jns 0x1400010e6
call fcn.140015bd8
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002b70
jmp 0x1400011ac
mov ecx, dword [r14 + 0xc]
call fcn.140015c14
mov r15, rax
test rax, rax
jne 0x140001122
mov ebx, dword [r14 + 0xc]
call fcn.140015bd8
lea r9, [r14 + 0x12]
mov dword [rsp + 0x20], ebx
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002b70
jmp 0x1400011ac
cmp byte [r14 + 0x10], 1
jne 0x14000113c
mov r9, r15
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call fcn.140001210
jmp 0x14000119d
mov ebx, dword [r14 + 0xc]
mov qword [rsp + 0x60], rbp
mov rbp, r15
test rbx, rbx
je 0x140001191
mov eax, 0x2000
nop dword [rax]
nop word [rax + rax]
cmp rbx, rax
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, rax
mov rcx, rbp
mov rdx, rdi
call fcn.14001106c
cmp rax, 1
jb 0x1400011ed
add rbp, rdi
mov eax, 0x2000
sub rbx, rdi
jne 0x140001160
mov eax, esi
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
test eax, eax
je 0x1400011ac
mov rcx, r15
call fcn.140015c00
mov r15, rsi
mov rcx, r12
call fcn.140010d1c
mov rsi, r15
test r15, r15
je 0x1400011ca
mov rdx, rdi
mov rcx, r15
call fcn.140004ce0
mov r13d, eax
mov rcx, rsi
call fcn.140015c00
mov rbx, qword [rsp + 0x68]
mov eax, r13d
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140015bd8
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002b70
mov eax, r13d
jmp 0x140001193
Function at 0x140001210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
mov r8d, 0x58
mov qword [rsp + 0x60], rax
lea rdx, str.1.3.1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov ebp, eax
mov rsi, r9
call fcn.14000ca50
mov r15d, eax
test eax, eax
je 0x140001297
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002960
mov eax, 0xffffffff
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.140015c14
mov r13, rax
test rax, rax
jne 0x1400012d4
call fcn.140015bd8
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002b70
jmp 0x140001439
mov ecx, 0x2000
call fcn.140015c14
mov rbp, rax
test rax, rax
jne 0x140001309
call fcn.140015bd8
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002b70
jmp 0x140001439
mov qword [rsp + 0xd0], r12
mov r15d, 0xffffffff
mov r12d, dword [rbx + 8]
nop dword [rax + rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14001106c
cmp rax, rbx
jne 0x140001431
mov rcx, rdi
call fcn.140010de0
test eax, eax
jne 0x140001431
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.14000ae90
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001416
cmp eax, 2
je 0x140001411
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x1400013d4
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.1400117ac
cmp rax, rbx
jne 0x1400013cf
mov rcx, r14
call fcn.140010de0
test eax, eax
je 0x1400013ea
mov edi, r15d
jmp 0x140001416
test rsi, rsi
je 0x1400013ea
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002ab00
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x140001370
cmp edi, 1
je 0x14000140c
test r12, r12
je 0x140001416
mov rdi, qword [rsp + 0xc0]
jmp 0x140001320
xor r15d, r15d
jmp 0x140001431
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.140002960
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000c730
mov rcx, r13
call fcn.140015c00
mov rcx, rbp
call fcn.140015c00
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001470
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov rbx, rcx
lea rdx, [0x14002c8d4]
xor r14d, r14d
call fcn.140004bb0
mov r15, rax
test rax, rax
jne 0x1400014bc
lea rdx, [rbp + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002960
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov edx, dword [rbp + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.1400113a4
test eax, eax
jns 0x1400014f8
call fcn.140015bd8
lea r9, [rbp + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002b70
jmp 0x1400015bc
mov ecx, dword [rbp + 0xc]
call fcn.140015c14
mov r14, rax
test rax, rax
jne 0x140001532
mov ebx, dword [rbp + 0xc]
call fcn.140015bd8
lea r9, [rbp + 0x12]
mov dword [rsp + 0x20], ebx
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002b70
jmp 0x1400015bc
cmp byte [rbp + 0x10], 1
jne 0x14000154b
mov r9, r14
xor r8d, r8d
mov rdx, rbp
mov rcx, r15
call fcn.140001210
jmp 0x1400015ad
mov ebx, dword [rbp + 0xc]
mov qword [rsp + 0x50], rsi
mov rsi, r14
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r12
test rbx, rbx
je 0x14000159c
mov r12d, 0x2000
nop dword [rax + rax]
cmp rbx, r12
mov rdi, rbx
mov r9, r15
mov r8d, 1
cmova rdi, r12
mov rcx, rsi
mov rdx, rdi
call fcn.14001106c
cmp rax, 1
jb 0x1400015d6
add rsi, rdi
sub rbx, rdi
jne 0x140001570
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
test eax, eax
je 0x1400015bc
mov rcx, r14
call fcn.140015c00
xor r14d, r14d
mov rcx, r15
call fcn.140010d1c
mov rbx, qword [rsp + 0x68]
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
call fcn.140015bd8
lea r9, [rbp + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002b70
mov eax, 0xffffffff
jmp 0x14000159e
Function at 0x140001600
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp byte [rdx + 0x11], 0x6e
mov rdi, rdx
mov rbx, rcx
jne 0x140001637
call fcn.140001050
mov ebx, eax
test eax, eax
jns 0x14000162e
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002960
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x14002c9cc]
mov qword [rsp + 0x60], r12
mov rcx, r8
call fcn.140004bb0
mov r12, rax
test rax, rax
jne 0x140001682
call fcn.140015bd8
lea r9, [rdi + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
mov edx, dword [rax]
call fcn.140002b70
mov r12, qword [rsp + 0x60]
mov eax, 0xffffffff
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x14002c8d4]
mov qword [rsp + 0x20], r15
mov rcx, rbx
call fcn.140004bb0
mov r15, rax
test rax, rax
jne 0x1400016b8
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002960
mov ebx, 0xffffffff
jmp 0x140001821
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.1400113a4
test eax, eax
jns 0x1400016f9
call fcn.140015bd8
lea r9, [rdi + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002b70
mov ebx, 0xffffffff
jmp 0x140001819
cmp byte [rdi + 0x10], 1
jne 0x140001717
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.140001210
mov ebx, eax
jmp 0x140001819
mov qword [rsp + 0x30], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x28], r14
mov ecx, r13d
call fcn.140015c14
mov r14, rax
test rax, rax
jne 0x140001761
call fcn.140015bd8
lea r9, [rdi + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002b70
mov ebx, 0xffffffff
jmp 0x14000180f
mov qword [rsp + 0x58], rsi
mov esi, dword [rdi + 0xc]
test rsi, rsi
je 0x140001802
mov qword [rsp + 0x50], rbp
nop word [rax + rax]
cmp rsi, r13
mov rbp, rsi
mov r9, r15
mov r8d, 1
cmova rbp, r13
mov rcx, r14
mov rdx, rbp
call fcn.14001106c
cmp rax, 1
jb 0x1400017da
mov r9, r12
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1400117ac
cmp rax, 1
jb 0x1400017c5
sub rsi, rbp
jne 0x140001780
jmp 0x1400017fd
call fcn.140015bd8
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400017ed
call fcn.140015bd8
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
lea r9, [rdi + 0x12]
call fcn.140002b70
mov ebx, 0xffffffff
mov rbp, qword [rsp + 0x50]
mov rcx, r14
call fcn.140015c00
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r15
call fcn.140010d1c
mov rcx, r12
call fcn.140010d1c
mov r15, qword [rsp + 0x20]
mov eax, ebx
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x140002660
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x2038
call fcn.14000d520
sub rsp, rax
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rsi, r8
movsxd rdi, edx
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rbp, r9
mov rbx, rcx
call fcn.14000a060
test rax, rax
je 0x1400026ce
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r9d, dword [rsp + 0x2080]
lea rdx, [rsp + 0x20]
lea rdx, [rdx + rdi*2]
mov r8, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400026ee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, dword [rsp + 0x2080]
lea rdx, [rdi + rbx]
mov r8, rbp
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000d220
add rsp, 0x2038
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140002770
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x3040
call fcn.14000d520
sub rsp, rax
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0x3030], rax
mov rsi, rcx
lea r14, [rsp + 0x3078]
lea rdi, [rsp + 0x30]
mov ebx, 0x1000
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._PYI__d:_s_
lea rax, [0x14002cd84]
mov edx, ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140001cc0
xor ebp, ebp
test eax, eax
js 0x1400027fb
movsxd rcx, eax
lea rdi, [rsp + 0x30]
add rdi, rcx
sub ebx, eax
cmovs ebx, ebp
movsxd rbx, ebx
call fcn.140001040
mov qword [rsp + 0x28], r14
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, qword [rax]
or rcx, 2
call fcn.140015654
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.14000a060
test rax, rax
je 0x14000284f
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000285a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x3030]
xor rcx, rsp
call fcn.14000d220
add rsp, 0x3040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002880
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x2040
call fcn.14000d520
sub rsp, rax
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rsi, rcx
lea r14, [rsp + 0x2078]
lea rdi, [rsp + 0x30]
mov ebx, 0x1000
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._PYI__d:_ls_
lea rax, str.DEBUG
mov edx, ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140002710
xor ebp, ebp
test eax, eax
js 0x14000290c
movsxd rcx, eax
lea rdi, [rsp + 0x30]
sub ebx, eax
cmovs ebx, ebp
lea rdi, [rdi + rcx*2]
movsxd rbx, ebx
call fcn.140001040
mov qword [rsp + 0x28], r14
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, qword [rax]
or rcx, 1
call fcn.1400158a8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.14000d220
add rsp, 0x2040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140002a60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x2040
call fcn.14000d520
sub rsp, rax
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbp, rcx
lea r14, [rsp + 0x2078]
lea rdi, [rsp + 0x30]
mov ebx, 0x1000
xor esi, esi
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._PYI__d:_ls_
lea rax, str.ERROR
mov edx, ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140002710
test eax, eax
js 0x140002af5
movsxd rcx, eax
lea rdi, [rsp + 0x30]
sub ebx, eax
mov esi, eax
mov eax, 0
cmovns eax, ebx
lea rdi, [rdi + rcx*2]
mov ebx, eax
movsxd rbx, ebx
call fcn.140001040
mov qword [rsp + 0x28], r14
mov r9, rbp
mov r8, rbx
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, qword [rax]
or rcx, 1
call fcn.1400158a8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
lea rdx, [rsp + 0x30]
mov r9d, 0x10
lea r8, str.Error
xor ecx, ecx
lea rdx, [rdx + rax*2]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.14000d220
add rsp, 0x2040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002db0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x2040
call fcn.14000d520
sub rsp, rax
mov rax, qword [0x140042080]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbp, rcx
lea r14, [rsp + 0x2078]
lea rdi, [rsp + 0x30]
mov ebx, 0x1000
xor esi, esi
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._PYI__d:_ls_
lea rax, str.WARNING
mov edx, ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140002710
test eax, eax
js 0x140002e45
movsxd rcx, eax
lea rdi, [rsp + 0x30]
sub ebx, eax
mov esi, eax
mov eax, 0
cmovns eax, ebx
lea rdi, [rdi + rcx*2]
mov ebx, eax
movsxd rbx, ebx
call fcn.140001040
mov qword [rsp + 0x28], r14
mov r9, rbp
mov r8, rbx
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, qword [rax]
or rcx, 1
call fcn.1400158a8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
lea rdx, [rsp + 0x30]
mov r9d, 0x30
lea r8, str.Warning
xor ecx, ecx
lea rdx, [rdx + rax*2]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.14000d220
add rsp, 0x2040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret