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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x180dea720]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x18003239e
cmp word [rdx], r9w
jne 0x18003239e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1800323a3
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x180032522
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1800324ed
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1800323eb
cmp rcx, r8
jae 0x18003240b
cmp word [rcx], r9w
jne 0x1800323eb
add rax, 4
mov edx, r9d
jmp 0x1800323ee
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1800323c0
jmp 0x180032522
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800324e6
cmp dword [rsp + 0x80], edi
je 0x1800324e6
lea r9, [0x180dea720]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1800324c0
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x180032473
mov word [rbx], bp
jmp 0x18003251f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x18003248e
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x18003251f
cmp word [rsp + 0x70], bp
jne 0x1800324cc
cmp rbx, rsi
je 0x18003246b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180033068
cmp word [rsp + 0x70], bp
je 0x180032522
mov word [rbx], 0xd
jmp 0x18003251f
mov rcx, r15
lea r9, [0x180dea720]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18003251c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180032522
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003657c
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 0x1800365ac
xor eax, eax
jmp 0x18003666f
mov rbp, rbx
cmp word [rax], si
je 0x1800365d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800365b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800365b4
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.180034c14
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180036612
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800365a5
call fcn.18002ee00
mov rdi, rax
test rax, rax
jne 0x180036628
xor ecx, ecx
call fcn.18002e960
jmp 0x180036607
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.180034c14
test eax, eax
jne 0x180036659
mov rcx, rdi
call fcn.18002e960
jmp 0x180036663
xor ecx, ecx
call fcn.18002e960
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 0x1800393d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x180039443
cmp word [rcx], si
je 0x180039443
lea rdx, [0x1800646f8]
call fcn.18003cca0
test eax, eax
je 0x180039443
lea rdx, [0x180064710]
mov rcx, rbx
call fcn.18003cca0
test eax, eax
jne 0x180039439
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180039460
mov eax, dword [rsp + 0x30]
jmp 0x180039472
mov rcx, rbx
call fcn.18002b5f8
jmp 0x180039472
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x180039464
xor eax, eax
jmp 0x180039472
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180039472
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180039484
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.18002bdd0
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180039527
cmp edi, dword [rsp + 0x30]
je 0x180039520
test ebp, ebp
je 0x180039520
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1800394fc
sub dx, 0x61
cmp dx, 0x19
ja 0x180039508
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1800394e9
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18003950c
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180039529
mov eax, 1
jmp 0x180039529
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18003d798
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.180033068
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180033068
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003d8e5
cmp rax, 0xffffffffffffffff
je 0x18003d8e5
xor edi, edi
test rbp, rbp
jle 0x18003d893
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002dab0
mov rbx, rax
test rax, rax
jne 0x18003d820
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003d889
mov edx, 0x8000
mov ecx, r14d
call fcn.18003d61c
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.18002e62c
cmp eax, 0xffffffff
je 0x18003d869
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003d830
mov edx, r15d
mov ecx, r14d
call fcn.18003d61c
jmp 0x18003d889
cmp byte [rsi + 0x38], dil
je 0x18003d880
cmp dword [rsi + 0x34], 5
jne 0x18003d880
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003d889
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002e960
jmp 0x18003d8f7
jns 0x18003d8f7
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180033068
cmp rax, 0xffffffffffffffff
jne 0x18003d8b1
cmp byte [rsi + 0x30], dil
je 0x18003d8f7
jmp 0x18003d8ed
mov ecx, r14d
call fcn.180036d7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003d8f7
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 0x18003d8f7
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003d8f2
mov edi, dword [rsi + 0x2c]
jmp 0x18003d8f7
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180033068
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 0x18003e180
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18003e1a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18003e1a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140c2c8f0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c2ca77
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c2c921
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c2c907
add dl, dl
jne 0x140c2c92e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c2c98e
xor eax, eax
add dl, dl
jne 0x140c2c93d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c2ca45
add dl, dl
jne 0x140c2c94e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c2c95b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c2c968
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c2c975
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c2c982
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c2c916
mov eax, 1
add dl, dl
jne 0x140c2c99e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c2c9ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c2c993
sub eax, ebx
mov ebx, 1
jne 0x140c2c9e4
mov ecx, 1
add dl, dl
jne 0x140c2c9c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c2c9d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c2c9bb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c2c916
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c2ca00
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c2ca0d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c2c9f5
cmp eax, 0x7d00
jae 0x140c2ca33
cmp eax, 0x500
jb 0x140c2ca2e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c2c916
cmp eax, 0x7f
ja 0x140c2ca36
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c2c916
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c2ca6a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c2c916
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0xdca0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00dca237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xdca0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xdca0c7
add dl, dl
jne 0xdca0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xdca14e
xor eax, eax
add dl, dl
jne 0xdca0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xdca205
add dl, dl
jne 0xdca10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdca11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdca128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdca135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xdca142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xdca0d6
mov eax, 1
add dl, dl
jne 0xdca15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdca16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xdca153
sub eax, ebx
mov ebx, 1
jne 0xdca1a4
mov ecx, 1
add dl, dl
jne 0xdca186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdca193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xdca17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xdca0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xdca1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdca1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xdca1b5
cmp eax, 0x7d00
jae 0xdca1f3
cmp eax, 0x500
jb 0xdca1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xdca0d6
cmp eax, 0x7f
ja 0xdca1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xdca0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xdca22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xdca0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
xor r12d, r12d
lea rdx, [0x140026834]
mov ebp, r12d
mov rbx, rcx
mov r13d, 0xffffffff
call fcn.1400045e0
mov r15, rax
test rax, rax
jne 0x1400010a2
lea rdx, [r14 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002720
jmp 0x1400011e6
mov edx, dword [r14 + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.14000ed98
test eax, eax
jns 0x1400010df
call fcn.140011948
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002920
jmp 0x1400011c6
mov ecx, dword [r14 + 0xc]
call fcn.140011984
mov rbp, rax
test rax, rax
jne 0x14000111b
mov ebx, dword [r14 + 0xc]
call fcn.140011948
lea r9, [r14 + 0x12]
mov dword [rsp + 0x20], ebx
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002920
jmp 0x1400011c6
cmp byte [r14 + 0x10], 1
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
jne 0x140001143
mov r9, rbp
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call fcn.140001210
test eax, eax
je 0x1400011bc
jmp 0x1400011b1
mov ebx, dword [r14 + 0xc]
mov rsi, rbp
test rbx, rbx
je 0x1400011bc
mov eax, 0x2000
nop dword [rax]
nop dword [rax + rax]
cmp rbx, rax
mov rdi, rbx
mov r9, r15
mov r8d, 1
cmova rdi, rax
mov rcx, rsi
mov rdx, rdi
call fcn.14000eac8
cmp rax, 1
jb 0x140001193
add rsi, rdi
mov eax, 0x2000
sub rbx, rdi
jne 0x140001160
jmp 0x1400011bc
call fcn.140011948
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002920
mov rcx, rbp
call fcn.140011970
mov rbp, r12
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, r15
call fcn.14000e77c
mov r12, rbp
test rbp, rbp
je 0x1400011e6
mov rdx, qword [rsp + 0x70]
mov rcx, rbp
call fcn.140004710
mov r13d, eax
mov rcx, r12
call fcn.140011970
mov rbx, qword [rsp + 0x78]
mov eax, r13d
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140001210
Capabilities:
Read file on windows
Write 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.3.1
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.14000bed0
mov r15d, eax
test eax, eax
je 0x140001293
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002720
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.140011984
mov r13, rax
test rax, rax
jne 0x1400012d0
call fcn.140011948
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002920
jmp 0x14000143a
mov ecx, 0x2000
call fcn.140011984
mov rbp, rax
test rax, rax
jne 0x140001305
call fcn.140011948
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002920
jmp 0x14000143a
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000eac8
cmp rax, rbx
jne 0x14000142c
mov rcx, rdi
call fcn.14000e80c
test eax, eax
jne 0x14000142c
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop dword [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.14000a4c0
mov edi, eax
mov r15d, 0xffffffff
cmp eax, 0xfffffffc
jl 0x140001391
cmp eax, 0xfffffffe
jle 0x140001405
cmp eax, 2
je 0x1400013fe
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x1400013c6
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000eff0
cmp rax, rbx
jne 0x1400013c1
mov rcx, r14
call fcn.14000e80c
test eax, eax
je 0x1400013dc
mov edi, r15d
jmp 0x14000140a
test rsi, rsi
je 0x1400013dc
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000d4b0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x140001360
cmp edi, 1
je 0x140001427
test r12, r12
je 0x140001405
mov rdi, qword [rsp + 0xc0]
jmp 0x140001311
mov edi, 0xfffffffd
jmp 0x14000140a
cmp edi, 1
je 0x140001427
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.140002720
jmp 0x140001432
xor r15d, r15d
jmp 0x140001432
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000bcb0
mov rcx, r13
call fcn.140011970
mov rcx, rbp
call fcn.140011970
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 0x140001470
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov rbx, rcx
lea rdx, [0x140026834]
xor r14d, r14d
call fcn.1400045e0
mov r15, rax
test rax, rax
jne 0x1400014bc
lea rdx, [rbp + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002720
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov edx, dword [rbp + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.14000ed98
test eax, eax
jns 0x1400014f8
call fcn.140011948
lea r9, [rbp + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002920
jmp 0x1400015d6
mov ecx, dword [rbp + 0xc]
call fcn.140011984
mov r14, rax
test rax, rax
jne 0x140001532
mov ebx, dword [rbp + 0xc]
call fcn.140011948
lea r9, [rbp + 0x12]
mov dword [rsp + 0x20], ebx
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002920
jmp 0x1400015d6
cmp byte [rbp + 0x10], 1
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r12
jne 0x14000155e
mov r9, r14
xor r8d, r8d
mov rdx, rbp
mov rcx, r15
call fcn.140001210
test eax, eax
je 0x1400015c7
jmp 0x1400015bc
mov ebx, dword [rbp + 0xc]
mov rsi, r14
test rbx, rbx
je 0x1400015c7
mov r12d, 0x2000
nop
cmp rbx, r12
mov rdi, rbx
mov r9, r15
mov r8d, 1
cmova rdi, r12
mov rcx, rsi
mov rdx, rdi
call fcn.14000eac8
cmp rax, 1
jb 0x14000159e
add rsi, rdi
sub rbx, rdi
jne 0x140001570
jmp 0x1400015c7
call fcn.140011948
lea r9, [rbp + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002920
mov rcx, r14
call fcn.140011970
xor r14d, r14d
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
mov rcx, r15
call fcn.14000e77c
mov rbx, qword [rsp + 0x68]
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400015f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp byte [rdx + 0x11], 0x6e
mov rdi, rdx
mov rbx, rcx
jne 0x140001627
call fcn.140001050
mov ebx, eax
test eax, eax
jns 0x14000161e
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002720
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x14002692c]
mov qword [rsp + 0x60], r12
mov rcx, r8
call fcn.1400045e0
mov r12, rax
test rax, rax
jne 0x140001672
call fcn.140011948
lea r9, [rdi + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
mov edx, dword [rax]
call fcn.140002920
lea eax, [r12 - 1]
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x140026834]
mov qword [rsp + 0x20], r15
mov rcx, rbx
call fcn.1400045e0
mov r15, rax
test rax, rax
jne 0x1400016a7
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002720
lea ebx, [r15 - 1]
jmp 0x140001811
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.14000ed98
test eax, eax
jns 0x1400016e8
call fcn.140011948
lea r9, [rdi + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002920
mov ebx, 0xffffffff
jmp 0x140001809
cmp byte [rdi + 0x10], 1
jne 0x140001706
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.140001210
mov ebx, eax
jmp 0x140001809
mov qword [rsp + 0x30], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x28], r14
mov ecx, r13d
call fcn.140011984
mov r14, rax
test rax, rax
jne 0x14000174f
call fcn.140011948
lea r9, [rdi + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002920
lea ebx, [r14 - 1]
jmp 0x1400017ff
mov qword [rsp + 0x58], rsi
mov esi, dword [rdi + 0xc]
test rsi, rsi
je 0x1400017f2
mov qword [rsp + 0x50], rbp
nop word [rax + rax]
cmp rsi, r13
mov rbp, rsi
mov r9, r15
mov r8d, 1
cmova rbp, r13
mov rcx, r14
mov rdx, rbp
call fcn.14000eac8
cmp rax, 1
jb 0x1400017ca
mov r9, r12
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.14000eff0
cmp rax, 1
jb 0x1400017b5
sub rsi, rbp
jne 0x140001770
jmp 0x1400017ed
call fcn.140011948
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400017dd
call fcn.140011948
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
lea r9, [rdi + 0x12]
call fcn.140002920
mov ebx, 0xffffffff
mov rbp, qword [rsp + 0x50]
mov rcx, r14
call fcn.140011970
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r15
call fcn.14000e77c
mov rcx, r12
call fcn.14000e77c
mov r15, qword [rsp + 0x20]
mov eax, ebx
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret