joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009aeac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x10009af72
test rdx, rdx
je 0x10009af72
xor r9d, r9d
lea rdx, [0x1000be648]
lea esi, [r9 + 1]
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x10009aef3
xor ebx, ebx
jmp 0x10009af02
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
lea rdx, [0x1000be648]
xor r9d, r9d
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x10009af29
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rbx, rbx
je 0x10009af67
test rax, rax
je 0x10009af67
mov ecx, 0xfecdfecd
cmp dword [rbx], ecx
jne 0x10009af61
cmp dword [rax], ecx
jne 0x10009af61
mov rdx, qword [rbx + 0x1c]
cmp rdx, qword [rax + 0x1c]
jne 0x10009af58
mov rdx, qword [rbx + 0x24]
cmp rdx, qword [rax + 0x24]
jne 0x10009af58
xor eax, eax
jmp 0x10009af5d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10009af63
xor esi, esi
mov eax, esi
jmp 0x10009af74
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x10009b058
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x1000df508]
test eax, eax
jne 0x10009b15d
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10009b0bb
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
xor eax, eax
lea r8d, [rax + 1]
mov dword [0x1000df508], eax
sub ecx, r8d
je 0x10009b13d
cmp ecx, r8d
jne 0x10009b15d
cmp edx, 5
jne 0x10009b12b
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x10009b124
sub ecx, r8d
je 0x10009b10f
cmp ecx, r8d
je 0x10009b0f9
lea eax, [rdx + 0xf]
jmp 0x10009b157
cmp word [rsp + 0x134], r8w
mov ecx, 0x10
cmovae eax, ecx
or eax, 4
jmp 0x10009b157
mov edx, 8
lea ecx, [rdx - 6]
cmp word [rsp + 0x134], cx
cmovae eax, edx
jmp 0x10009b10a
mov eax, 4
jmp 0x10009b157
cmp edx, 4
ja 0x10009b175
mov ecx, 2
mov eax, ecx
mov dword [0x1000df508], ecx
cmp edx, 4
jne 0x10009b15d
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x10009b154
cmp ecx, 0xa
je 0x10009b154
cmp ecx, 0x5a
jne 0x10009b15d
mov eax, r8d
mov dword [0x1000df508], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1000031d0
add rsp, 0x158
ret
mov eax, 0x20
jmp 0x10009b157
Function at 0x14000180c
Capabilities:
Create directory
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, rdx
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rcx + rsi - 1], 0x5c
je 0x140001860
lea rdx, [0x140008554]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x104
movsxd rbp, eax
call fcn.140002580
cmp ebp, 2
jle 0x1400018d9
cmp byte [rsi + 1], 0x3a
jne 0x1400018d9
xor edi, edi
test rbp, rbp
jle 0x1400018db
lea rax, [rsp + 0x20]
sub rsi, rax
test ebx, ebx
je 0x1400018db
lea rax, [rsp + rdi + 0x20]
mov cl, byte [rsi + rax]
mov byte [rax], cl
cmp cl, 0x5c
jne 0x1400018cf
cmp rdi, 2
je 0x1400018cf
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1400018cf
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
inc rdi
cmp rdi, rbp
jl 0x140001898
jmp 0x1400018db
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002680
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000204c
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.140001294
mov rcx, rbx
call fcn.1400012ac
mov edi, eax
test eax, eax
jne 0x1400020a0
mov rcx, rbx
call fcn.1400019b4
mov edi, eax
test eax, eax
jne 0x1400020a0
mov rcx, rbx
call fcn.140001578
mov edi, eax
test eax, eax
jne 0x1400020a0
mov rcx, rbx
call fcn.140001694
mov edi, eax
test eax, eax
jne 0x1400020a0
mov rcx, rbx
call fcn.140001c88
mov edi, eax
cmp dword [0x14000cf20], 0
jne 0x140002118
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x110c], 0
lea rcx, [rbx + 0x1224]
je 0x1400020e6
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rbx + 0x142c]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rbx + 0x1328]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x140002118
xor edx, edx
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
xor edx, edx
lea rcx, [rbx + 0x142c]
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
xor edx, edx
lea rcx, [rbx + 0x1328]
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000250c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000237c

Function at 0x14000408b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000c030]
jne 0x14000269a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002696
repz ret
ror rcx, 0x10
jmp 0x140003fe4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000d8f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000d9e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004069
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000d8f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000408b
mov rax, qword [rsp + 0x88]
mov qword [0x14000d9e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000d988], rax
mov rax, qword [0x14000d9e8]
mov qword [0x14000d860], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000d970], rax
mov dword [0x14000d850], 0xc0000409
mov dword [0x14000d854], 1
mov rax, qword [0x14000c030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000c038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000d8e8], eax
mov ecx, 1
call fcn.140005044
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140009208]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000d8e8], 0
jne 0x140004112
mov ecx, 1
call fcn.140005044
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140005d98
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000348c
xor ebx, ebx
cmp qword [0x14000df10], rbx
mov rdi, rax
jne 0x140005eab
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140005f82
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005f82
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000df10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000df18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000df20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000df30], rax
test rax, rax
je 0x140005ea2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000df28], rax
jmp 0x140005eb2
mov rax, qword [0x14000df28]
jmp 0x140005eb9
mov rax, qword [0x14000df28]
mov r11, qword [0x14000df30]
cmp rax, rdi
je 0x140005f20
cmp r11, rdi
je 0x140005f20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000df30]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140005f20
test rax, rax
je 0x140005f20
call rsi
test rax, rax
je 0x140005f1a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140005f1a
test byte [rsp + 0x40], 1
jne 0x140005f20
bts ebp, 0x15
jmp 0x140005f60
mov rcx, qword [0x14000df18]
cmp rcx, rdi
je 0x140005f60
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005f60
call rax
mov rbx, rax
test rax, rax
je 0x140005f60
mov rcx, qword [0x14000df20]
cmp rcx, rdi
je 0x140005f60
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005f60
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000df10]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005f82
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140005f84
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002680
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x141b8e810
Capabilities:
Terminate process

