joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400250fc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140025174
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140025174
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140025174
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140025168
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140025186
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140025156
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140025176

Function at 0x140026a00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026a4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026a4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026a4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026a4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140026a4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140026a4c
xor al, al
add rsp, 0x28
ret

Function at 0x14002f4a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002f208

Function at 0x1400393f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140039418
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140039418
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100004d68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100004db5
cmp rcx, 0xffffffffffffffff
je 0x100004db5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100004dad
cmp dword [rcx + 0x3c], edx
jl 0x100004dad
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100004dad
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 0x100004db5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400205f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x140020610
mov dword [rcx], 0x270
mov rax, rcx
ret

Function at 0x140024f00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140024f61
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140024f20
mov ecx, dword [r10]
jmp 0x14002504a
cmp ecx, 0x4e0
jb 0x14002504a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140024f80
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140024fd0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400289e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140028aac
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140028aac
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140028ac5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140028a9c
cmp byte [rax], 0x5c
jne 0x140028a96
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140028a96
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140028a82
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140028a93
test r8b, 0x10
jne 0x140028a96
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140028a96
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400250a0
test edi, edi
jne 0x140028a00
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140025090
int3

Function at 0x14002d970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400300b8]
test rax, rax
je 0x14002d9ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002d9ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002d9ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d9ba
cmp dword [rcx + 0x84], 0xe
jbe 0x14002d9ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002d9bc
xor al, al
add rsp, 0x28
ret
Function at 0x1400129b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140039980
sub rsp, rax
mov rax, qword [0x14004f008]
xor rax, rsp
mov qword [rsp + 0x10080], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x80], bp
lea rbx, [rsp + 0x30]
mov word [rsp + 0x30], bp
mov al, 0x4e
lea edi, [rbp + 0x28]
nop
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002dda0
cmp rax, 1
jne 0x140012abe
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140012a3f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140012a33
cmp rcx, 1
jb 0x140012abe
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140012a00
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140012aba
lea rcx, [rsp + 0x80]
call fcn.14002f250
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140021360
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x140012a91
call fcn.1400235a8
int3

Function at 0x140012ad0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14004f008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov al, 0x4e
lea edi, [rbp + 0x28]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002dda0
cmp rax, 1
jne 0x140012ba5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140012b4c
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140012b40
cmp rcx, 1
jb 0x140012ba5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140012b11
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140021360
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400235a8
int3
Function at 0x14001c970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x1400541fa], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14001c9fc
mov edx, 3
xor ecx, ecx
lea r8d, [rdx + 7]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140053f78], rax
mov ebx, dword [rax]
add rax, 4
mov qword [0x140053f78], rax
mov r8d, dword [rax]
lea rdi, [rax + 4]
mov rdx, rdi
mov qword [0x140053f78], rdi
call fcn.14001ac50
cmp eax, ebx
jne 0x14001cba3
mov byte [0x1400541fa], 1
jmp 0x14001ca03
mov rdi, qword [0x140053f78]
lea rdx, [0x140043448]
mov rcx, rbp
call fcn.140039b40
test eax, eax
je 0x14001cabd
cmp byte [0x1400541fb], 1
je 0x14001cabd
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140054528], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400549d0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140054258], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400541d0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140054a18], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400542e0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400549d8], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x1400549e8], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x140053f78]
mov byte [0x1400541fb], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xda0
mov qword [0x140054a60], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14001cae7
inc rax
test cl, cl
jne 0x14001cad0
mov ecx, r9d
jmp 0x14001caec
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14001caf3
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14001cb58
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14001cb35
inc rax
test cl, cl
jne 0x14001cb20
mov ecx, r9d
jmp 0x14001cb3a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14001cb41
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14001cb10
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14001cb88
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.14001b880
add rsi, 8
sub rbx, 1
jne 0x14001cb70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14002b4d4
call fcn.1400235a8
int3
Function at 0x140021d48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021d92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021d92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021d92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021d92
cmp dword [rcx + 0x84], 0xe
jbe 0x140021d92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021d94
xor al, al
add rsp, 0x28
ret

