joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ea9f8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1402a85f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1401eaa56
cmp word [rdx], r12w
jne 0x1401eaa56
or byte [rax + r8*8 + 0x38], cl
jmp 0x1401eaa5c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1401eabb7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1401eab92
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1401eaa95
mov rcx, r9
jmp 0x1401eaab8
cmp r9, rdx
jae 0x1401eaacf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1401eaa79
jmp 0x1401eabb7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401eab8c
cmp dword [rsp + 0x80], edi
je 0x1401eab8c
mov rdx, r14
lea r11, [0x1402a85f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1401eab65
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401eab38
mov word [rbx], r12w
jmp 0x1401eabb3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401eab41
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1401eabb3
cmp word [rsp + 0x70], r12w
jne 0x1401eab72
cmp rbx, rsi
je 0x1401eab32
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1401eb684
cmp word [rsp + 0x70], r12w
je 0x1401eabb7
mov word [rbx], r13w
jmp 0x1401eabb3
lea r11, [0x1402a85f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401eabaf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401eabb7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401f11e8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401f126f
mov rsi, rbx
cmp word [rax], bp
je 0x1401f122e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401f1218
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401f1214
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401eb728
mov rdi, rax
test rax, rax
je 0x1401f125c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401c75d0
mov rbp, rdi
xor ecx, ecx
call fcn.1401e9550
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401f8004
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401eb684
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401eb684
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401f8154
cmp rax, 0xffffffffffffffff
je 0x1401f8154
xor edi, edi
test rbp, rbp
jle 0x1401f80ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401e9b3c
mov rbx, rax
test rax, rax
jne 0x1401f808c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401f80f5
mov edx, 0x8000
mov ecx, r14d
call fcn.1401e29e4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401e9240
cmp eax, 0xffffffff
je 0x1401f80d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401f809c
mov edx, r15d
mov ecx, r14d
call fcn.1401e29e4
jmp 0x1401f80f5
cmp byte [rsi + 0x38], dil
je 0x1401f80ec
cmp dword [rsi + 0x34], 5
jne 0x1401f80ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401f80f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401e9550
jmp 0x1401f8168
jns 0x1401f8168
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401eb684
cmp rax, 0xffffffffffffffff
jne 0x1401f8120
cmp byte [rsi + 0x30], dil
je 0x1401f8168
mov edi, dword [rsi + 0x2c]
jmp 0x1401f8168
mov ecx, r14d
call fcn.1401e1520
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401f8168
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401f8168
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401f8161
mov eax, dword [rsi + 0x2c]
jmp 0x1401f8166
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401eb684
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1401f8740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401f8768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401f8768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x6d7d4860
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d49e8
mov rax, qword [0x6d7f55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d48ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d4935
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d4890
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d4a1d
mov rax, qword [0x6d7f55e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d4a00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d492e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d4990
add dword [0x6d7f55e4], 1
cmp edi, 8
jae 0x6d7d4963
test dil, 4
jne 0x6d7d49d4
test edi, edi
je 0x6d7d4958
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d49ef
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 0x6d7d4958
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 0x6d7d497c
jmp 0x6d7d4958
add rsi, qword [0x6d7f55e8]
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 0x6d7d492e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d4958
xor esi, esi
jmp 0x6d7d48b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d4958
mov rax, qword [0x6d7f55e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d5170
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f58a0]
test rbx, rbx
je 0x6d7d51c4
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 0x6d7d51bb
test rsi, rsi
je 0x6d7d51bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d51a0
lea rcx, [0x6d7f58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d5400
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d5410
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d5420
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d5461
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d5458
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d5463
add rax, 0x28
cmp rax, r9
jne 0x6d7d5444
xor eax, eax
ret

Function at 0x6d7d5500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d556d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d556d
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 0x6d7d556d
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 0x6d7d5564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d556f
add rax, 0x28
cmp rax, r9
jne 0x6d7d5550
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d5670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d5690
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5688
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 0x6d7d56ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d56e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d56f4
add rax, 0x28
cmp rax, r9
jne 0x6d7d56d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d5710
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d577e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d577e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d577e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d577e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d5775
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d5785
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d5760
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d5798
jmp 0x6d7d577e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d57a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d577e
test r9d, r9d
jg 0x6d7d5790
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d5ae0
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140003f4c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140003b5c
add rsp, 0x28
jmp 0x140003f70
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14001d938], rdi
jne 0x140008848
mov eax, dword [0x14001d930]
cmp eax, 1
je 0x140008868
mov eax, dword [0x14001d930]
cmp eax, ebx
jne 0x14000887f
mov dword [0x14001d930], 1
lea r13, [0x140014218]
lea rdi, [0x140014200]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000401c
cmp eax, ebx
jne 0x14000401c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140004011
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140003ffa
cmp eax, ebx
jne 0x140008875
mov eax, dword [0x14001d930]
cmp eax, 1
jne 0x14000404c
lea rdx, [0x1400141f8]
lea rcx, [0x1400141c0]
call fcn.140134000
mov dword [0x14001d930], 2
cmp r12d, ebx
jne 0x14000405b
mov rax, rbx
xchg qword [0x14001d938], rax
cmp qword [0x14001d950], rbx
jne 0x14000888e
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x1400088b7
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14000409f
cmp word [rcx], 0x22
je 0x140008912
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140004084
cmp word [rcx], bx
jne 0x1400088c1
cmp word [rcx], bx
jne 0x1400088ce
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400040e8
nop
jmp 0x1400088e6
cmp rax, rdi
jne 0x140008858
mov r12d, 1
jmp 0x140003fba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003fa9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140004024
mov eax, 0xff
jmp 0x140008951
mov dword [0x14001db2c], 1
jmp 0x140004024
lea rcx, [0x14001d950]
call fcn.140011e1c
cmp eax, ebx
je 0x140004068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14001d950]
nop
jmp 0x140004068
mov eax, 0xff
jmp 0x140008951
cmp edx, ebx
je 0x1400040a8
jmp 0x14000408a
cmp word [rcx], 0x20
ja 0x1400040b1
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400040a8
mov dword [0x14001db28], eax
cmp dword [0x14001d30c], ebx
jne 0x1400088fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001db2c], ebx
jne 0x140008910
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001db28]
jmp 0x140008951
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140004094
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x140001130
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rsp + 0x38], 0
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call fcn.14000b4e0
mov r9, qword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.14000b1a4
cmp byte [rsp + 0x30], 0x4d
jne 0x140001220
cmp byte [rsp + 0x31], 0x5a
jne 0x140001220
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 0x3c]
call fcn.14000b4e0
mov r9, qword [rbx]
lea rcx, [rsp + 0x38]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000b1a4
mov edx, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rbx]
add edx, 0x18
call fcn.14000b4e0
mov r9, qword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14000b1a4
cmp byte [rsp + 0x30], 0xb
jne 0x140001220
movzx eax, byte [rsp + 0x31]
cmp al, 1
jne 0x1400011de
mov ecx, 0x98
jmp 0x1400011e7
cmp al, 2
jne 0x140001220
mov ecx, 0xa8
mov edx, dword [rsp + 0x38]
xor r8d, r8d
add edx, ecx
mov rcx, qword [rbx]
call fcn.14000b4e0
mov r9, qword [rbx]
lea rcx, [rsp + 0x38]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000b1a4
mov eax, dword [rsp + 0x38]
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
add rsp, 0x20
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x140001230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbp, rdx
mov rdi, rcx
jne 0x140001277
add rcx, 0x78
lea rdx, [0x140022400]
call fcn.140002dd0
mov qword [rdi], rax
test rax, rax
jne 0x140001277
lea rcx, str.Cannot_open_archive_file_n
call fcn.140001e90
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rbp + 4]
mov qword [rsp + 0x38], rsi
call fcn.140008b72
add eax, dword [rdi + 8]
xor r8d, r8d
mov rcx, qword [rdi]
mov edx, eax
call fcn.14000b4e0
mov ecx, dword [rbp + 8]
call fcn.140008b72
mov ecx, eax
call fcn.14000add4
mov rsi, rax
test rax, rax
jne 0x1400012c9
lea rcx, str.Could_not_allocate_read_buffer_n
call fcn.140001e90
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rbp + 8]
call fcn.140008b72
mov r9, qword [rdi]
mov r8d, 1
mov edx, eax
mov rcx, rsi
call fcn.14000b1a4
cmp rax, 1
jae 0x140001310
lea rcx, str.Could_not_read_from_file_n
call fcn.140001e90
mov rcx, rsi
call fcn.14000adcc
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp byte [rbp + 0x10], 1
jne 0x140001360
mov rdx, rbp
mov qword [rsp + 0x30], rbx
mov rcx, rsi
call fcn.140001040
mov rcx, rsi
mov rbx, rax
call fcn.14000adcc
test rbx, rbx
mov rsi, rbx
mov rbx, qword [rsp + 0x30]
jne 0x140001360
lea rdx, [rbp + 0x12]
lea rcx, str.Error_decompressing__s_n
call fcn.140001e90
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001374
call fcn.14000ae60
mov qword [rdi], 0
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140001230
mov rcx, rdi
mov rbp, rax
call fcn.1400046c0
cmp eax, 0xffffffff
jne 0x1400013cc
or eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x2078]
lea rbx, [rsi + 0x12]
mov rdx, rbx
call fcn.140004a10
mov ecx, dword [rsi + 0xc]
mov rdi, rax
call fcn.140008b72
mov esi, eax
test rdi, rdi
jne 0x140001411
mov r8, rbx
lea rdx, str._s_could_not_be_extracted__n
lea rcx, str.fopen
call fcn.140001960
or eax, 0xffffffff
jmp 0x14000145d
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14000bc0c
cmp rax, 1
je 0x14000144b
test rsi, rsi
je 0x14000144b
mov r8, rbx
lea rdx, str.Failed_to_write_all_bytes_for__s_n
lea rcx, str.fwrite
call fcn.140001960
or eax, 0xffffffff
jmp 0x14000145d
mov rcx, rdi
call fcn.14000ae60
mov rcx, rbp
call fcn.14000adcc
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001480
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea esi, [rdx - 0x60]
mov rdi, rcx
mov rcx, qword [rcx]
lea rbx, [rsp + 0x28]
mov edx, esi
xor r8d, r8d
call fcn.14000b4e0
test eax, eax
jne 0x140001506
mov r9, qword [rdi]
lea edx, [rax + 0x60]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x20]
call fcn.14000b1a4
cmp rax, 1
jb 0x140001506
nop word [rax + rax]
mov r8d, 8
lea rcx, str.MEI_f_v_n_v
mov rdx, rbx
call fcn.14000aa00
test eax, eax
je 0x14000150b
dec rbx
lea rax, [rsp + 0x20]
cmp rbx, rax
jae 0x1400014e0
or eax, 0xffffffff
jmp 0x140001557
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x20], xmm0
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdi + 0x30], xmm1
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdi + 0x40], xmm0
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rdi + 0x50], xmm1
movsd xmm1, qword [rbx + 0x50]
movups xmmword [rdi + 0x60], xmm0
movsd qword [rdi + 0x70], xmm1
mov ecx, dword [rdi + 0x28]
call fcn.140008b72
lea rcx, [rsp + 0x20]
sub ebx, ecx
add ebx, esi
sub ebx, eax
add ebx, 0x58
mov dword [rdi + 8], ebx
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140008c10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001670
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14000169b
add rcx, 0x78
lea rdx, [0x140022400]
call fcn.140002dd0
mov qword [rbx], rax
test rax, rax
je 0x140001728
mov rcx, rbx
call fcn.140001130
cmp eax, 1
jge 0x1400016be
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14000b4e0
mov rcx, qword [rbx]
call fcn.14000b9c4
mov edx, eax
mov rcx, rbx
call fcn.140001480
cmp eax, 0xffffffff
je 0x140001728
mov ecx, dword [rbx + 0x34]
mov dword [rbx + 0x407c], 0
call fcn.140008b72
mov dword [0x140032b14], eax
mov ecx, dword [rbx + 0x2c]
call fcn.140008b72
add eax, dword [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx]
mov edx, eax
call fcn.14000b4e0
mov ecx, dword [rbx + 0x30]
call fcn.140008b72
mov ecx, eax
call fcn.14000add4
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001731
lea rdx, str.Could_not_allocate_buffer_for_TOC.
lea rcx, str.malloc
call fcn.140001960
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0x30]
call fcn.140008b72
mov r9, qword [rbx]
mov r8d, 1
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.14000b1a4
cmp rax, 1
jae 0x14000176f
lea rdx, str.Could_not_read_from_file.
lea rcx, str.fread
call fcn.140001960
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, dword [rbx + 0x30]
call fcn.140008b72
mov ecx, eax
add rcx, qword [rbx + 0x10]
mov qword [rbx + 0x18], rcx
mov rcx, qword [rbx]
call fcn.14000aef8
test eax, eax
je 0x1400017a2
lea rcx, str.Error_on_file_n.
call fcn.140001d80
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400017b6
call fcn.14000ae60
mov qword [rbx], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400045a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140008c50
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140022400]
call fcn.140002dd0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140004a10
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140004694
mov rcx, rsi
test rax, rax
je 0x14000469c
call fcn.14000aecc
test eax, eax
jne 0x140004680
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 0x1000
mov r8d, 1
call fcn.14000b1a4
cmp rax, 0xffffffffffffffff
jne 0x14000463f
mov rcx, rsi
call fcn.14000aef8
test eax, eax
je 0x140004667
mov rcx, rsi
jmp 0x140004678
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x1000
mov r8d, 1
call fcn.14000bc0c
test eax, eax
jle 0x140004675
mov rcx, rbx
call fcn.14000aef8
test eax, eax
jne 0x140004675
mov rcx, rsi
call fcn.14000aecc
test eax, eax
je 0x140004610
jmp 0x140004680
mov rcx, rbx
call fcn.140011254
or edi, 0xffffffff
mov rcx, rsi
call fcn.14000ae60
mov rcx, rbx
call fcn.14000ae60
mov eax, edi
jmp 0x1400046a4
test rbx, rbx
je 0x1400046a1
mov rcx, rbx
call fcn.14000ae60
or eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140008c10
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret