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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1801bfd30]
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 0x1800cf125
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 0x1800cf186
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1800a8ab0
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.1800e2990
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 0x1800cf241
sub ecx, 1
je 0x1800cf2b4
sub ecx, 1
je 0x1800cf1f0
cmp ecx, 1
je 0x1800cf1d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18015af04]
call fcn.1800a8ab0
jmp 0x1800cf2b4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1800cedc0
test eax, eax
je 0x1800cf2b4
jmp 0x1800cf15a
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 0x1800cf2b4
sub rax, rsi
cmp rax, rbp
jae 0x1800cf2b4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1800a8c30
jmp 0x1800cf2b4
cmp r8d, 4
jle 0x1800cf2b4
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 0x1800cf2b4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1800a89d0
mov esi, eax
test eax, eax
je 0x1800cf293
mov edx, 5
mov rcx, rbx
call fcn.1800cfd80
mov eax, esi
jmp 0x1800cf15a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800b7fe0
mov rcx, r14
call fcn.1800b82c0
test eax, eax
je 0x1800cf158
mov edx, 5
mov rcx, rbx
call fcn.1800cfd80
mov eax, Ordinal_46
jmp 0x1800cf15a
Function at 0x1800e2190
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1800e21d2
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 0x1800e2219
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 0x1800e2272
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 0x1800e2230
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800e22b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1801a8ffb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1801a8ffc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800e2280
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 0x1400422a0
Capabilities:
Terminate process

Disassembly:
or al, 0
mov r8d, 0x1000
call rax
mov rdx, qword [0x14010fb6c]
mov r8, rax
mov r9, qword [0x14010fb30]
mov r10d, 0x13fe
mov edx, edx
add r9, rdx
lea rdx, [rax + 8]
mov ebx, dword [r9 + 4]
sub r9, rax
mov ecx, dword [r9 + rdx]
add ecx, ebx
mov dword [rdx], ecx
lea rdx, [rdx + 4]
sub r10, 1
jne 0x1400422d1
mov eax, dword [0x14010fb60]
mov dword [r8 + 8], eax
mov eax, dword [reloc.OLEAUT32.dll_SafeArrayLock]
mov edx, dword [r8 + 0xc]
mov ecx, dword [reloc.OLEAUT32.dll_SafeArrayLock]
add rdx, rax
add rdx, r8
add rcx, r8
call rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400a8d20
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r12, rcx
test rdx, rdx
je 0x1400a8e5d
test r8, r8
je 0x1400a8d53
cmp word [r8], 0
jne 0x1400a8d5c
test r9, r9
je 0x1400a8e5d
mov rax, qword [0x140111488]
xor r8d, r8d
mov rdx, rdi
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
mov rcx, rbp
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a8e4d
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400a8e37
call fcn.1400a8bf0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400a8e4d
mov eax, dword [0x140119ed8]
test al, 1
jne 0x1400a8df8
or eax, 1
lea rcx, str.advapi32
mov dword [0x140119ed8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x140119ed0], rax
jmp 0x1400a8dff
mov r11, qword [0x140119ed0]
mov rax, qword [0x140111488]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400a8e27
test r11, r11
je 0x1400a8e27
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r11
mov ebx, eax
jmp 0x1400a8e4d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400a8e4d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x1400a8e62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
jmp 0x1400a8e65
mov ebx, 0x57
mov r11d, ebx
mov rax, qword [0x140111488]
test ebx, ebx
mov rcx, r12
setne dl
mov dword [rax + 0x40], r11d
call fcn.14003ec70
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x1400acc90
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400acd78
cmp word [rcx], 0
je 0x1400acd78
lea rdx, [0x1400ff710]
mov r8d, 4
call fcn.1400cb1c0
mov r8, rbx
test eax, eax
jne 0x1400accd3
lea r8, [rbx + 8]
test r8, r8
je 0x1400acd10
movzx edx, word [r8]
test dx, dx
je 0x1400acd10
lea rcx, [0x1400ec848]
mov eax, 0x3f
nop dword [rax]
cmp dx, ax
je 0x1400acd3d
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400accf0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x1400acce1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r11d, eax
test rdi, rdi
je 0x1400acd23
mov dword [rdi], eax
xor eax, eax
cmp r11d, 0xffffffff
setne al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400acd78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test rdi, rdi
je 0x1400acd65
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x1400ad500
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400d1370
sub rsp, rax
mov rdi, rdx
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x1400ad554
lea r8d, [rax + 1]
lea rdx, [rsp + 0x20]
mov rcx, rdi
add r8, r8
call fcn.1400c9d20
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400171f0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140017200]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14000efc0
jmp 0x14000123c
mov rax, qword [0x140017200]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140017200]
mov dword [rax], 1
mov rax, qword [0x140017240]
mov rdx, rax
mov rax, qword [0x140017230]
mov rcx, rax
call sub.ucrtbase.dll__initterm
jmp 0x14000123c
mov dword [0x14001c024], 1
mov rax, qword [0x140017200]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140017220]
mov rdx, rax
mov rax, qword [0x140017210]
mov rcx, rax
call sub.ucrtbase.dll__initterm
mov rax, qword [0x140017200]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400171f0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140017140]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140017140]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000d498
mov rax, qword [0x140017280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400171e0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.14000cc90
mov eax, dword [0x14001c004]
lea rdx, [0x14001c008]
mov ecx, eax
call fcn.14000147c
call fcn.14000ca27
mov rax, qword [0x140017170]
mov rax, qword [rax]
mov rdx, qword [0x14001c010]
mov qword [rax], rdx
mov rcx, qword [0x14001c010]
mov rdx, qword [0x14001c008]
mov eax, dword [0x14001c004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14001c01c], eax
mov eax, dword [0x14001c020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001c01c]
mov ecx, eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x14001c024]
test eax, eax
jne 0x14000136c
call sub.ucrtbase.dll__cexit
mov eax, dword [0x14001c01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400171a0]
mov dword [rax], 1
mov rax, qword [0x1400171b0]
mov dword [rax], 1
mov rax, qword [0x1400171c0]
mov dword [rax], 1
mov rax, qword [0x140017160]
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 0x140001b00
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, [0x140011179]
call fcn.140003760
mov rbp, rax
test rax, rax
je 0x140001c30
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140001c10
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.ucrtbase.dll_malloc
mov r13, rax
test rax, rax
je 0x140001c46
cmp byte [r12 + 0x10], 1
je 0x140001bf0
mov rdi, rax
test rsi, rsi
jne 0x140001b88
jmp 0x140001bd0
add rdi, rbx
sub rsi, rbx
je 0x140001bd0
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.ucrtbase.dll_fread
test rax, rax
jne 0x140001b80
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400025f0
mov rcx, r13
call sub.ucrtbase.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.ucrtbase.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.140001710
test eax, eax
je 0x140001bd0
jmp 0x140001bc5
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.1400025f0
jmp 0x140001bcd
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002590
jmp 0x140001bd8
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.1400025f0
jmp 0x140001bcd
Function at 0x140001d10
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 0x140001f10
cmp byte [rdx + 0x11], 0x6e
je 0x140001e30
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.140007650
mov r12, rax
test rax, rax
je 0x140001f26
lea rcx, [rsi + 0x70]
lea rdx, [0x140011179]
call fcn.140003760
mov rbp, rax
test rax, rax
je 0x140001ea0
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rsi]
mov rcx, rax
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140001ef0
cmp byte [rbx + 0x10], 1
je 0x140001e50
mov ecx, 0x2000
call sub.ucrtbase.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001f3e
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001de6
jmp 0x140001ec0
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.ucrtbase.dll_fwrite
test rax, rax
je 0x140001ed0
sub rsi, rbx
je 0x140001ec0
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.ucrtbase.dll_fread
test rax, rax
jne 0x140001dc0
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400025f0
mov esi, 0xffffffff
mov rcx, rdi
call sub.ucrtbase.dll_free
jmp 0x140001e63
call fcn.140001c70
mov esi, eax
test eax, eax
js 0x140001e88
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.140001710
mov esi, eax
mov rcx, rbp
call sub.ucrtbase.dll_fclose
mov rcx, r12
call sub.ucrtbase.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.140002590
jmp 0x140001e3b
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov esi, 0xffffffff
call fcn.140002590
jmp 0x140001e6b
xor esi, esi
jmp 0x140001e26
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.1400025f0
jmp 0x140001e21
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.1400025f0
mov esi, 0xffffffff
jmp 0x140001e63
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002590
mov esi, 0xffffffff
jmp 0x140001e3b
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.1400025f0
jmp 0x140001f1c
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.1400025f0
jmp 0x140001f06
Function at 0x140001f60
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140011179]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140003760
mov rsi, rax
test rax, rax
je 0x140002161
mov rax, qword [0x140016d50]
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.140007c80
mov rdi, rax
test rax, rax
jne 0x140001fd8
mov edi, 0xffffffff
mov rcx, rsi
call sub.ucrtbase.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 sub.ucrtbase.dll_fseek
test eax, eax
js 0x140002110
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.ucrtbase.dll_fread
test rax, rax
je 0x140002130
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 [0x14001c0b0], ecx
mov rcx, rsi
call sub.ucrtbase.dll_fseek
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.ucrtbase.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x14000216b
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.ucrtbase.dll_fread
test rax, rax
je 0x1400020f0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call sub.ucrtbase.dll_ferror
mov edi, eax
test eax, eax
jne 0x140002150
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001fc0
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 0x1400020c0
jmp 0x140001fc0
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.1400025f0
jmp 0x140001fbb
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.1400025f0
jmp 0x140001fbb
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.1400025f0
jmp 0x140001fbb
lea rcx, str.Error_on_file._n
call fcn.140002590
jmp 0x140001fbb
mov edi, 0xffffffff
jmp 0x140001fc8
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.1400025f0
jmp 0x140001fbb
Function at 0x140006ef0
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000dfc0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea rbx, [rsp + 0x20]
call fcn.1400081f0
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140006f38
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.140008020
mov rcx, rax
test rax, rax
je 0x140006f26
cmp byte [rax], 0
je 0x140006f26
call sub.ucrtbase.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x140006fe0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.1400081f0
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.ucrtbase.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140007320
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000dfc0
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea r12, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.1400081f0
mov rdx, rsi
mov rcx, r12
call sub.ucrtbase.dll_wcscpy
mov rcx, r12
call sub.ucrtbase.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000738c
cmp ax, 0x5c
jne 0x1400073e0
lea rdx, [0x14001348a]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.ucrtbase.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000e850
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400073f8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ucrtbase.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x140013486]
mov rcx, r12
add r13, 1
call sub.ucrtbase.dll_wcscat
jmp 0x14000738c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsp + 0x30]
mov rcx, r12
mov r8, rbp
mov r15, rbp
call fcn.140007460
jmp 0x14000743f
mov rdi, rbp
mov ecx, 0x46
mov rsi, rbx
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, r12
mov rbp, r15
call fcn.140007460
mov rdx, rbx
mov rcx, r14
call fcn.14000e930
test eax, eax
je 0x140007420
mov rcx, r14
call qword [sym.imp.ucrtbase.dll__findclose]
jmp 0x1400073b7

Function at 0x140007460
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000dfc0
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x14001348e]
mov rcx, rsi
call sub.ucrtbase.dll_wcscmp
test eax, eax
jne 0x1400074a0
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x140013492]
mov rcx, rsi
call sub.ucrtbase.dll_wcscmp
test eax, eax
je 0x140007491
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.ucrtbase.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x140007500
call fcn.140008500
test eax, eax
jne 0x140007528
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008020
mov rcx, rbx
call fcn.140007320
jmp 0x140007491
mov rbx, qword [sym.imp.ucrtbase.dll__wremove]
call rbx
test eax, eax
je 0x140007491
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x140007491
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll__wrmdir]
jmp 0x140007491