Function at 0x1400238dc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002376f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002376f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002376f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002376f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002376f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002376f
cmp dword [rcx + 0xf8], 0
je 0x14002376f
mov ecx, ebx
call fcn.140023810
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140023600
cmp dword [rbp + 0x20], 0
je 0x1400237bc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400237c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140023708
Function at 0x1400398c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400398e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400398e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov rsi, rdx
xor ebp, ebp
lea rdx, [0x14002b874]
mov r15d, ebp
mov rdi, r8
mov rbx, rcx
mov r13d, 0xffffffff
call fcn.140004480
mov r12, rax
test rax, rax
jne 0x1400010a8
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002690
jmp 0x1400011aa
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r12
call fcn.14000ffd4
test eax, eax
jns 0x1400010dd
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.140002800
jmp 0x14000118c
mov ecx, dword [rsi + 0xc]
call fcn.140014750
mov r15, rax
test rax, rax
jne 0x14000110d
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.140002800
jmp 0x14000118c
cmp byte [rsi + 0x10], 1
jne 0x140001126
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.1400011f0
jmp 0x14000117d
mov ebx, dword [rsi + 0xc]
mov qword [rsp + 0x50], r14
mov r14, r15
test rbx, rbx
je 0x140001171
mov eax, 0x2000
nop dword [rax + rax]
cmp rbx, rax
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, rax
mov rcx, r14
mov rdx, rdi
call fcn.14000fc9c
cmp rax, 1
jb 0x1400011cc
add r14, rdi
mov eax, 0x2000
sub rbx, rdi
jne 0x140001140
mov eax, ebp
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x50]
test eax, eax
je 0x14000118c
mov rcx, r15
call fcn.14001473c
mov r15, rbp
mov rcx, r12
call fcn.14000f94c
mov rbp, r15
test r15, r15
je 0x1400011aa
mov rdx, rdi
mov rcx, r15
call fcn.1400045b0
mov r13d, eax
mov rcx, rbp
call fcn.14001473c
mov rbx, qword [rsp + 0x58]
mov eax, r13d
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
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.140002800
mov eax, r13d
jmp 0x140001173
Function at 0x1400011f0
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.3.1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov ebp, eax
mov rsi, r9
call fcn.14000b690
mov r15d, eax
test eax, eax
je 0x140001277
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002690
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.140014750
mov r13, rax
test rax, rax
jne 0x1400012ad
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140002800
jmp 0x140001409
mov ecx, 0x2000
call fcn.140014750
mov rbp, rax
test rax, rax
jne 0x1400012db
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140002800
jmp 0x140001409
mov qword [rsp + 0xd0], r12
mov r15d, 0xffffffff
mov r12d, dword [rbx + 8]
nop dword [rax]
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.14000fc9c
cmp rax, rbx
jne 0x140001401
mov rcx, rdi
call fcn.14000fa10
test eax, eax
jne 0x140001401
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.140009ad0
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x1400013e6
cmp eax, 2
je 0x1400013e1
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x1400013a4
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.1400103dc
cmp rax, rbx
jne 0x14000139f
mov rcx, r14
call fcn.14000fa10
test eax, eax
je 0x1400013ba
mov edi, r15d
jmp 0x1400013e6
test rsi, rsi
je 0x1400013ba
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140029720
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x140001340
cmp edi, 1
je 0x1400013dc
test r12, r12
je 0x1400013e6
mov rdi, qword [rsp + 0xc0]
jmp 0x1400012f0
xor r15d, r15d
jmp 0x140001401
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.140002690
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000b370
mov rcx, r13
call fcn.14001473c
mov rcx, rbp
call fcn.14001473c
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 0x140001440
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [0x14002b874]
xor r14d, r14d
call fcn.140004480
mov r15, rax
test rax, rax
jne 0x14000148c
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002690
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.14000ffd4
test eax, eax
jns 0x1400014c1
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.140002800
jmp 0x14000157c
mov ecx, dword [rsi + 0xc]
call fcn.140014750
mov r14, rax
test rax, rax
jne 0x1400014f1
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.140002800
jmp 0x14000157c
cmp byte [rsi + 0x10], 1
jne 0x14000150a
mov r9, r14
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call fcn.1400011f0
jmp 0x14000156d
mov ebx, dword [rsi + 0xc]
mov qword [rsp + 0x40], rbp
mov rbp, r14
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
test rbx, rbx
je 0x14000155c
mov r12d, 0x2000
nop word [rax + rax]
cmp rbx, r12
mov rdi, rbx
mov r9, r15
mov r8d, 1
cmova rdi, r12
mov rcx, rbp
mov rdx, rdi
call fcn.14000fc9c
cmp rax, 1
jb 0x140001596
add rbp, rdi
sub rbx, rdi
jne 0x140001530
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
test eax, eax
je 0x14000157c
mov rcx, r14
call fcn.14001473c
xor r14d, r14d
mov rcx, r15
call fcn.14000f94c
mov rbx, qword [rsp + 0x58]
mov rax, r14
add rsp, 0x20
pop r15
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.140002800
mov eax, 0xffffffff
jmp 0x14000155e
Function at 0x1400015c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp byte [rdx + 0x11], 0x6e
mov rdi, rdx
mov rbx, rcx
jne 0x1400015f7
call fcn.140001050
mov ebx, eax
test eax, eax
jns 0x1400015ee
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002690
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x14002b96c]
mov qword [rsp + 0x60], r12
mov rcx, r8
call fcn.140004480
mov r12, rax
test rax, rax
jne 0x14000163b
lea r8, [rdi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002800
mov r12, qword [rsp + 0x60]
mov eax, 0xffffffff
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, [0x14002b874]
mov qword [rsp + 0x20], r15
mov rcx, rbx
call fcn.140004480
mov r15, rax
test rax, rax
jne 0x140001671
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002690
mov ebx, 0xffffffff
jmp 0x1400017c5
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r15
call fcn.14000ffd4
test eax, eax
jns 0x1400016ab
lea r8, [rdi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002800
mov ebx, 0xffffffff
jmp 0x1400017bd
cmp byte [rdi + 0x10], 1
jne 0x1400016c9
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.1400011f0
mov ebx, eax
jmp 0x1400017bd
mov qword [rsp + 0x30], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x28], r14
mov ecx, r13d
call fcn.140014750
mov r14, rax
test rax, rax
jne 0x14000170c
lea r8, [rdi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002800
mov ebx, 0xffffffff
jmp 0x1400017b3
mov qword [rsp + 0x58], rsi
mov esi, dword [rdi + 0xc]
test rsi, rsi
je 0x1400017a6
mov qword [rsp + 0x50], rbp
nop dword [rax]
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.14000fc9c
cmp rax, 1
jb 0x140001785
mov r9, r12
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1400103dc
cmp rax, 1
jb 0x140001775
sub rsi, rbp
jne 0x140001730
jmp 0x1400017a1
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x140001793
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
lea r8, [rdi + 0x12]
call fcn.140002800
mov ebx, 0xffffffff
mov rbp, qword [rsp + 0x50]
mov rcx, r14
call fcn.14001473c
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r15
call fcn.14000f94c
mov rcx, r12
call fcn.14000f94c
mov r15, qword [rsp + 0x20]
mov eax, ebx
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret