joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401f0090]
mov dword [rax], 1
mov rax, qword [0x1401f00a0]
mov dword [rax], 1
mov rax, qword [0x1401f00b0]
mov dword [rax], 1
mov rax, qword [0x1401f0010]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140163f70
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401c9990
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140164019
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x140163fde
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140163fd0
test rax, rax
je 0x1401da818
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140163fb8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140164048
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140164060
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140164101
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1401640c6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1401640b8
test rax, rax
je 0x1401da81e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1401640a0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14018a390
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140163f70
test rax, rax
je 0x14018a4d0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python37.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x14018a40e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14018a400
test rax, rax
je 0x1401da90d
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x14018a3f0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python37.dll_PyThreadState_Get]
mov rdx, qword [0x1402119f0]
mov rsi, rax
mov rax, qword [0x1401f01e0]
mov rbx, qword [rax + 0x1b8]
test rdx, rdx
je 0x14018a52b
mov r8, rbx
mov rcx, rsi
call fcn.14016deb0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14017dcb0
sub qword [rbx], 1
je 0x14018a4b4
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
jmp 0x14018a4a0
mov rax, qword [0x1402112d0]
lea rsi, [0x1402112d0]
test bl, bl
je 0x14018a4f0
mov rax, qword [0x1402112d8]
lea rsi, [0x1402112d8]
test rax, rax
jne 0x14018a4a0
cmp byte [0x1402114e2], 0
jne 0x14018a506
movzx ecx, bl
call fcn.14014be10
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402112e0]
call qword [sym.imp.python37.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14018a558
add qword [rax], 1
jmp 0x14018a4a0
mov rdx, qword [0x140211970]
mov rdi, qword [rax + 0x1a8]
test rdx, rdx
je 0x14018a563
mov r8, rdi
mov rcx, rsi
call fcn.14016deb0
mov qword [0x1402119f0], rax
mov rdx, rax
jmp 0x14018a47e
call qword [sym.imp.python37.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1401e8ba3]
call qword [sym.imp.python37.dll_PyImport_ImportModule]
mov qword [0x140211970], rax
mov rdx, rax
test rax, rax
je 0x1401da90d
jmp 0x14018a53e
Function at 0x1401c6110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1402112b9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1401c6198
lea rdx, [0x1401ec1fa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401c6200
mov rbx, qword [0x140211178]
jmp 0x1401c6155
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401c6150
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1401b4f80
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140211178], rax
mov ebx, dword [rax]
mov qword [0x140211178], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140211178], rdx
call fcn.1401c5240
cmp eax, ebx
jne 0x1401c629a
mov byte [0x1402112b9], 1
jmp 0x1401c612e
cmp byte [0x1402112b8], 0
jne 0x1401c6145
mov rbx, qword [sym.imp.python37.dll_PyDict_New]
lea rsi, [0x140210968]
call rbx
mov qword [0x140211be8], rax
call rbx
mov qword [0x140211be0], rax
call rbx
mov qword [0x140211bd8], rax
call rbx
mov qword [0x140211bd0], rax
call rbx
mov qword [0x140211bc8], rax
call rbx
mov qword [0x140211bc0], rax
call rbx
mov qword [0x140211bb8], rax
call rbx
mov r13, qword [sym.imp.python37.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x140211bb0], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x1401c6278
mov byte [0x1402112b8], 1
jmp 0x1401c6145
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1401c8670
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401d9d60
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401d9d60
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401c9342
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140212048]
test eax, eax
je 0x1401c93da
lea rax, [0x140212020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140212050]
mov qword [rbp - 8], rax
jmp 0x1401c93be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401c93b2
cmp qword [rbp - 0x10], 0
je 0x1401c93b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401c9378
lea rax, [0x140212020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401c93db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401c94e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401c9508
mov eax, 0
jmp 0x1401c9556
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401c9531
mov eax, 0
jmp 0x1401c9556
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401c9551
mov eax, 0
jmp 0x1401c9556
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401c955c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401c95da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401c95d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401c95d1
mov rax, qword [rbp - 8]
jmp 0x1401c95ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401c95a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c50
Capabilities:
Get disk information
Get hostname
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
mov qword [rbp - 0x11], rcx
xor eax, eax
mov dword [rbp - 0x39], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov ebx, 1
mov dword [rbp - 0x39], ebx
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 9]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140005414]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x140001d26
mov edx, dword [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.1400025f0
mov ebx, 3
mov dword [rbp - 0x39], ebx
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.140002220
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x140001d26
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001dd7
call fcn.14000333c
lea rcx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rbp + 0x23]
lea rcx, [rbp - 0x31]
call fcn.1400025f0
or ebx, 4
mov dword [rbp - 0x39], ebx
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.140002220
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x140001d86
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001dd7
call fcn.14000333c
mov edx, dword [rbp + 0x1f]
lea rcx, [rbp - 0x31]
call fcn.1400025f0
or ebx, 8
mov dword [rbp - 0x39], ebx
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.140002220
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x140001de3
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dde
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000333c
mov dword [rbp + 0x2f], 0x10
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400030a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003abc
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400219b0]
mov dword [rax], 1
mov rax, qword [0x1400219c0]
mov dword [rax], 1
mov rax, qword [0x1400219d0]
mov dword [rax], 1
mov rax, qword [0x1400219a0]
mov dword [rax], 1
mov rax, qword [0x140021810]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014e6
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001512
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001538
cmp eax, 0x20b
je 0x14000155f
jmp 0x14000158e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000154b
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000157a
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c70
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r13, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x14001b179]
call fcn.1400047e0
mov r12, rax
test rax, rax
je 0x140001d90
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.140010380
test eax, eax
js 0x140001d70
mov esi, dword [r13 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001da5
cmp byte [r13 + 0x10], 1
je 0x140001d50
mov rdi, rax
test rsi, rsi
jne 0x140001cf0
jmp 0x140001d37
add rdi, rbx
sub rsi, rbx
je 0x140001d37
mov ebx, 0x2000
mov r9, r12
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001ce8
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400031e0
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r14
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, r12
call fcn.140001860
test eax, eax
je 0x140001d37
jmp 0x140001d2c
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r14d, r14d
lea rcx, str.fseek
call fcn.1400031e0
jmp 0x140001d37
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140003050
jmp 0x140001d3f
mov r9d, esi
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.1400031e0
jmp 0x140001d37
Function at 0x140001e80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5074], 1
mov r12, rcx
mov r15, rdx
jne 0x140002080
cmp byte [rdx + 0x11], 0x6e
je 0x140001fb0
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.140008920
mov r14, rax
test rax, rax
je 0x140002096
lea rcx, [r12 + 0x70]
lea rdx, [0x14001b179]
call fcn.1400047e0
mov r13, rax
test rax, rax
je 0x140002010
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.140010380
test eax, eax
js 0x140002060
cmp byte [r15 + 0x10], 1
je 0x140001fd0
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x1400020b6
mov esi, dword [r15 + 0xc]
test rsi, rsi
jne 0x140001f5e
jmp 0x140002030
mov r9, r14
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140002040
sub rsi, rbx
je 0x140002030
mov ebx, 0x2000
mov r9, r13
mov r8d, 1
mov rcx, r12
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001f38
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.1400031e0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001fe3
call fcn.140001dd0
mov ebx, eax
test eax, eax
js 0x140001ff8
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.140001860
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001fbb
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140003050
jmp 0x140001fbb
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140003050
jmp 0x140001feb
xor ebx, ebx
jmp 0x140001f9e
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.1400031e0
jmp 0x140001f9e
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.1400031e0
jmp 0x140001fe3
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.140003050
jmp 0x140001fbb
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.1400031e0
jmp 0x140001fbb
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
or ebx, 0xffffffff
call fcn.1400031e0
jmp 0x140001fe3
Function at 0x1400020e0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x14001b179]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.1400047e0
mov r12, rax
test rax, rax
je 0x1400022e7
mov rax, qword [0x140021360]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, r12
mov r13d, 0xffffffff
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008f80
mov rsi, rax
test rax, rax
jne 0x140002160
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov edx, eax
mov rcx, r12
call fcn.140010380
test eax, eax
js 0x140002290
lea rcx, [rbx + 0x18]
mov r9, r12
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x1400022b0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rsi, rax
bswap edx
mov qword [rbx], rsi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, esi
mov dword [rbx + 0x2c], ecx
mov dword [0x1400270b0], ecx
mov rcx, r12
call fcn.140010380
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x1400022f2
mov r9, r12
mov r8d, 1
mov rdx, r14
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002270
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, r12
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov r13d, eax
test eax, eax
jne 0x1400022d0
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140002146
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp r8, rax
ja 0x140002240
jmp 0x140002146
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.1400031e0
jmp 0x140002146
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.1400031e0
jmp 0x140002146
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.1400031e0
jmp 0x140002146
lea rcx, str.Error_on_file._n
mov r13d, 0xffffffff
call fcn.140003050
jmp 0x140002146
mov r13d, 0xffffffff
jmp 0x14000214e
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.1400031e0
jmp 0x140002146
Function at 0x1400081f0
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.14000f360
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.1400095b0
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140008238
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.1400093e0
mov rcx, rax
test rax, rax
je 0x140008227
cmp byte [rax], 0
je 0x140008227
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x1400082e0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.1400095b0
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
mov r13d, eax
call sub.msvcrt.dll_free
mov eax, r13d
add rsp, 0x28
pop r12
pop r13
ret