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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r14, qword [r8]
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
je 0x14004509f
mov ecx, 0x84222325
cmp rax, 8
jb 0x14004506b
mov rdx, rax
shr rdx, 3
xor r8d, r8d
nop word cs:[rax + rax]
movzx r9d, byte [r14 + r8*8]
xor r9d, ecx
imul ecx, r9d, 0x1b3
movzx r9d, byte [r14 + r8*8 + 1]
xor r9d, ecx
imul ecx, r9d, 0x1b3
movzx r9d, byte [r14 + r8*8 + 2]
xor r9d, ecx
imul ecx, r9d, 0x1b3
movzx r9d, byte [r14 + r8*8 + 3]
xor r9d, ecx
imul ecx, r9d, 0x1b3
movzx r9d, byte [r14 + r8*8 + 4]
xor r9d, ecx
imul ecx, r9d, 0x1b3
movzx r9d, byte [r14 + r8*8 + 5]
xor r9d, ecx
imul ecx, r9d, 0x1b3
movzx r9d, byte [r14 + r8*8 + 6]
xor r9d, ecx
imul ecx, r9d, 0x1b3
movzx r9d, byte [r14 + r8*8 + 7]
xor r9d, ecx
imul ecx, r9d, 0x1b3
inc r8
cmp rdx, r8
jne 0x140044fe0
mov rdx, rax
and rdx, 0xfffffffffffffff8
cmp rdx, rax
jae 0x140045097
nop word [rax + rax]
movzx r8d, byte [r14 + rdx]
xor r8d, ecx
imul ecx, r8d, 0x1b3
inc rdx
cmp rax, rdx
jne 0x140045080
and ecx, 0x7fffffff
jmp 0x1400450a4
mov ecx, 0x4222325
mov edx, 0x1f31d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_ldiv]
imul ecx, eax, 0xfffff4ec
shr rax, 0x20
imul eax, eax, 0x41a7
lea edx, [rax + rcx]
add edx, 0x7fffffff
add eax, ecx
cmovns edx, eax
movsxd rax, edx
and rax, qword [rbx + 0x30]
mov r14, qword [rbx + 8]
mov rcx, qword [rbx + 0x18]
mov rdx, rax
shl rdx, 4
mov r15, qword [rdx + rcx + 8]
cmp r15, r14
je 0x140045156
add rax, rax
mov r12, qword [rcx + rax*8]
mov rdi, qword [rdi]
movzx ebp, byte [rdi]
mov rbx, qword [r15 + 0x10]
movzx eax, byte [rbx]
cmp bpl, al
jl 0x140045126
nop word cs:[rax + rax]
jg 0x14004513d
cmp rdi, rbx
je 0x14004513d
mov rcx, rdi
mov rdx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jns 0x140045147
cmp r15, r12
je 0x140045156
mov r15, qword [r15 + 8]
mov rbx, qword [r15 + 0x10]
movzx eax, byte [rbx]
cmp bpl, al
jge 0x140045110
jmp 0x140045126
cmp bpl, al
jg 0x140045156
cmp rdi, rbx
je 0x140045159
mov rcx, rbx
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jns 0x140045159
xor r15d, r15d
test r15, r15
cmovne r14, r15
mov qword [rsi], r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140048000
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov edx, 1
mov r8d, 4
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x1400481c2
lea rcx, [rdi + 8]
mov edx, 1
mov r8d, 8
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
je 0x1400481d4
lea rcx, [rdi + 0x10]
mov edx, 1
mov r8d, 2
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x1400481e6
lea rcx, [rdi + 0x12]
mov edx, 1
mov r8d, 2
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x1400481f8
lea r14, [rdi + 0x14]
mov edx, 1
mov r8d, 4
mov rcx, r14
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x14004820a
lea r15, [rdi + 0x18]
mov edx, 1
mov r8d, 4
mov rcx, r15
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x14004821c
lea r12, [rdi + 0x20]
mov edx, 1
mov r8d, 8
mov rcx, r12
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
je 0x14004822e
lea r13, [rdi + 0x28]
mov edx, 1
mov r8d, 8
mov rcx, r13
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
je 0x140048240
lea rcx, [rdi + 0x30]
mov edx, 1
mov r8d, 8
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
je 0x140048252
lea rcx, [rdi + 0x38]
mov edx, 1
mov r8d, 8
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
je 0x140048264
cmp dword [rdi], 0x6064b50
jne 0x14004827d
mov ecx, dword [r14]
lea rax, str.Split_or_spanned_ZIP_files_arent_supported
or ecx, dword [r15]
jne 0x140048284
mov rcx, qword [r12]
cmp rcx, qword [r13]
jne 0x140048284
xor eax, eax
movabs rdx, 0x100000000
cmp rcx, rdx
jl 0x14004828c
lea rax, str.Too_many_directory_entries____4_billion_.
jmp 0x140048284
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140048036
lea rcx, str.read_filepos
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140048058
lea rcx, str.read_uint16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14004807a
lea rcx, str.read_uint16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14004809c
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400480c1
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400480e6
lea rcx, str.read_filepos
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14004810b
lea rcx, str.read_filepos
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140048130
lea rcx, str.read_filepos
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140048152
lea rcx, str.read_filepos
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
cmp dword [rdi], 0x6064b50
je 0x140048180
lea rax, str.Problem_reading_Zip64_end_record
mov qword [rsi], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004d650
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rcx], rax
cmp qword [rcx + 0x80], 0
movzx ecx, byte [rcx + 0x7c]
je 0x14004d696
mov rax, qword [rsi + 0x18]
lea rdx, [rsi + 0x70]
cmp qword [rax], rdx
je 0x14004d6a3
test cl, cl
jne 0x14004d6cd
jmp 0x14004d7e8
test cl, cl
jne 0x14004d778
jmp 0x14004d7e8
mov r8d, dword [rsi + 0x90]
mov r9, qword [rsi + 0x88]
mov qword [rax], r9
mov r10, qword [rsi + 0x38]
mov qword [r10], r9
sub r8d, r9d
mov r9, qword [rsi + 0x50]
mov dword [r9], r8d
test cl, cl
je 0x14004d7e8
cmp qword [rax], rdx
je 0x14004d6e0
mov rcx, qword [rsi + 0x68]
test rcx, rcx
jne 0x14004d708
jmp 0x14004d76b
mov ecx, dword [rsi + 0x90]
mov rdx, qword [rsi + 0x88]
mov qword [rax], rdx
mov rax, qword [rsi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rsi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x14004d76b
cmp byte [rsi + 0x71], 0
je 0x14004d76b
lea r9, [rbp - 0x10]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea r8, [rbp - 8]
mov qword [rsp + 0x20], r8
lea rdi, [rbp - 0x30]
mov r8, rdi
call rax
cmp eax, 3
je 0x14004d767
cmp eax, 1
je 0x14004d741
test eax, eax
jne 0x14004d76b
mov byte [rsi + 0x71], 0
mov rbx, qword [rbp - 8]
sub rbx, rdi
je 0x14004d76b
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jmp 0x14004d76b
mov byte [rsi + 0x71], 0
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rsi + 0x7c], 0
mov byte [rsi + 0x71], 0
lea rax, [rsi + 8]
mov qword [rsi + 0x18], rax
lea rax, [rsi + 0x10]
mov qword [rsi + 0x20], rax
lea rax, [rsi + 0x28]
mov qword [rsi + 0x38], rax
lea rax, [rsi + 0x30]
mov qword [rsi + 0x40], rax
lea rax, [rsi + 0x48]
mov qword [rsi + 0x50], rax
lea rax, [rsi + 0x4c]
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x48], 0
mov qword [rsi + 0x80], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x28], xmm0
mov eax, dword [0x1401b0840]
mov dword [rsi + 0x74], eax
mov eax, dword [0x1401b0844]
mov dword [rsi + 0x78], eax
mov qword [rsi + 0x68], 0
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x140050ed0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov edi, r8d
mov ebx, edx
mov r14, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je case.default.0x140050f05
cmp edi, 3
ja case.default.0x140050f05
mov eax, edi
lea rdx, [0x140139afc]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rdx, rsi
call fcn.140055940
mov rax, qword [r14 + 8]
mov r10, qword [r14 + 0xb8]
test r10, r10
jne 0x140050f53
jmp 0x140050f82
mov rdx, rsi
call fcn.140056020
mov rax, qword [r14 + 8]
mov r10, qword [r14 + 0xb8]
test r10, r10
jne 0x140050f53
jmp 0x140050f82
mov rdx, rsi
call fcn.140055e20
mov rax, qword [r14 + 8]
mov r10, qword [r14 + 0xb8]
test r10, r10
je 0x140050f82
mov rcx, rax
mov edx, ebx
mov r8d, edi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp r10
mov rdx, rsi
call fcn.140055c20
mov rax, qword [r14 + 8]
mov r10, qword [r14 + 0xb8]
test r10, r10
jne 0x140050f53
test rax, rax
je 0x140050f9a
mov ecx, ebx
mov edx, edi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp rax
mov rcx, r14
mov edx, ebx
mov r8d, edi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140050fc0

Function at 0x140050fc0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r9
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 1
call r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call r15
mov rcx, r14
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
cmp ebx, 1
jne 0x14005102c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.__WARNING_
mov edx, 0xa
mov r8d, 1
mov r9, rax
call fcn.140119584
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov ecx, 2
call r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
and ebx, 0x7f
cmp ebx, 3
jb 0x14005107f
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140051066
call rax
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14005107f
mov ecx, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp rax
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140058ec0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov edi, 0xffffffff
cmp dword [rcx + 0x60], 0
jne 0x140058f50
mov rsi, rcx
xor edi, edi
cmp dword [rcx + 0x3c], 0
jne 0x140058f50
mov ecx, dword [rsi + 4]
mov ebx, dword [rsi + 0x14]
mov rdx, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
mov r8d, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
test eax, eax
js 0x140058f0b
je 0x140058f40
mov dword [rsi + 0x78], eax
mov ecx, 2
cmp eax, ebx
jb 0x140058f45
jmp 0x140058f48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 2
cmp dword [rax], 0xb
je 0x140058f45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
jmp 0x140058f50
mov ecx, 1
mov dword [rsi + 0x3c], ecx
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x70], rax
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140059bb0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov eax, 0xffffffff
cmp dword [rcx + 0x60], 0
je 0x140059bc6
add rsp, 0x30
pop rsi
ret
xor eax, eax
cmp dword [rcx + 0x3c], 0
jne 0x140059bc0
mov eax, dword [rcx + 4]
mov esi, dword [rcx + 0x14]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x28], rcx
mov dword [rcx + 0x78], 0
mov ecx, eax
mov r8d, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
test eax, eax
js 0x140059c08
je 0x140059c49
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x78], eax
mov edx, 2
cmp eax, esi
jb 0x140059c53
jmp 0x140059c56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, 2
cmp dword [rax], 0xb
mov rcx, qword [rsp + 0x28]
je 0x140059c53
mov rsi, rcx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
mov eax, 0xffffffff
add rsp, 0x30
pop rsi
ret
mov edx, 1
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x3c], edx
mov rax, qword [rcx + 0x20]
mov qword [rcx + 0x70], rax
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x140065610
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rcx + 0x48]
test eax, eax
je 0x140065697
cmp eax, 2
je 0x1400656b8
cmp eax, 1
jne 0x1400656f5
mov edi, dword [rsi + 0x14]
add edi, edi
mov rbx, qword [rsi + 0x28]
mov dword [rsi + 0x38], 0
xor r9d, r9d
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, rbx
mov r8d, edi
sub r8d, r9d
call r14
test eax, eax
jle 0x1400656e2
mov edx, dword [rsi + 0x38]
add edx, eax
mov dword [rsi + 0x38], edx
mov r8d, edi
sub r8d, edx
jbe 0x1400656ed
mov ecx, dword [rsi + 4]
mov edx, edx
add rdx, rbx
call r14
test eax, eax
jle 0x1400656e2
mov r9d, dword [rsi + 0x38]
add r9d, eax
mov dword [rsi + 0x38], r9d
cmp r9d, edi
jb 0x140065650
jmp 0x1400656ed
mov rcx, rsi
call fcn.140065cb0
cmp eax, 0xffffffff
je 0x1400656db
xor edi, edi
cmp dword [rsi + 0x38], 0
jne 0x1400656f7
mov eax, dword [rsi + 0x48]
cmp eax, 2
jne 0x14006562c
mov eax, dword [rsi + 0x14]
add eax, eax
mov dword [rsi + 0x88], eax
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x80], rax
mov rcx, rsi
call fcn.140065730
cmp eax, 0xffffffff
jne 0x1400656f5
mov edi, 0xffffffff
jmp 0x1400656f7
test eax, eax
js 0x140065703
mov dword [rsi + 0x3c], 1
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x30], rax
xor edi, edi
mov eax, edi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
jmp 0x1400656f7
Function at 0x140065730
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
lea r14, [rcx + 0x70]
mov ebx, dword [rcx + 0x88]
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
lea r13, [0x14013cdb0]
mov edi, 0xffffffff
cmp dword [rsi + 0x78], 0
jne 0x1400657ff
cmp dword [rsi + 0x60], 0
jne 0x14006595c
cmp dword [rsi + 0x3c], 0
jne 0x1400658f6
mov ebp, dword [rsi + 0x14]
mov r15, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
xor r9d, r9d
nop
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r15
mov r8d, ebp
sub r8d, r9d
call r12
test eax, eax
jle 0x1400657db
mov r9d, dword [rsi + 0x78]
add r9d, eax
mov dword [rsi + 0x78], r9d
mov r8d, ebp
sub r8d, r9d
jbe 0x1400657ee
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r15
call r12
test eax, eax
jle 0x1400657db
mov r9d, dword [rsi + 0x78]
add r9d, eax
mov dword [rsi + 0x78], r9d
cmp r9d, ebp
jb 0x140065790
jmp 0x1400657ee
test eax, eax
js 0x140065915
mov dword [rsi + 0x3c], 1
mov r9d, dword [rsi + 0x78]
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x70], rax
test r9d, r9d
je 0x1400658f6
mov rcx, r14
xor edx, edx
call fcn.14005f580
mov r15d, eax
lea eax, [r15 + 4]
cmp eax, 6
ja case.0x14006581d.1
movsxd rax, dword [r13 + rax*4]
add rax, r13
jmp rax
mov eax, dword [rsi + 0x88]
test eax, eax
je 0x140065833
cmp r15d, 1
jne 0x140065760
sub ebx, eax
mov dword [rsi + 0x38], ebx
mov rdx, qword [rsi + 0x80]
sub rdx, rbx
mov qword [rsi + 0x30], rdx
mov ecx, dword [rsi + 0xbc]
mov r8d, ebx
call fcn.1400606e0
mov dword [rsi + 0xbc], eax
xor edi, edi
cmp r15d, 1
jne 0x14006595c
lea rdx, [rsp + 0x24]
mov rcx, rsi
call fcn.140066710
cmp eax, 0xffffffff
je 0x14006590c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140066710
cmp eax, 0xffffffff
je 0x14006590c
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsi + 0xbc]
jne 0x14006593a
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsi + 0x8c]
jne 0x140065943
mov dword [rsi + 0x48], 0
jmp 0x14006595c
lea r8, str.internal_error:_inflate_stream_corrupt
mov rcx, rsi
mov edx, 0xfffffffe
jmp 0x140065952
lea r8, str.out_of_memory
mov rcx, rsi
mov edx, 0xfffffffc
jmp 0x140065952
mov rax, qword [rsi + 0x90]
test rax, rax
lea r8, str.compressed_data_error
cmovne r8, rax
jmp 0x14006594a
lea r8, str.unexpected_end_of_file
mov rcx, rsi
mov edx, 0xfffffffd
call fcn.140056740
jmp 0x14006595c
lea r8, str.unexpected_end_of_file
jmp 0x14006594a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
jmp 0x14006595c
lea r8, str.incorrect_data_check
jmp 0x14006594a
lea r8, str.incorrect_length_check
mov rcx, rsi
mov edx, 0xfffffffd
call fcn.140056740
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140066640
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, 0xffffffff
cmp dword [rcx + 0x60], 0
jne 0x140066701
mov rsi, rcx
xor edi, edi
cmp dword [rcx + 0x3c], 0
jne 0x140066701
mov edi, dword [rsi + 0x14]
mov rbx, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
xor r9d, r9d
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, rbx
mov r8d, edi
sub r8d, r9d
call r14
test eax, eax
jle 0x1400666c7
mov edx, dword [rsi + 0x78]
add edx, eax
mov dword [rsi + 0x78], edx
mov r8d, edi
sub r8d, edx
jbe 0x1400666d2
mov ecx, dword [rsi + 4]
mov edx, edx
add rdx, rbx
call r14
test eax, eax
jle 0x1400666c7
mov r9d, dword [rsi + 0x78]
add r9d, eax
mov dword [rsi + 0x78], r9d
cmp r9d, edi
jb 0x140066680
jmp 0x1400666d2
test eax, eax
js 0x1400666de
mov dword [rsi + 0x3c], 1
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x70], rax
xor edi, edi
jmp 0x140066701
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
mov eax, edi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400670c0
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rcx + 0x48]
test eax, eax
je 0x140067147
cmp eax, 2
je 0x140067168
cmp eax, 1
jne 0x1400671a0
mov edi, dword [rsi + 0x14]
add edi, edi
mov rbx, qword [rsi + 0x28]
mov dword [rsi + 0x38], 0
xor r9d, r9d
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, rbx
mov r8d, edi
sub r8d, r9d
call r14
test eax, eax
jle 0x14006718d
mov edx, dword [rsi + 0x38]
add edx, eax
mov dword [rsi + 0x38], edx
mov r8d, edi
sub r8d, edx
jbe 0x140067198
mov ecx, dword [rsi + 4]
mov edx, edx
add rdx, rbx
call r14
test eax, eax
jle 0x14006718d
mov r9d, dword [rsi + 0x38]
add r9d, eax
mov dword [rsi + 0x38], r9d
cmp r9d, edi
jb 0x140067100
jmp 0x140067198
mov rcx, rsi
call fcn.140067420
cmp eax, 0xffffffff
je 0x1400671c2
xor eax, eax
cmp dword [rsi + 0x38], 0
jne 0x1400671c7
mov eax, dword [rsi + 0x48]
cmp eax, 2
jne 0x1400670dc
mov eax, dword [rsi + 0x14]
add eax, eax
mov dword [rsi + 0x88], eax
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x80], rax
mov rcx, rsi
call fcn.1400671e0
cmp eax, 0xffffffff
jne 0x1400671a0
jmp 0x1400671c2
test eax, eax
js 0x1400671a4
mov dword [rsi + 0x3c], 1
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x30], rax
xor eax, eax
jmp 0x1400671c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400671e0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
lea r14, [rcx + 0x70]
mov ebx, dword [rcx + 0x88]
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
lea r12, [0x14013cdcc]
mov edi, 0xffffffff
cmp dword [rsi + 0x78], 0
jne 0x1400672af
cmp dword [rsi + 0x60], 0
jne 0x140067408
cmp dword [rsi + 0x3c], 0
jne 0x1400673a2
mov ebp, dword [rsi + 0x14]
mov r13, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
xor r9d, r9d
nop
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r13
mov r8d, ebp
sub r8d, r9d
call r15
test eax, eax
jle 0x14006728b
mov r9d, dword [rsi + 0x78]
add r9d, eax
mov dword [rsi + 0x78], r9d
mov r8d, ebp
sub r8d, r9d
jbe 0x14006729e
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r13
call r15
test eax, eax
jle 0x14006728b
mov r9d, dword [rsi + 0x78]
add r9d, eax
mov dword [rsi + 0x78], r9d
cmp r9d, ebp
jb 0x140067240
jmp 0x14006729e
test eax, eax
js 0x1400673c1
mov dword [rsi + 0x3c], 1
mov r9d, dword [rsi + 0x78]
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x70], rax
test r9d, r9d
je 0x1400673a2
mov rcx, r14
xor edx, edx
call fcn.14005f580
lea ecx, [rax + 4]
cmp ecx, 6
ja case.0x1400672c8.1
movsxd rcx, dword [r12 + rcx*4]
add rcx, r12
jmp rcx
mov ecx, dword [rsi + 0x88]
test ecx, ecx
je 0x1400672dd
cmp eax, 1
jne 0x140067210
sub ebx, ecx
mov dword [rsi + 0x38], ebx
mov rdx, qword [rsi + 0x80]
sub rdx, rbx
mov qword [rsi + 0x30], rdx
mov ecx, dword [rsi + 0xbc]
mov r8d, ebx
mov rbx, rax
call fcn.1400606e0
mov dword [rsi + 0xbc], eax
xor edi, edi
cmp ebx, 1
jne 0x140067408
lea rdx, [rsp + 0x24]
mov rcx, rsi
call fcn.140067d60
cmp eax, 0xffffffff
je 0x1400673b8
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140067d60
cmp eax, 0xffffffff
je 0x1400673b8
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsi + 0xbc]
jne 0x1400673e6
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsi + 0x8c]
jne 0x1400673ef
mov dword [rsi + 0x48], 0
jmp 0x140067408
lea r8, str.internal_error:_inflate_stream_corrupt
mov rcx, rsi
mov edx, 0xfffffffe
jmp 0x1400673fe
lea r8, str.out_of_memory
mov rcx, rsi
mov edx, 0xfffffffc
jmp 0x1400673fe
mov rax, qword [rsi + 0x90]
test rax, rax
lea r8, str.compressed_data_error
cmovne r8, rax
jmp 0x1400673f6
lea r8, str.unexpected_end_of_file
mov rcx, rsi
mov edx, 0xfffffffd
call fcn.140056740
jmp 0x140067408
lea r8, str.unexpected_end_of_file
jmp 0x1400673f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
jmp 0x140067408
lea r8, str.incorrect_data_check
jmp 0x1400673f6
lea r8, str.incorrect_length_check
mov rcx, rsi
mov edx, 0xfffffffd
call fcn.140056740
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret