joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401965
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
call fcn.00401bd0
mov ecx, 0
call sub.msvcrt.dll__time64
mov ecx, eax
call sub.msvcrt.dll_srand
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x00401644]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
add rax, 4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x0040177d]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x38]
lea rdx, [rbp - 0x30]
add rdx, 8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x00401835]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
jmp 0x401a6d
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x00408040]
test eax, eax
je 0x401a5f
lea rax, [rbp - 0x38]
lea rdx, [rbp - 0x30]
add rdx, 0xc
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x0040189c]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00408030]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x402040
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408644]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4021c8
mov rax, qword [0x00408648]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40208c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402115
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402070
mov rcx, rbx
call fcn.00402ce0
test rax, rax
mov r12, rax
je 0x4021fd
mov rax, qword [0x00408648]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402e10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408648]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4021e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40210e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402170
add dword [0x00408644], 1
cmp edi, 8
jae 0x402143
test dil, 4
jne 0x4021b4
test edi, edi
je 0x402138
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4021cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402138
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40215c
jmp 0x402138
add rsi, qword [0x00408648]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40210e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403230
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402138
xor esi, esi
jmp 0x402097
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402138
mov rax, qword [0x00408648]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403230
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403230
nop
nop dword [rax]

Function at 0x402950
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408900]
test rbx, rbx
je 0x4029a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40299b
test rsi, rsi
je 0x40299b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402980
lea rcx, [0x00408920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402d4d
mov rcx, r8
call fcn.00402bc0
test eax, eax
je 0x402d4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402d4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d4f
add rax, 0x28
cmp rax, r9
jne 0x402d30
xor eax, eax
add rsp, 0x28
ret

Function at 0x403230
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004030e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004030e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180005c67
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rsp, [rsp + 0x10]
call fcn.1801bbe2a
outsd dx, dword [rsi]
jmp fcn.1801c3e80

Function at 0x1800060e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x28]
call fcn.1801bbe2a
sbb al, 0xe9
test eax, 0x15001be5
shl byte [rcx + 0x7439c27], 0xc2
shr eax, cl
call 0x1ae7b1ecf
ret

Function at 0x18002b0e0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x18002b1d8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18002b247
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002b247
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002b247
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002b247
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002b247
cmp dword [rcx + 0x84], 0xe
jbe 0x18002b247
cmp dword [rcx + 0xf8], 0
je 0x18002b247
mov ecx, ebx
call fcn.18002b110
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18002b36c
nop
cmp dword [rbp + 0x20], 0
je 0x18002b295
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002b1a4
int3

Function at 0x18002b1d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x18002b1d8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18002b247
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002b247
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002b247
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002b247
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002b247
cmp dword [rcx + 0x84], 0xe
jbe 0x18002b247
cmp dword [rcx + 0xf8], 0
je 0x18002b247
mov ecx, ebx
call fcn.18002b110
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18002b36c
nop
cmp dword [rbp + 0x20], 0
je 0x18002b295
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002b1a4
int3

Function at 0x18002c760
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002c788
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002c788
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18003234c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18003237c
xor eax, eax
jmp 0x18003243f
mov rbp, rbx
cmp word [rax], si
je 0x1800323a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180032388
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180032384
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18003226c
movsxd r14, eax
test eax, eax
jne 0x1800323df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180032375
mov rcx, r14
call fcn.18002f6e4
mov rdi, rax
test rax, rax
jne 0x1800323f8
xor ecx, ecx
call fcn.18002e6e8
jmp 0x1800323d4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18003226c
test eax, eax
jne 0x180032429
mov rcx, rdi
call fcn.18002e6e8
jmp 0x180032433
xor ecx, ecx
call fcn.18002e6e8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800363c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800363de
mov al, 1
jmp 0x18003643e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800363ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003643c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180032d7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003643c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003643c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003643c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003643e
xor al, al
add rsp, 0x20
pop rbx
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
mov r8d, 0x58
mov qword [rsp + 0x60], rax
lea rdx, str.1.2.13
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov ebp, eax
mov rsi, r9
call fcn.14000a660
mov r15d, eax
test eax, eax
je 0x1400010d7
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002770
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.140013720
mov r13, rax
test rax, rax
jne 0x14000110d
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.1400024d0
jmp 0x140001269
mov ecx, 0x2000
call fcn.140013720
mov rbp, rax
test rax, rax
jne 0x14000113b
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.1400024d0
jmp 0x140001269
mov qword [rsp + 0xd0], r12
mov r15d, 0xffffffff
mov r12d, dword [rbx + 8]
nop dword [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.14000ec6c
cmp rax, rbx
jne 0x140001261
mov rcx, qword [rdi]
call fcn.14000e9e0
test eax, eax
jne 0x140001261
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.140008aa0
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001246
cmp eax, 2
je 0x140001241
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001204
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000f3ac
cmp rax, rbx
jne 0x1400011ff
mov rcx, r14
call fcn.14000e9e0
test eax, eax
je 0x14000121a
mov edi, r15d
jmp 0x140001246
test rsi, rsi
je 0x14000121a
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.1400288e0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x14000123c
test r12, r12
je 0x140001246
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001261
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.140002770
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000a340
mov rcx, r13
call fcn.14001370c
mov rcx, rbp
call fcn.14001370c
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 0x1400012a0
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 0x1400012e8
add rcx, 0x78
lea rdx, [0x14002a650]
call fcn.140003cd0
mov qword [r14], rax
test rax, rax
jne 0x1400012e8
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002770
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.14000efa4
test eax, eax
jns 0x14000131f
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.1400024d0
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.140013720
mov r15, rax
test rax, rax
jne 0x140001354
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.1400024d0
jmp 0x1400013f1
cmp byte [rsi + 0x10], 1
jne 0x14000136d
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
jmp 0x1400013e2
mov qword [rsp + 0x40], rbx
mov ebx, dword [rsi + 0xc]
mov qword [rsp + 0x48], rbp
mov rbp, r15
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
test rbx, rbx
je 0x1400013cc
mov r12d, 0x2000
nop dword [rax]
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.14000ec6c
cmp rax, 1
jb 0x140001415
add rbp, rdi
sub rbx, rdi
jne 0x1400013a0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
test eax, eax
je 0x1400013f1
mov rcx, r15
call fcn.14001370c
xor r15d, r15d
mov rcx, qword [r14]
test rcx, rcx
je 0x140001405
call fcn.14000e91c
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400013ce
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.140006750
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.140006a70
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.1400024d0
mov eax, 0xffffffff
jmp 0x140001635
mov rax, qword [r14]
test rax, rax
jne 0x1400014e0
lea rcx, [r14 + 0x78]
lea rdx, [0x14002a650]
call fcn.140003cd0
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.140002770
mov ebx, 0xffffffff
jmp 0x140001617
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000efa4
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.1400024d0
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.140013720
mov r15, rax
test rax, rax
jne 0x140001576
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.1400024d0
mov ebx, 0xffffffff
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.14000ec6c
cmp rax, 1
jb 0x1400015e5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.14000f3ac
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.1400024d0
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.14001370c
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000162b
call fcn.14000e91c
mov qword [r14], 0
mov rcx, r12
call fcn.14000e91c
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
Function at 0x1400017b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400017ef
lea rcx, [rbx + 0x78]
lea rdx, [0x14002a650]
call fcn.140003cd0
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140001842
mov rax, qword [0x14002cba0]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov r8d, 8
shr rax, 0x18
add al, 0xc
mov byte [rsp + 0x23], al
call fcn.140007240
mov rdi, rax
test rax, rax
je 0x140001842
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rax
call fcn.14000efa4
test eax, eax
jns 0x14000184c
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400019b3
mov r9, qword [rbx]
lea rcx, [rbx + 0x20]
mov edx, 0x58
mov r8d, 1
call fcn.14000ec6c
cmp rax, 1
jae 0x140001886
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400019b3
mov ecx, dword [rbx + 0x28]
xor r8d, r8d
mov eax, dword [rbx + 0x2c]
bswap eax
mov dword [rbx + 0x2c], eax
mov eax, dword [rbx + 0x30]
bswap eax
mov dword [rbx + 0x30], eax
mov eax, dword [rbx + 0x34]
bswap ecx
mov ecx, ecx
sub rdi, rcx
mov dword [rbx + 0x28], ecx
bswap eax
add rdi, 0x58
mov dword [rbx + 0x34], eax
mov qword [rbx + 8], rdi
xor edi, edi
mov dword [rbx + 0x507c], edi
mov dword [0x14003dd04], eax
mov edx, dword [rbx + 0x2c]
add rdx, qword [rbx + 8]
mov rcx, qword [rbx]
call fcn.14000efa4
movsxd rcx, dword [rbx + 0x30]
call fcn.140013720
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001902
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400019b3
movsxd rdx, dword [rbx + 0x30]
mov r8d, 1
mov r9, qword [rbx]
mov rcx, rax
call fcn.14000ec6c
cmp rax, 1
jae 0x140001929
lea rdx, str.Could_not_read_full_TOC__n
jmp 0x140001870
movsxd rax, dword [rbx + 0x30]
add rax, qword [rbx + 0x10]
mov rcx, qword [rbx]
mov qword [rbx + 0x18], rax
call fcn.14000e9e0
test eax, eax
je 0x140001954
lea rcx, str.Error_on_file._n
call fcn.140002770
mov eax, 0xffffffff
jmp 0x1400019b3
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
jae 0x1400019a1
nop
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
bswap edx
mov dword [rax], edx
movsxd rcx, edx
add rcx, rax
mov rax, rcx
cmp rcx, qword [rbx + 0x10]
jb 0x140001995
cmp rcx, qword [rbx + 0x18]
jb 0x140001960
jmp 0x1400019a1
lea rcx, str.Cannot_read_Table_of_Contents._n
call fcn.140002770
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400019b1
call fcn.14000e91c
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000ae20
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret