joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140091540
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.14009af40
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x1400ff010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
xor eax, eax
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x140091784
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rsi, [0x1400b1068]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140005580
lea rdi, [rbx - 1]
test al, al
jne 0x1400915fb
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400915e0
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140003840
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekAudioWOV
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14001da70
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x14009167c
mov dword [rsp + 0x38], 0xfffe
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14009167c
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x14009167c
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400916eb
test al, 1
jne 0x14009167c
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1400916f0
test rsi, rsi
je 0x14009168f
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400916b1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400916c1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140091f30
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140091700
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003840
mov rdx, qword [rsp + 0x40]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140091752
add rcx, 2
cmp rcx, 0x15
je 0x140091780
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140091730
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14009167c
test rsi, rsi
je 0x140091772
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x140091693
mov eax, ebx
jmp 0x140091757
mov ecx, 0x80004005
call fcn.140003b40
int3
Function at 0x140091790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.14009af40
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x1400ff010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
xor eax, eax
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x1400919d4
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rsi, [0x1400b1068]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140005580
lea rdi, [rbx - 1]
test al, al
jne 0x14009184b
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x140091830
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140003840
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekWOV
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14001da70
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x1400918cc
mov dword [rsp + 0x38], 0xfffe
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400918cc
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x1400918cc
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14009193b
test al, 1
jne 0x1400918cc
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x140091940
test rsi, rsi
je 0x1400918df
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140091901
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140091911
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140091f30
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140091950
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003840
mov rdx, qword [rsp + 0x40]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x1400919a2
add rcx, 2
cmp rcx, 0x15
je 0x1400919d0
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140091980
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400918cc
test rsi, rsi
je 0x1400919c2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x1400918e3
mov eax, ebx
jmp 0x1400919a7
mov ecx, 0x80004005
call fcn.140003b40
int3
Function at 0x1800869ec
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 0x180086a1c
xor eax, eax
jmp 0x180086adf
mov rbp, rbx
cmp word [rax], si
je 0x180086a41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180086a28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180086a24
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.18008690c
movsxd r14, eax
test eax, eax
jne 0x180086a7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180086a15
mov rcx, r14
call fcn.180081038
mov rdi, rax
test rax, rax
jne 0x180086a98
xor ecx, ecx
call fcn.180080ffc
jmp 0x180086a74
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.18008690c
test eax, eax
jne 0x180086ac9
mov rcx, rdi
call fcn.180080ffc
jmp 0x180086ad3
xor ecx, ecx
call fcn.180080ffc
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 0x180088e60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18006e010
sub rsp, rax
mov rax, qword [0x1800a8380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180084e48
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180088eaf
mov rax, rbp
jmp 0x180088fb7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xaa480]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180089f80
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xaa480]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180088fb3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180088fb3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180089f80
test rax, rax
js 0x180088fb3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180088fb3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180088fa5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180088fa5
cmp byte [rcx], 0xd
jne 0x180088f8b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180088f9a
cmp byte [rcx + 1], 0xa
jne 0x180088f9a
inc rcx
jmp 0x180088f9a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa8ce0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180088f6d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180088fb7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006e070
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800891d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800891ee
mov al, 1
jmp 0x18008924e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800891ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008924c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18008fd98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008924c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008924c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008924c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008924e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180089320
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
lea r9, [0x1800aa480]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180089377
cmp word [rdx], r13w
jne 0x180089377
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008937c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800894a1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800894c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800893b5
mov rdx, r9
mov word [rbx], cx
jmp 0x1800893dc
cmp r9, r8
jae 0x1800893ec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180089396
jmp 0x1800894a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180089496
cmp dword [rsp + 0x80], esi
je 0x180089496
lea r8, [0x1800aa480]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008946e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008943e
mov word [rbx], r13w
jmp 0x18008949e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18008944b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008949e
cmp word [rsp + 0x70], r13w
jne 0x18008947b
cmp rbx, r14
je 0x180089438
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180089f88
cmp word [rsp + 0x70], r13w
je 0x1800894a1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1800aa480]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008949b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800894a1
Function at 0x18008df78
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800814dc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18008e019
cmp ebx, dword [rsp + 0x30]
je 0x18008e012
test esi, esi
je 0x18008e012
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18008dfed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18008dffa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008dfd7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18008dffe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008e01b
mov eax, 1
jmp 0x18008e01b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
add rcx, 0x70
lea rdx, [0x140030510]
call fcn.140004170
test rax, rax
je 0x1400010c8
mov rsi, rax
mov edx, dword [rdi + 4]
add rdx, qword [rbx]
mov rcx, rax
xor r8d, r8d
call fcn.140012950
test eax, eax
js 0x1400010e2
mov r14d, dword [rdi + 0xc]
mov rcx, r14
call fcn.1400129e8
test rax, rax
je 0x140001101
mov rbx, rax
cmp byte [rdi + 0x10], 1
jne 0x140001120
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400011b0
test eax, eax
jne 0x14000117e
jmp 0x140001188
add rdi, 0x12
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, rdi
call fcn.140002630
xor ebx, ebx
jmp 0x140001190
add rdi, 0x12
lea rcx, str.fseek
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov r8, rdi
call fcn.140002960
jmp 0x140001186
add rdi, 0x12
lea rcx, str.malloc
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
mov r8, rdi
mov r9d, r14d
call fcn.140002960
jmp 0x140001186
test r14, r14
je 0x140001188
mov r15, rbx
nop dword [rax + rax]
cmp r14, 0x2000
mov r12d, 0x2000
cmovb r12, r14
mov r8d, 1
mov rcx, r15
mov rdx, r12
mov r9, rsi
call fcn.140012c50
test rax, rax
je 0x140001164
add r15, r12
sub r14, r12
jne 0x140001130
jmp 0x140001188
add rdi, 0x12
lea rcx, str.fread
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov r8, rdi
call fcn.140002960
mov rcx, rbx
call fcn.140012d18
xor ebx, ebx
mov rcx, rsi
call fcn.140012ee8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400011b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r12, r9
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
lea rdx, str.1.3.1
lea rcx, [rsp + 0x40]
mov r8d, 0x58
call fcn.14000abc0
test eax, eax
je 0x14000122f
add rdi, 0x12
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
mov rdx, rdi
mov r8d, eax
call fcn.140002630
mov ebp, 0xffffffff
jmp 0x140001414
mov ecx, 0x2000
call fcn.1400129e8
mov rsi, rax
test rax, rax
je 0x14000139e
mov ecx, 0x2000
call fcn.1400129e8
test rax, rax
je 0x1400013b2
mov rbx, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x28], rsi
mov eax, dword [rdi + 8]
mov ebp, 0xffffffff
cmp rax, 0x2000
mov esi, 0x2000
mov qword [rsp + 0x30], rax
cmovb rsi, rax
mov edx, 1
mov rcx, qword [rsp + 0x28]
mov r8, rsi
mov r15, qword [rsp + 0x38]
mov r9, r15
call fcn.140012c50
cmp rax, rsi
jne 0x1400013f5
mov rcx, r15
call fcn.140012fac
test eax, eax
jne 0x1400013f5
sub qword [rsp + 0x30], rsi
mov dword [rsp + 0x48], esi
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov dword [rsp + 0x58], 0x2000
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14000ad30
mov esi, eax
lea eax, [rsi + 4]
cmp eax, 7
jae 0x140001301
mov ecx, 0x47
bt ecx, eax
jb 0x1400013d2
mov eax, dword [rsp + 0x58]
mov r13d, 0x2000
sub r13, rax
test r14, r14
je 0x140001350
mov edx, 1
mov rcx, rbx
mov r8, r13
mov r9, r14
call fcn.140013348
mov r15d, 0xffffffff
cmp rax, r13
jne 0x1400013df
mov rcx, r14
call fcn.140012fac
test eax, eax
je 0x140001366
jmp 0x1400013df
test r12, r12
je 0x140001374
mov rcx, r12
mov rdx, rbx
mov r8, r13
call fcn.14002e5a0
add r12, r13
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1400012d0
jmp 0x14000137f
xor r12d, r12d
test eax, eax
je 0x1400012d0
cmp esi, 1
mov rax, qword [rsp + 0x30]
je 0x140001392
test rax, rax
jne 0x14000126d
mov r15d, esi
cmp esi, 1
jne 0x1400013df
xor ebp, ebp
jmp 0x1400013f5
add rdi, 0x12
lea rcx, str.malloc
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
jmp 0x1400013c4
add rdi, 0x12
lea rcx, str.malloc
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
mov r8, rdi
call fcn.140002960
xor ebx, ebx
xor ebp, ebp
jmp 0x1400013fa
cdqe
lea rcx, [0x14003094c]
mov r15d, dword [rcx + rax*4]
add rdi, 0x12
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
mov rdx, rdi
mov r8d, r15d
call fcn.140002630
mov rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14000d170
mov rcx, rsi
call fcn.140012d18
mov rcx, rbx
call fcn.140012d18
mov eax, ebp
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001430
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1030
call fcn.14000e200
sub rsp, rax
cmp dword [rcx + 0x5074], 1
jne 0x1400014e7
mov rbx, rdx
mov r15, rcx
cmp byte [rdx + 0x11], 0x6e
jne 0x1400014fd
mov rcx, r15
mov rdx, rbx
call fcn.140001050
mov rsi, rax
test rax, rax
je 0x1400014c2
lea rdi, [rbx + 0x12]
add r15, 0x3070
mov rcx, r15
mov rdx, rdi
call fcn.140007a50
test eax, eax
js 0x1400014c2
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x5c
lea r8, str._s_c_s
lea rcx, [rsp + 0x30]
mov edx, 0x1000
mov r9, r15
call fcn.140001cc0
cmp eax, 0x1000
jl 0x1400015a0
mov rcx, rsi
call fcn.140012d18
mov ebp, 0xffffffff
add rbx, 0x12
lea rcx, str.Failed_to_create_symbolic_link__s__n
mov rdx, rbx
call fcn.140002630
jmp 0x1400016a6
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002630
mov ebp, 0xffffffff
jmp 0x1400016a6
lea r14, [rbx + 0x12]
lea rcx, [r15 + 0x3070]
mov rdx, r14
call fcn.140007b90
test rax, rax
je 0x140001567
mov rsi, rax
lea rcx, [r15 + 0x70]
lea rdx, [0x140030510]
call fcn.140004170
test rax, rax
je 0x140001587
mov rdi, rax
mov edx, dword [rbx + 4]
add rdx, qword [r15]
mov rcx, rax
xor r8d, r8d
call fcn.140012950
test eax, eax
js 0x1400015c4
cmp byte [rbx + 0x10], 1
jne 0x1400015d4
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
xor r9d, r9d
call fcn.1400011b0
mov ebp, eax
jmp 0x140001696
lea rcx, str.fopen
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov r8, r14
call fcn.140002960
mov ebp, 0xffffffff
jmp 0x1400016a6
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, r14
call fcn.140002630
mov ebp, 0xffffffff
jmp 0x14000169e
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140004250
mov ebp, eax
mov rcx, rsi
call fcn.140012d18
test ebp, ebp
jns 0x1400016a6
jmp 0x1400014cf
lea rcx, str.fseek
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
jmp 0x140001648
mov ecx, 0x2000
call fcn.1400129e8
test rax, rax
je 0x14000163a
mov r15, rax
mov r12d, dword [rbx + 0xc]
test r12, r12
je 0x140001657
cmp r12, 0x2000
mov ebx, 0x2000
cmovb rbx, r12
mov r8d, 1
mov rcx, r15
mov rdx, rbx
mov r9, rdi
call fcn.140012c50
test rax, rax
je 0x140001663
mov r8d, 1
mov rcx, r15
mov rdx, rbx
mov r9, rsi
call fcn.140013348
test rax, rax
je 0x140001673
sub r12, rbx
jne 0x1400015ef
xor ebp, ebp
jmp 0x14000168e
lea rcx, str.malloc
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov r8, r14
call fcn.140002960
mov ebp, 0xffffffff
jmp 0x140001696
mov rcx, r15
call fcn.140012d18
xor ebp, ebp
jmp 0x140001696
lea rcx, str.fread
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
jmp 0x140001681
lea rcx, str.fwrite
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov r8, r14
call fcn.140002960
mov ebp, 0xffffffff
mov rcx, r15
call fcn.140012d18
mov rcx, rdi
call fcn.140012ee8
mov rcx, rsi
call fcn.140012ee8
mov eax, ebp
add rsp, 0x1030
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400016c0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, rcx
add rcx, 0x70
lea rdx, [0x140030510]
call fcn.140004170
test rax, rax
je 0x140001804
mov rsi, rax
mov rax, qword [0x140032741]
mov qword [rsp + 0x20], rax
shr rax, 0x18
add al, 0xc
mov byte [rsp + 0x23], al
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rsi
call fcn.140008190
mov edi, 0xffffffff
test rax, rax
je 0x1400018ac
mov r14, rax
mov rcx, rsi
mov rdx, rax
xor r8d, r8d
call fcn.140012950
test eax, eax
js 0x14000180e
lea rcx, [rbx + 0x18]
mov edx, 0x58
mov r8d, 1
mov r9, rsi
call fcn.140012c50
test rax, rax
je 0x140001826
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x24]
bswap eax
mov dword [rbx + 0x20], eax
bswap ecx
mov dword [rbx + 0x24], ecx
mov edx, dword [rbx + 0x28]
bswap edx
mov dword [rbx + 0x28], edx
mov edx, dword [rbx + 0x2c]
bswap edx
mov dword [rbx + 0x2c], edx
sub r14, rax
lea rax, [r14 + 0x58]
mov qword [rbx], rax
mov dword [rbx + 0x5078], 0
mov dword [0x140043d08], edx
lea rdx, [r14 + rcx]
add rdx, 0x58
mov rcx, rsi
xor r8d, r8d
call fcn.140012950
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call fcn.1400129e8
mov qword [rbx + 8], rax
test rax, rax
je 0x14000183b
mov r8d, 1
mov rcx, rax
mov rdx, r14
mov r9, rsi
call fcn.140012c50
test rax, rax
je 0x140001850
mov r14, qword [rbx + 8]
movsxd r12, dword [rbx + 0x28]
lea r15, [r14 + r12]
mov qword [rbx + 0x10], r15
mov rcx, rsi
call fcn.140012fac
test eax, eax
je 0x140001865
lea rcx, str.Error_on_file._n
call fcn.140002630
jmp 0x1400018ac
mov edi, 0xffffffff
jmp 0x1400018b4
lea rcx, str.fseek
lea rdx, str.Failed_to_seek_to_cookie_position__n
call fcn.140002960
jmp 0x1400018ac
lea rcx, str.fread
lea rdx, str.Failed_to_read_cookie__n
call fcn.140002960
jmp 0x1400018ac
lea rcx, str.malloc
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
call fcn.140002960
jmp 0x1400018ac
lea rcx, str.fread
lea rdx, str.Could_not_read_full_TOC__n
call fcn.140002960
jmp 0x1400018ac
xor edi, edi
test r12d, r12d
jle 0x1400018ac
pxor xmm0, xmm0
movdqu xmm1, xmmword [r14]
movdqa xmm2, xmm1
punpckhbw xmm2, xmm0
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpcklbw xmm1, xmm0
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm1, xmm2
movdqu xmmword [r14], xmm1
movd eax, xmm1
cdqe
add r14, rax
cmp r14, r15
jb 0x140001870
mov rcx, rsi
call fcn.140012ee8
mov eax, edi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret