joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b404
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov qword [rsp + 0x38], rdx
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x28], rcx
cmp qword [rdi + 0x18], 0x10
mov r15, rdx
mov rbp, rcx
mov byte [rsp + 0x21], bl
lea r13d, [rbx + 2]
mov r14d, ebx
mov esi, r13d
mov rdx, rdi
jb 0x14000b45e
mov rdx, qword [rdi]
lea r8, [rsp + 0x48]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r12d, 7
test eax, eax
je 0x14000b47f
lea r14d, [r12 + 9]
jmp 0x14000b4a4
cmp qword [rdi + 0x18], 0x10
jb 0x14000b489
mov rdi, qword [rdi]
lea r8, [rsp + 0x40]
mov rdx, rdi
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14000b4a7
mov r14d, 4
mov esi, r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
lea edx, [r9 + 0x55]
call qword [sym.imp.libcrypto_1_1_x64.dll_X509_get_ext_d2i]
mov rdi, rax
test rax, rax
je 0x14000b5a1
mov rcx, rax
mov byte [rsp + 0x20], bl
mov r12b, bl
call qword [sym.imp.libcrypto_1_1_x64.dll_OPENSSL_sk_num]
mov dword [rsp + 0x30], eax
mov ebp, ebx
test eax, eax
jle 0x14000b59c
test r12b, r12b
jne 0x14000b592
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.libcrypto_1_1_x64.dll_OPENSSL_sk_value]
mov r13, rax
cmp dword [rax], esi
jne 0x14000b577
mov rcx, qword [rax + 8]
call qword [sym.imp.libcrypto_1_1_x64.dll_ASN1_STRING_get0_data]
mov rcx, qword [r13 + 8]
mov r15, rax
call qword [sym.imp.libcrypto_1_1_x64.dll_ASN1_STRING_length]
movsxd r8, eax
or rax, 0xffffffffffffffff
inc rax
cmp byte [r15 + rax], bl
jne 0x14000b51d
cmp rax, r8
jne 0x14000b577
cmp esi, 2
je 0x14000b567
cmp esi, 7
jne 0x14000b577
mov r8, r14
lea rcx, [rsp + 0x48]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000b55d
mov r8, r14
lea rcx, [rsp + 0x40]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b577
mov r15b, 1
mov byte [rsp + 0x20], r15b
jmp 0x14000b57c
mov rcx, qword [rsp + 0x28]
mov rdx, r15
call fcn.14000b624
mov r12b, al
mov r15b, byte [rsp + 0x20]
inc ebp
cmp ebp, dword [rsp + 0x30]
jl 0x14000b4e4
test r12b, r12b
jne 0x14000b592
test r15b, r15b
je 0x14000b597
mov byte [rsp + 0x21], 1
mov r15, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.libcrypto_1_1_x64.dll_GENERAL_NAMES_free]
cmp byte [rsp + 0x21], bl
jne 0x14000b5f0
mov rcx, r15
call qword [sym.imp.libcrypto_1_1_x64.dll_X509_get_subject_name]
test rax, rax
je 0x14000b5f2
mov r9d, 0x200
lea r8, [rsp + 0x60]
mov edx, ntohs
mov rcx, rax
call qword [sym.imp.libcrypto_1_1_x64.dll_X509_NAME_get_text_by_NID]
cmp eax, 0xffffffff
je 0x14000b5f2
movsxd r8, eax
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.14000b624
test al, al
je 0x14000b5f2
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140019400
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ba24
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movdqa xmm0, xmmword [0x14001ddd0]
movdqu xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0x27], 0xdbcb89c3
mov word [rbp + 0x2b], 0xde
and qword [rbp + 0x2f], 0
and qword [rbp + 0x3f], 0
mov qword [rbp + 0x47], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x2f], 0
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_d848ebade85aaa720b5e3535d12a2c41___bool__char_const____ptr64__unsigned_long_long_unsigned___int64__.0
mov qword [rbp - 0x49], rax
lea rax, [rbp + 0x2f]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x11], rax
xor edx, edx
movsxd rcx, edx
lea eax, [rdx - 0x6a]
xor byte [rbp + rcx + 0x17], al
inc edx
cmp edx, 0x15
jb 0x14000ba96
mov byte [rbp + 0x2c], 0
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x59]
call fcn.14000a6c0
or rdi, 0xffffffffffffffff
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14000baf5
mov eax, edi
lock xadd dword [rcx + 8], eax
add eax, edi
jne 0x14000baf5
mov rbx, qword [rbp - 0x51]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x14000baf5
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
movdqa xmm0, xmmword [0x14001dde0]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0xddc9cbd6
mov dword [rbp + 0xb], 0xc0dec4cc
mov dword [rbp + 0xf], 0xc5c2cc80
xor eax, eax
mov byte [rbp + 0x13], al
xor edx, edx
movsxd rcx, edx
lea eax, [rdx - 0x6a]
xor byte [rbp + rcx - 9], al
inc edx
cmp edx, 0x1c
jb 0x14000bb1e
mov byte [rbp + 0x13], 0
lea rax, [rbp - 9]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 9]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14000bb3f
mov qword [rbp - 0x51], rdi
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x59]
call fcn.140011034
nop
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x14000bba1
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bb9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bb9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140019944
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140019400
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000da68
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14000da99
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000db0c
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000dab0
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000dab2
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000db06
test ecx, ecx
jle 0x14000dae6
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x14000db06
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000db06
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000db28
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000db4d
xor eax, eax
jmp 0x14000dc48
cmp qword [rcx + 0x68], 0
je 0x14000db5f
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14000dc48
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14000db76
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000db78
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000dba8
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov r8, rbp
cmp qword [rsi + 0x80], 0
je 0x14000dc42
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000dbe3
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x14000dc1c
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x14000dc59
cmp rbp, r15
ja 0x14000dbf1
mov r8, rbx
test rbx, rbx
je 0x14000dc42
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
sub rdi, rbp
jmp 0x14000dc45
Function at 0x14000e030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14000e069
xor eax, eax
jmp 0x14000e17c
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000e092
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x14000e092
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14000e17c
cmp qword [rcx + 0x80], 0
je 0x14000e17a
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000e0cd
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000e0f1
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x14000e17a
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000e13f
sub eax, 1
je 0x14000e13f
cmp eax, 2
jne 0x14000e17a
movsx ecx, byte [rbp - 0x30]
jmp 0x14000e0da
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14000e16a
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14000e17a
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x14000e17c
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140019400
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000f25c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000f2cb
cmp byte [rcx + 0x71], 0
je 0x14000f2cb
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000f320
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000f2e5
sub eax, 1
je 0x14000f2e9
cmp eax, 2
jne 0x14000f320
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140019400
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000f317
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000f320
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000f2cd
xor al, al
jmp 0x14000f2cd
Function at 0x14000f9a8
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, r8
mov dword [rbp - 0x21], 0x20
mov ebx, edx
mov dword [rsp + 0x20], 4
mov rdi, rcx
lea r9, [rbp - 0x21]
or rsi, 0xffffffffffffffff
mov edx, 0xffff
mov rcx, rsi
mov r8d, 0x7008
call qword [sym.imp.WS2_32.dll_setsockopt]
and dword [rbp + 0xb], 0
lea rcx, [rbp - 0x19]
and dword [rbp + 7], 0
xorps xmm0, xmm0
and dword [rbp + 0x13], 0
xorps xmm1, xmm1
mov edx, ebx
mov dword [rbp + 0xf], 1
movdqu xmmword [rbp + 0x17], xmm0
movdqu xmmword [rbp + 0x27], xmm1
call fcn.140001768
cmp qword [rbp - 1], 0x10
lea rdx, [rbp - 0x19]
lea r9, [rbp - 0x29]
mov rcx, rdi
cmovae rdx, qword [rbp - 0x19]
lea r8, [rbp + 7]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000fb01
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x14000faf8
mov r8d, dword [rbx + 0xc]
xor r9d, r9d
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x28], 0x80
and dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, rsi
jne 0x14000faa5
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, rsi
je 0x14000fae7
lea r9, [rbp - 0x1d]
mov dword [rbp - 0x1d], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.140002818
test al, al
jne 0x14000fb3a
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14000fa65
mov rbx, qword [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14000fb4e
mov rcx, qword [rbp - 0x19]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fb49
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fb49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rsi, rdi
jmp 0x14000fb01
call fcn.140019944
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140019400
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140001050
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
lea rdx, str.1.2.11
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.140008bd0
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140001c40
lea eax, [rbp - 1]
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.140013afc
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140001c00
jmp 0x14000126c
mov ecx, 0x2000
call fcn.140013afc
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140001c00
jmp 0x14000126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi]
mov eax, 0x2000
cmp r12, rax
mov rbx, r12
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000e488
cmp rax, rbx
jne 0x14000125e
mov rcx, qword [rdi]
call fcn.14000e1fc
test eax, eax
jne 0x14000125e
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.140007080
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.14000eb94
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.14000e1fc
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000ac20
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001264
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.140001c40
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.1400088b0
mov rcx, r13
call fcn.140013ae8
mov rcx, rbp
call fcn.140013ae8
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 0x1400012b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov rax, qword [rcx]
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1400012f8
add rcx, 0x78
lea rdx, [0x14002a560]
call fcn.140002db0
mov qword [r14], rax
test rax, rax
jne 0x1400012f8
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001c40
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000e7a0
test eax, eax
jns 0x14000132f
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140001c00
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.140013afc
mov r15, rax
test rax, rax
jne 0x140001364
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140001c00
jmp 0x140001414
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
jne 0x140001395
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
test eax, eax
je 0x140001400
jmp 0x1400013f5
mov ebx, dword [rsi + 0xc]
mov rbp, r15
test rbx, rbx
je 0x140001400
mov r12d, 0x2000
nop word [rax + rax]
mov r9, qword [r14]
cmp rbx, r12
mov rdi, rbx
mov r8d, 1
cmova rdi, r12
mov rcx, rbp
mov rdx, rdi
call fcn.14000e488
cmp rax, 1
jb 0x1400013de
add rbp, rdi
sub rbx, rdi
jne 0x1400013b0
jmp 0x140001400
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140001c00
mov rcx, r15
call fcn.140013ae8
xor r15d, r15d
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rcx, qword [r14]
test rcx, rcx
je 0x140001428
call fcn.14000e138
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x140001440
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
call fcn.140005830
cmp eax, 0xffffffff
jne 0x140001462
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
lea rcx, [r14 + 0x3078]
lea rbp, [rdi + 0x12]
mov qword [rsp + 0x60], r12
mov rdx, rbp
call fcn.140005b50
mov r12, rax
test rax, rax
jne 0x1400014a7
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140001c00
lea eax, [r12 - 1]
jmp 0x140001635
mov rax, qword [r14]
test rax, rax
jne 0x1400014e0
lea rcx, [r14 + 0x78]
lea rdx, [0x14002a560]
call fcn.140002db0
mov qword [r14], rax
test rax, rax
jne 0x1400014e0
mov rdx, rbp
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001c40
mov ebx, 0xffffffff
jmp 0x140001617
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000e7a0
test eax, eax
jns 0x140001516
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140001c00
mov ebx, 0xffffffff
jmp 0x140001617
cmp byte [rdi + 0x10], 1
jne 0x140001534
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.140001050
mov ebx, eax
jmp 0x140001617
mov qword [rsp + 0x28], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x20], r15
mov ecx, r13d
call fcn.140013afc
mov r15, rax
test rax, rax
jne 0x140001575
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140001c00
lea ebx, [r15 - 1]
jmp 0x14000160d
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x140001605
mov qword [rsp + 0x58], rsi
nop word [rax + rax]
mov r9, qword [r14]
cmp rdi, r13
mov rsi, rdi
mov r8d, 1
cmova rsi, r13
mov rcx, r15
mov rdx, rsi
call fcn.14000e488
cmp rax, 1
jb 0x1400015e5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.14000eb94
cmp rax, 1
jb 0x1400015d5
sub rdi, rsi
jne 0x140001590
jmp 0x140001600
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400015f3
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov r8, rbp
call fcn.140001c00
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.140013ae8
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000162b
call fcn.14000e138
mov qword [r14], 0
mov rcx, r12
call fcn.14000e138
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret