joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c0230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1406161a8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400c02c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400c0326
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14009a780
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d3580
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400c03e1
sub ecx, 1
je 0x1400c0454
sub ecx, 1
je 0x1400c0390
cmp ecx, 1
je 0x1400c0373
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400d9bec]
call fcn.14009a780
jmp 0x1400c0454
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400bff60
test eax, eax
je 0x1400c0454
jmp 0x1400c02fa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400c0454
sub rax, rsi
cmp rax, rbp
jae 0x1400c0454
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14009a900
jmp 0x1400c0454
cmp r8d, 4
jle 0x1400c0454
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400c0454
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14009a6a0
mov esi, eax
test eax, eax
je 0x1400c0433
mov edx, 5
mov rcx, rbx
call fcn.1400c0f20
mov eax, esi
jmp 0x1400c02fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400a9180
mov rcx, r14
call fcn.1400a9460
test eax, eax
je 0x1400c02f8
mov edx, 5
mov rcx, rbx
call fcn.1400c0f20
mov eax, Ordinal_46
jmp 0x1400c02fa
Function at 0x1400d31f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str._G_r_]
mov rdi, rax
test rax, rax
jne 0x1400d3232
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d3279
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d32d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400d3290
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d3313
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140136812]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140136813]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d32e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d42a0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800144d2
mov al, 1
jmp 0x180014532
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800144e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180014530
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001e0a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180014530
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180014530
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180014530
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180014532
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180018d2c
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.180007110
sub rsp, rax
mov rax, qword [0x180038068]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001439c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180018d7b
mov rax, rbp
jmp 0x180018e83
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 + 0x3a2c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180019c78
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x3a2c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180018e7f
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 0x180018e7f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180019c78
test rax, rax
js 0x180018e7f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180018e7f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180018e71
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180018e71
cmp byte [rcx], 0xd
jne 0x180018e57
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180018e66
cmp byte [rcx + 1], 0xa
jne 0x180018e66
inc rcx
jmp 0x180018e66
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180018e39
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180018e83
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800070e0
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 0x180019018
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, [0x18003a2c0]
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 0x18001906f
cmp word [rdx], r13w
jne 0x18001906f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180019074
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180019199
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800191ba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800190ad
mov rdx, r9
mov word [rbx], cx
jmp 0x1800190d4
cmp r9, r8
jae 0x1800190e4
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 0x18001908e
jmp 0x180019199
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 0x18001918e
cmp dword [rsp + 0x80], esi
je 0x18001918e
lea r8, [0x18003a2c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180019166
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180019136
mov word [rbx], r13w
jmp 0x180019196
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 0x180019143
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180019196
cmp word [rsp + 0x70], r13w
jne 0x180019173
cmp rbx, r14
je 0x180019130
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180019c80
cmp word [rsp + 0x70], r13w
je 0x180019199
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, [0x18003a2c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180019193
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180019199
Function at 0x18001d8ec
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 0x18001d91c
xor eax, eax
jmp 0x18001d9df
mov rbp, rbx
cmp word [rax], si
je 0x18001d941
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001d928
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001d924
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.18001bfd4
movsxd r14, eax
test eax, eax
jne 0x18001d97f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001d915
mov rcx, r14
call fcn.180019d24
mov rdi, rax
test rax, rax
jne 0x18001d998
xor ecx, ecx
call fcn.1800175fc
jmp 0x18001d974
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.18001bfd4
test eax, eax
jne 0x18001d9c9
mov rcx, rdi
call fcn.1800175fc
jmp 0x18001d9d3
xor ecx, ecx
call fcn.1800175fc
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 0x180020754
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.1800149c0
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 0x1800207f5
cmp ebx, dword [rsp + 0x30]
je 0x1800207ee
test esi, esi
je 0x1800207ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800207c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800207d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800207b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800207da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800207f7
mov eax, 1
jmp 0x1800207f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180023614
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180019c80
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180019c80
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180023764
cmp rax, 0xffffffffffffffff
je 0x180023764
xor edi, edi
test rbp, rbp
jle 0x18002370f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180017be8
mov rbx, rax
test rax, rax
jne 0x18002369c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180023705
mov edx, 0x8000
mov ecx, r14d
call fcn.180023498
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800172f4
cmp eax, 0xffffffff
je 0x1800236e5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800236ac
mov edx, r15d
mov ecx, r14d
call fcn.180023498
jmp 0x180023705
cmp byte [rsi + 0x38], dil
je 0x1800236fc
cmp dword [rsi + 0x34], 5
jne 0x1800236fc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180023705
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800175fc
jmp 0x180023778
jns 0x180023778
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180019c80
cmp rax, 0xffffffffffffffff
jne 0x180023730
cmp byte [rsi + 0x30], dil
je 0x180023778
mov edi, dword [rsi + 0x2c]
jmp 0x180023778
mov ecx, r14d
call fcn.18001e0a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180023778
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180023778
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180023771
mov eax, dword [rsi + 0x2c]
jmp 0x180023776
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180019c80
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400018b0
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, [0x140019129]
call fcn.140004400
mov rbp, rax
test rax, rax
je 0x1400019e0
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.14000f130
test eax, eax
js 0x1400019c0
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400019f6
cmp byte [r12 + 0x10], 1
je 0x1400019a0
mov rdi, rax
test rsi, rsi
jne 0x140001938
jmp 0x140001980
add rdi, rbx
sub rsi, rbx
je 0x140001980
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001930
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002d90
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.msvcrt.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 0x140001980
jmp 0x140001975
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.140002d90
jmp 0x14000197d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002c10
jmp 0x140001988
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002d90
jmp 0x14000197d
Function at 0x140001ac0
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 0x140001cc0
cmp byte [rdx + 0x11], 0x6e
je 0x140001be0
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.140008390
mov r12, rax
test rax, rax
je 0x140001cd6
lea rcx, [rsi + 0x70]
lea rdx, [0x140019129]
call fcn.140004400
mov rbp, rax
test rax, rax
je 0x140001c50
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rsi]
mov rcx, rax
call fcn.14000f130
test eax, eax
js 0x140001ca0
cmp byte [rbx + 0x10], 1
je 0x140001c00
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001cee
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001b96
jmp 0x140001c70
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001c80
sub rsi, rbx
je 0x140001c70
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001b70
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002d90
mov esi, 0xffffffff
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x140001c13
call fcn.140001a20
mov esi, eax
test eax, eax
js 0x140001c38
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.msvcrt.dll_fclose
mov rcx, r12
call sub.msvcrt.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.140002c10
jmp 0x140001beb
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov esi, 0xffffffff
call fcn.140002c10
jmp 0x140001c1b
xor esi, esi
jmp 0x140001bd6
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002d90
jmp 0x140001bd1
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002d90
mov esi, 0xffffffff
jmp 0x140001c13
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002c10
mov esi, 0xffffffff
jmp 0x140001beb
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002d90
jmp 0x140001ccc
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002d90
jmp 0x140001cb6
Function at 0x140001d10
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140019129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140004400
mov rsi, rax
test rax, rax
je 0x140001f11
mov rax, qword [0x14001f2c0]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rsi
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.1400089b0
mov rdi, rax
test rax, rax
jne 0x140001d88
mov edi, 0xffffffff
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor r8d, r8d
mov edx, eax
mov rcx, rsi
call fcn.14000f130
test eax, eax
js 0x140001ec0
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ee0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rdi, 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 rdi, rax
bswap edx
mov qword [rbx], rdi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, edi
mov dword [rbx + 0x2c], ecx
mov dword [0x140023040], ecx
mov rcx, rsi
call fcn.14000f130
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140001f1b
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ea0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov edi, eax
test eax, eax
jne 0x140001f00
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001d70
nop word [rax + rax]
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 rax, r8
jb 0x140001e70
jmp 0x140001d70
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002d90
jmp 0x140001d6b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002d90
jmp 0x140001d6b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002d90
jmp 0x140001d6b
lea rcx, str.Error_on_file._n
call fcn.140002c10
jmp 0x140001d6b
mov edi, 0xffffffff
jmp 0x140001d78
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002d90
jmp 0x140001d6b
Function at 0x140007c30
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000e7e0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea rbx, [rsp + 0x20]
call fcn.140008e90
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007c78
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.140008cc0
mov rcx, rax
test rax, rax
je 0x140007c66
cmp byte [rax], 0
je 0x140007c66
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x140007d20
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008e90
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret