joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f504
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov rdi, r8
mov rsi, rdx
mov r8d, ebx
mov rdx, rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor edx, edx
mov r9d, eax
test eax, eax
jne 0x14000f57e
call fcn.140012358
mov ebx, eax
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000f57a
test byte [rcx + 0x1c], 1
je 0x14000f57a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400161a0]
mov edx, 0x3a
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.1400076e8
mov eax, ebx
jmp 0x14000f5a0
cmp r9d, ebx
ja 0x14000f594
lea eax, [r9 - 1]
cmp word [rdi + rax*2], dx
je 0x14000f59b
mov eax, 0x8000ffff
jmp 0x14000f5a0
test ebx, ebx
je 0x14000f59b
mov word [rdi], dx
mov qword [rsi], r9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f5bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000f62b
call fcn.140012358
mov ebx, eax
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
jbe 0x14000f627
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14000f627
test byte [rcx + 0x1c], 1
je 0x14000f627
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400161a0]
mov edx, 0x3f
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.1400076e8
mov eax, ebx
jmp 0x14000f62f
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f71c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14000f747
xor eax, eax
jmp 0x14000f7e8
call fcn.140012358
mov ebx, eax
cmp eax, 0x800700b7
je 0x14000f78e
mov rcx, qword [0x14001b028]
lea rdx, [0x14001b028]
cmp rcx, rdx
je 0x14000f78a
test byte [rcx + 0x1c], 1
je 0x14000f78a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400161a0]
mov edx, 0x2f
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400076e8
mov eax, ebx
jmp 0x14000f7e8
and dword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.14000f5bc
test eax, eax
js 0x14000f7e8
test byte [rsp + 0x48], 0x10
jne 0x14000f7e3
mov rcx, qword [0x14001b028]
lea rdx, [0x14001b028]
cmp rcx, rdx
je 0x14000f7dc
test byte [rcx + 0x1c], 1
je 0x14000f7dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400161a0]
mov edx, 0x39
mov r9, rdi
call fcn.1400059b0
mov eax, 0x800700b7
jmp 0x14000f7e8
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001071c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, qword [r9]
mov rdi, r9
mov eax, r14d
mov r15, r8
mov dword [rsp + 0x68], eax
mov rbp, rdx
cmp rax, r14
je 0x140010756
mov eax, 0x80070057
jmp 0x140010824
mov rsi, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14001078b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400107c6
test rsi, rsi
je 0x1400107a7
mov eax, dword [rsp + 0x68]
cmp rax, qword [rdi]
jbe 0x1400107a7
mov qword [rdi], rax
mov eax, 0x800700ea
jmp 0x140010824
mov eax, dword [rsp + 0x68]
mov r9, rdi
mov r8d, dword [r15]
mov rdx, r14
mov rcx, rbp
mov qword [rdi], rax
mov qword [rsp + 0x20], rsi
call fcn.140010ec0
jmp 0x140010824
mov eax, 0x80070002
cmp ebx, eax
je 0x140010824
mov eax, 0x800700ea
cmp ebx, eax
je 0x140010811
mov rcx, qword [0x14001b028]
lea rax, [0x14001b028]
cmp rcx, rax
je 0x14001080d
test byte [rcx + 0x1c], 1
je 0x14001080d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400161b0]
mov edx, 0x15
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.1400076e8
mov eax, ebx
jmp 0x140010824
mov ecx, dword [rsp + 0x68]
cmp qword [rdi], rcx
jb 0x140010821
mov eax, 0x8000ffff
jmp 0x140010824
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140012920
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [rdx], 0
lea rbp, [rcx + 0x28]
mov r14, rdx
mov rsi, rcx
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140012974
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001296d
call fcn.140012358
mov edi, eax
cmp eax, 0x80070012
jmp 0x140012a01
xor edi, edi
jmp 0x140012a03
mov r9, qword [rsi + 0x20]
lea rdx, str._ws_ws
mov r8, qword [rsi + 0x18]
lea rcx, [rsp + 0x40]
and qword [rsp + 0x40], 0
call fcn.140010244
mov ebx, eax
test eax, eax
js 0x140012a2b
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400129bd
cmp rcx, 0xffffffffffffffff
je 0x1400129b8
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
and qword [rsi + 0x10], 0
mov rbx, qword [rsp + 0x40]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x1400129e8
call fcn.140012358
mov edi, eax
add eax, 0x7ff8fffe
jmp 0x1400129ee
mov qword [rsi + 0x10], rax
xor edi, edi
test rbx, rbx
je 0x1400129fb
mov rcx, rbx
call fcn.14000165c
cmp edi, 0x80070012
je 0x140012a23
test edi, edi
js 0x140012a1f
test byte [rsi + 0x280], 2
je 0x140012a1a
test byte [rbp], 0x10
jne 0x140012940
mov qword [r14], rbp
jmp 0x140012a27
mov eax, edi
jmp 0x140012a3c
and qword [r14], 0
xor eax, eax
jmp 0x140012a3c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140012a3a
call fcn.14000165c
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x6d7d77b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d7938
mov rax, qword [0x6d7f85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d77fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d7885
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d77e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d796d
mov rax, qword [0x6d7f85e8]
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 [0x6d7f85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d7950
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d787e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d78e0
add dword [0x6d7f85e4], 1
cmp edi, 8
jae 0x6d7d78b3
test dil, 4
jne 0x6d7d7924
test edi, edi
je 0x6d7d78a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d793f
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 0x6d7d78a8
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 0x6d7d78cc
jmp 0x6d7d78a8
add rsi, qword [0x6d7f85e8]
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 0x6d7d787e
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 0x6d7d78a8
xor esi, esi
jmp 0x6d7d7807
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d78a8
mov rax, qword [0x6d7f85e8]
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 0x6d7d80c0
Capabilities:
Get thread local storage value

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

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

Function at 0x6d7d8370
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 0x6d7d83b1
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 0x6d7d83a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d83b3
add rax, 0x28
cmp rax, r9
jne 0x6d7d8394
xor eax, eax
ret

Function at 0x6d7d8450
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d85c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d85e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d85d8
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 0x6d7d863d
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 0x6d7d8634
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d8644
add rax, 0x28
cmp rax, r9
jne 0x6d7d8620
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d8660
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d86ce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d86ce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d86ce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d86ce
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 0x6d7d86c5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d86d5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d86b0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d86e8
jmp 0x6d7d86ce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d86f6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d86ce
test r9d, r9d
jg 0x6d7d86e0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d8a30
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 0x140d72058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d721df
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 0x140d72089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d7206f
add dl, dl
jne 0x140d72096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d720f6
xor eax, eax
add dl, dl
jne 0x140d720a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d721ad
add dl, dl
jne 0x140d720b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d720c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d720d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d720dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d720ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d7207e
mov eax, 1
add dl, dl
jne 0x140d72106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d72113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d720fb
sub eax, ebx
mov ebx, 1
jne 0x140d7214c
mov ecx, 1
add dl, dl
jne 0x140d7212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d7213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d72123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d7207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d72168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d72175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d7215d
cmp eax, 0x7d00
jae 0x140d7219b
cmp eax, 0x500
jb 0x140d72196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d7207e
cmp eax, 0x7f
ja 0x140d7219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d7207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d721d2
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 0x140d7207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400172d0]
xor edi, edi
mov rax, qword gs:[0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400172e0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14001a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140017240]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000d960
mov rcx, qword [0x140017360]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400172c0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000d770
mov ebx, dword [0x14001a028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test ebx, ebx
mov r12, qword [0x14001a020]
mov rbp, rax
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14001a020], rbp
call fcn.14000d4b0
mov rax, qword [0x140017250]
mov r8, qword [0x14001a018]
mov ecx, dword [0x14001a028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14001a020]
call fcn.14000d4d0
mov ecx, dword [0x14001a00c]
mov dword [0x14001a010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14001a008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400172e0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000f080
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140017300]
mov rcx, qword [0x1400172f0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
test edi, edi
mov dword [rsi], 2
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14001a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140017320]
mov dword [rsi], 1
mov rcx, qword [0x140017310]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001770
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140011129]
call fcn.1400041b0
test rax, rax
mov rbp, rax
je 0x1400018a0
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001880
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov r13, rax
je 0x1400018b6
cmp byte [r12 + 0x10], 1
je 0x140001860
test rsi, rsi
mov rdi, rax
jne 0x1400017f8
jmp 0x140001840
add rdi, rbx
sub rsi, rbx
je 0x140001840
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x1400017f0
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002c10
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001840
jmp 0x140001835
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002c10
jmp 0x14000183d
lea rdx, [r12 + 0x12]
xor r13d, r13d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002a90
jmp 0x140001848
lea r8, [r12 + 0x12]
mov r9d, esi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002c10
jmp 0x14000183d
Function at 0x140001980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [rcx + 0x5074], 1
mov rsi, rcx
mov rbx, rdx
jne 0x140001b80
cmp byte [rdx + 0x11], 0x6e
je 0x140001aa0
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.140008010
test rax, rax
mov r12, rax
je 0x140001b96
lea rcx, [rsi + 0x70]
lea rdx, [0x140011129]
call fcn.1400041b0
test rax, rax
mov rbp, rax
je 0x140001b10
mov edx, dword [rbx + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rsi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001b60
cmp byte [rbx + 0x10], 1
je 0x140001ac0
mov ecx, 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rdi, rax
je 0x140001bae
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001a56
jmp 0x140001b30
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140001b40
sub rsi, rbx
je 0x140001b30
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001a30
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov r8, r13
lea rcx, str.fread
call fcn.140002c10
mov esi, 0xffffffff
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140001ad3
call fcn.1400018e0
test eax, eax
mov esi, eax
js 0x140001af8
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.140001490
mov esi, eax
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002a90
jmp 0x140001aab
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, r13
mov esi, 0xffffffff
call fcn.140002a90
jmp 0x140001adb
xor esi, esi
jmp 0x140001a96
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov r8, r13
lea rcx, str.fwrite
call fcn.140002c10
jmp 0x140001a91
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov r8, r13
lea rcx, str.fseek
call fcn.140002c10
mov esi, 0xffffffff
jmp 0x140001ad3
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002a90
mov esi, 0xffffffff
jmp 0x140001aab
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov r8, r13
lea rcx, str.fopen
call fcn.140002c10
jmp 0x140001b8c
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov r8, r13
lea rcx, str.malloc
call fcn.140002c10
jmp 0x140001b76