joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c030
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001ffd0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000c074
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c0da
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c111
test eax, eax
js 0x14000c0eb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c104
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006d10
mov rcx, rax
call fcn.140001f30
mov ecx, 7
int 0x29
ud2

Function at 0x14001a560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001a5da
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001a5d0
cmp r10, r11
jb 0x14001a673
cmp r10, rdx
ja 0x14001a687
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001a5d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001a5b0
jmp 0x14001a647
ja 0x14001a5da
mov r11, r10
cmp rax, r8
jne 0x14001a582
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001a64b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001a620
mov r8, r10
sub ecx, r9d
jns 0x14001a63e
jmp 0x14001a64d
cmp r10, rdx
je 0x14001a659
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001a64d
xor al, 1
cmp r8, rdx
jne 0x14001a600
jmp 0x14001a64d
xor eax, eax
jmp 0x14001a64d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001d2d0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d7a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d720
ud2
Function at 0x14001c0d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c11e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c11e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c11e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c11e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c11e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001c120
xor al, al
add rsp, 0x28
ret
Function at 0x14002b1d6
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x140065db0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x1400ae058]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x1400be7f7]
call fcn.14002c9e1
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.14002c33d
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x140065e7b
cmp qword [rbp + 8], 0
je 0x140065e43
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.14002c33d
mov dword [rbp + 0x44], eax
jmp 0x140065e21
cmp dword [rbp + 0x44], 0
jge 0x140065ea1
cmp qword [rbp + 8], 0
je 0x140065e9a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140065fd8
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140065eb7
xor eax, eax
jmp 0x140065fd8
mov dword [rbp + 0x84], 0
jmp 0x140065ed1
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x140065fc4
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.14002bbcc
mov rcx, qword [rbp + 0x210]
call fcn.14002b2b2
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.14002b2b2
mov qword [rbp + 0x1e0], rax
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x140065fb3
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.14002b51e
mov rax, qword [rbp + 0x1c8]
jmp 0x140065fd8
lea rcx, [rbp + 0xa8]
call fcn.14002b51e
jmp 0x140065ec3
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a0a00]
call fcn.14002c559
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.14002bca8
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14002b753
Capabilities:
Get common file path

Disassembly:
jmp 0x140065bc0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x1400ae058]
xor rax, rbp
mov qword [rbp + 0x410], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x1400be7f7]
call fcn.14002c9e1
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x140065c4d
cmp dword [rbp + 0x234], 0x105
jbe 0x140065ca6
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14002bd6b
mov qword [rbp + 0x408], rax
lea rdx, [0x14002bcc1]
mov rcx, qword [rbp + 0x408]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x140098e44]
mov rcx, qword [rbp + 0x440]
call fcn.14002b8a2
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x440]
jmp 0x140065d18
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x140065cf2
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x140065cdf
jmp 0x140065ce4
call fcn.14002c2bb
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x440]
call fcn.14002b8a2
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x440]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a0820]
call fcn.14002c559
mov rax, rdi
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.14002bca8
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x14002ca8b
Capabilities:
Print debug messages

Disassembly:
jmp 0x14007bb4c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14002c37e
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1400a1510]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.14002bc44
test eax, eax
jne 0x14007bbe3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14007bbe3
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14007bbdc
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1400b1320], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400064a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140007080]
test rax, rax
je 0x1400064ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400064ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400064ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400064ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400064ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400064ec
xor al, al
add rsp, 0x28
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140018290]
mov dword [rax], 1
mov rax, qword [0x1400182a0]
mov dword [rax], 1
mov rax, qword [0x1400182b0]
mov dword [rax], 1
mov rax, qword [0x140018250]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001bd0
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, [0x140012179]
call fcn.140004510
mov rbp, rax
test rax, rax
je 0x140001d00
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140001ce0
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.ucrtbase.dll_malloc
mov r13, rax
test rax, rax
je 0x140001d16
cmp byte [r12 + 0x10], 1
je 0x140001cc0
mov rdi, rax
test rsi, rsi
jne 0x140001c58
jmp 0x140001ca0
add rdi, rbx
sub rsi, rbx
je 0x140001ca0
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 0x140001c50
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002ff0
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.140001850
test eax, eax
je 0x140001ca0
jmp 0x140001c95
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.140002ff0
jmp 0x140001c9d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002e70
jmp 0x140001ca8
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.140002ff0
jmp 0x140001c9d
Function at 0x140001de0
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 + 0x5070], 1
mov rsi, rcx
mov rbx, rdx
jne 0x140001fe0
cmp byte [rdx + 0x11], 0x6e
je 0x140001f00
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.1400083b0
mov r12, rax
test rax, rax
je 0x140001ff6
lea rcx, [rsi + 0x70]
lea rdx, [0x140012179]
call fcn.140004510
mov rbp, rax
test rax, rax
je 0x140001f70
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rsi]
mov rcx, rax
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140001fc0
cmp byte [rbx + 0x10], 1
je 0x140001f20
mov ecx, 0x2000
call sub.ucrtbase.dll_malloc
mov rdi, rax
test rax, rax
je 0x14000200e
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001eb6
jmp 0x140001f90
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.ucrtbase.dll_fwrite
test rax, rax
je 0x140001fa0
sub rsi, rbx
je 0x140001f90
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 0x140001e90
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002ff0
mov esi, 0xffffffff
mov rcx, rdi
call sub.ucrtbase.dll_free
jmp 0x140001f33
call fcn.140001d40
mov esi, eax
test eax, eax
js 0x140001f58
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.140001850
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.140002e70
jmp 0x140001f0b
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov esi, 0xffffffff
call fcn.140002e70
jmp 0x140001f3b
xor esi, esi
jmp 0x140001ef6
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002ff0
jmp 0x140001ef1
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002ff0
mov esi, 0xffffffff
jmp 0x140001f33
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002e70
mov esi, 0xffffffff
jmp 0x140001f0b
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002ff0
jmp 0x140001fec
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002ff0
jmp 0x140001fd6
Function at 0x140002030
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140012179]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140004510
mov rsi, rax
test rax, rax
je 0x140002231
mov rax, qword [0x140017db0]
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.1400089e0
mov rdi, rax
test rax, rax
jne 0x1400020a8
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 0x1400021e0
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.ucrtbase.dll_fread
test rax, rax
je 0x140002200
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rdi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5074], 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 [0x14001d0b0], 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 0x14000223b
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.ucrtbase.dll_fread
test rax, rax
je 0x1400021c0
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 0x140002220
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140002090
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 0x140002190
jmp 0x140002090
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002ff0
jmp 0x14000208b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002ff0
jmp 0x14000208b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002ff0
jmp 0x14000208b
lea rcx, str.Error_on_file._n
call fcn.140002e70
jmp 0x14000208b
mov edi, 0xffffffff
jmp 0x140002098
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002ff0
jmp 0x14000208b
Function at 0x140007c50
Capabilities:
Query environment variable

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

Function at 0x140007d40
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008f00
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 0x140008080
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.14000eda0
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.140008f00
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 0x1400080ec
cmp ax, 0x5c
jne 0x140008140
lea rdx, [0x1400144da]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.ucrtbase.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000f670
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140008158
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, [0x1400144d6]
mov rcx, r12
add r13, 1
call sub.ucrtbase.dll_wcscat
jmp 0x1400080ec
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.1400081c0
jmp 0x14000819f
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.1400081c0
mov rdx, rbx
mov rcx, r14
call fcn.14000f750
test eax, eax
je 0x140008180
mov rcx, r14
call qword [sym.imp.ucrtbase.dll__findclose]
jmp 0x140008117

Function at 0x1400081c0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000eda0
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x1400144de]
mov rcx, rsi
call sub.ucrtbase.dll_wcscmp
test eax, eax
jne 0x140008200
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x1400144e2]
mov rcx, rsi
call sub.ucrtbase.dll_wcscmp
test eax, eax
je 0x1400081f1
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 0x140008260
call fcn.140009210
test eax, eax
jne 0x140008288
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008d30
mov rcx, rbx
call fcn.140008080
jmp 0x1400081f1
mov rbx, qword [sym.imp.ucrtbase.dll__wremove]
call rbx
test eax, eax
je 0x1400081f1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x1400081f1
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll__wrmdir]
jmp 0x1400081f1
Function at 0x1400084d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000eda0
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001457c]
call fcn.140004510
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.1400083b0
mov rdi, rax
test rbx, rbx
je 0x1400085c9
test rax, rax
je 0x1400085bc
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.ucrtbase.dll_feof
test eax, eax
jne 0x1400085b8
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.ucrtbase.dll_fread
mov r8, rax
test rax, rax
jne 0x140008568
mov rcx, rbx
call sub.ucrtbase.dll_ferror
test eax, eax
je 0x140008520
mov rcx, rbx
call sub.ucrtbase.dll_clearerr
jmp 0x140008591
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.ucrtbase.dll_fwrite
test rax, rax
je 0x140008589
mov rcx, rdi
call sub.ucrtbase.dll_ferror
test eax, eax
je 0x140008520
mov rcx, rdi
call sub.ucrtbase.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.ucrtbase.dll_fclose
mov rcx, rdi
call sub.ucrtbase.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x140008596
test rbx, rbx
je 0x1400085c9
mov rcx, rbx
call sub.ucrtbase.dll_fclose
test rdi, rdi
je 0x1400085d6
mov rcx, rdi
call sub.ucrtbase.dll_fclose
mov esi, 0xffffffff
jmp 0x1400085a6