Disassembly:
mov edi, 0xfd0a6df0
sub eax, edi
ror byte [rax - 1], 0x66
xor esp, dword [rbx - 0x25]
cmp al, 0xd3
invalid
cld
pop r11
jmp 0x141b8e81d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x141b8e82d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x141b8e815
lea eax, [rcx + 1]
jmp 0x141b8e83b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x141b8e84e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141b8e834
sub eax, 3
jb 0x141b8e86e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x141b8e8bd
sar eax, 1
movsxd rbp, eax
jb 0x141b8e8a4
jmp 0x141b8e87c
add ebx, ebx
jne 0x141b8e87a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141b8e8a4
inc ecx
add ebx, ebx
jne 0x141b8e88a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141b8e8a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x141b8e89d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x141b8e88c
add ecx, 2
jmp 0x141b8e8a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.141b8e7d2
jmp 0x141b8e81d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b8c000]
mov eax, dword [rdi]
or eax, eax
je 0x141b8e919
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1b8e1ac]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x141b8e8c9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x141b8e913
mov qword [rbx], rax
add rbx, 8
jmp 0x141b8e8e9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1a7]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x141b8e971
sub rsp, 0xffffffffffffff80
jmp 0x14144edc0
Function at 0x1400028b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400028fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400028fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400028fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400028fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400028fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002900
xor al, al
add rsp, 0x28
ret
Function at 0x140001030
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, [0x14002d834]
mov r15d, esi
mov rdi, r8
mov rbx, rcx
mov r13d, 0xffffffff
call fcn.1400039e0
mov r12, rax
test rax, rax
jne 0x140001089
lea rdx, [r14 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001e50
jmp 0x1400011aa
mov edx, dword [r14 + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r12
call fcn.14000fbec
test eax, eax
jns 0x1400010c6
call fcn.14001623c
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.140002020
jmp 0x14000118c
mov ecx, dword [r14 + 0xc]
call fcn.140016280
mov r15, rax
test rax, rax
jne 0x140001102
mov ebx, dword [r14 + 0xc]
call fcn.14001623c
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.140002020
jmp 0x14000118c
cmp byte [r14 + 0x10], 1
jne 0x14000111c
mov r9, r15
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call fcn.1400011f0
jmp 0x14000117d
mov ebx, dword [r14 + 0xc]
mov qword [rsp + 0x60], rbp
mov rbp, r15
test rbx, rbx
je 0x140001171
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.14000f8a0
cmp rax, 1
jb 0x1400011cd
add rbp, rdi
mov eax, 0x2000
sub rbx, rdi
jne 0x140001140
mov eax, esi
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
test eax, eax
je 0x14000118c
mov rcx, r15
call fcn.140016270
mov r15, rsi
mov rcx, r12
call fcn.14000f544
mov rsi, r15
test r15, r15
je 0x1400011aa
mov rdx, rdi
mov rcx, r15
call fcn.140003b10
mov r13d, eax
mov rcx, rsi
call fcn.140016270
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.14001623c
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.140002020
mov eax, r13d
jmp 0x140001173
Function at 0x1400011f0
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.14000b2e0
mov r15d, eax
test eax, eax
je 0x140001277
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140001e50
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.140016280
mov r13, rax
test rax, rax
jne 0x1400012b4
call fcn.14001623c
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.140002020
jmp 0x140001419
mov ecx, 0x2000
call fcn.140016280
mov rbp, rax
test rax, rax
jne 0x1400012e9
call fcn.14001623c
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.140002020
jmp 0x140001419
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.14000f8a0
cmp rax, rbx
jne 0x140001411
mov rcx, rdi
call fcn.14000f608
test eax, eax
jne 0x140001411
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.140009720
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x1400013f6
cmp eax, 2
je 0x1400013f1
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x1400013b4
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000fff4
cmp rax, rbx
jne 0x1400013af
mov rcx, r14
call fcn.14000f608
test eax, eax
je 0x1400013ca
mov edi, r15d
jmp 0x1400013f6
test rsi, rsi
je 0x1400013ca
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002b4c0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x140001350
cmp edi, 1
je 0x1400013ec
test r12, r12
je 0x1400013f6
mov rdi, qword [rsp + 0xc0]
jmp 0x140001300
xor r15d, r15d
jmp 0x140001411
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.140001e50
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000afc0
mov rcx, r13
call fcn.140016270
mov rcx, rbp
call fcn.140016270
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 0x140001450
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, [0x14002d834]
xor r14d, r14d
call fcn.1400039e0
mov r15, rax
test rax, rax
jne 0x14000149c
lea rdx, [rbp + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001e50
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.14000fbec
test eax, eax
jns 0x1400014d8
call fcn.14001623c
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.140002020
jmp 0x14000159c
mov ecx, dword [rbp + 0xc]
call fcn.140016280
mov r14, rax
test rax, rax
jne 0x140001512
mov ebx, dword [rbp + 0xc]
call fcn.14001623c
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.140002020
jmp 0x14000159c
cmp byte [rbp + 0x10], 1
jne 0x14000152b
mov r9, r14
xor r8d, r8d
mov rdx, rbp
mov rcx, r15
call fcn.1400011f0
jmp 0x14000158d
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 0x14000157c
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.14000f8a0
cmp rax, 1
jb 0x1400015b6
add rsi, rdi
sub rbx, rdi
jne 0x140001550
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
test eax, eax
je 0x14000159c
mov rcx, r14
call fcn.140016270
xor r14d, r14d
mov rcx, r15
call fcn.14000f544
mov rbx, qword [rsp + 0x68]
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
call fcn.14001623c
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.140002020
mov eax, 0xffffffff
jmp 0x14000157e
Function at 0x1400015e0
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 0x140001617
call fcn.140001030
mov ebx, eax
test eax, eax
jns 0x14000160e
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140001e50
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x14002d92c]
mov qword [rsp + 0x60], r12
mov rcx, r8
call fcn.1400039e0
mov r12, rax
test rax, rax
jne 0x140001662
call fcn.14001623c
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.140002020
mov r12, qword [rsp + 0x60]
mov eax, 0xffffffff
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x14002d834]
mov qword [rsp + 0x20], r15
mov rcx, rbx
call fcn.1400039e0
mov r15, rax
test rax, rax
jne 0x140001698
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001e50
mov ebx, 0xffffffff
jmp 0x140001801
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.14000fbec
test eax, eax
jns 0x1400016d9
call fcn.14001623c
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.140002020
mov ebx, 0xffffffff
jmp 0x1400017f9
cmp byte [rdi + 0x10], 1
jne 0x1400016f7
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.1400011f0
mov ebx, eax
jmp 0x1400017f9
mov qword [rsp + 0x30], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x28], r14
mov ecx, r13d
call fcn.140016280
mov r14, rax
test rax, rax
jne 0x140001741
call fcn.14001623c
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.140002020
mov ebx, 0xffffffff
jmp 0x1400017ef
mov qword [rsp + 0x58], rsi
mov esi, dword [rdi + 0xc]
test rsi, rsi
je 0x1400017e2
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.14000f8a0
cmp rax, 1
jb 0x1400017ba
mov r9, r12
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.14000fff4
cmp rax, 1
jb 0x1400017a5
sub rsi, rbp
jne 0x140001760
jmp 0x1400017dd
call fcn.14001623c
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400017cd
call fcn.14001623c
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.140002020
mov ebx, 0xffffffff
mov rbp, qword [rsp + 0x50]
mov rcx, r14
call fcn.140016270
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r15
call fcn.14000f544
mov rcx, r12
call fcn.14000f544
mov r15, qword [rsp + 0x20]
mov eax, ebx
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret