joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072550
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400723c0

Function at 0x140079117
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400d6300]
jne 0x14006fd1a
rol rcx, 0x10
test cx, 0xffff
jne 0x14006fd16
repz ret
ror rcx, 0x10
jmp 0x140079070
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140109a70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140109b68]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400790f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140109a70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140079117
mov rax, qword [rsp + 0x88]
mov qword [0x140109b68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140109b08], rax
mov rax, qword [0x140109b68]
mov qword [0x1401099e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140109af0], rax
mov dword [0x1401099d0], 0xc0000409
mov dword [0x1401099d4], 1
mov rax, qword [0x1400d6300]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400d6308]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140109a68], eax
mov ecx, 1
call fcn.14008315c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400e2058]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140109a68], 0
jne 0x14007919e
mov ecx, 1
call fcn.14008315c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140089e80
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400d6300]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400792ec
xor ebx, ebx
cmp qword [0x14010aab8], rbx
mov rdi, rax
jne 0x140089f93
lea rcx, [0x1400e4e10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14008a06a
lea rdx, [0x1400de1d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008a06a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1400e4e00]
mov rcx, rsi
mov qword [0x14010aab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1400e4de8]
mov rcx, rsi
mov qword [0x14010aac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1400e4dc8]
mov rcx, rsi
mov qword [0x14010aac8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14010aad8], rax
test rax, rax
je 0x140089f8a
lea rdx, [0x1400e4db0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14010aad0], rax
jmp 0x140089f9a
mov rax, qword [0x14010aad0]
jmp 0x140089fa1
mov rax, qword [0x14010aad0]
mov r11, qword [0x14010aad8]
cmp rax, rdi
je 0x14008a008
cmp r11, rdi
je 0x14008a008
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14010aad8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14008a008
test rax, rax
je 0x14008a008
call rsi
test rax, rax
je 0x14008a002
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14008a002
test byte [rsp + 0x40], 1
jne 0x14008a008
bts ebp, 0x15
jmp 0x14008a048
mov rcx, qword [0x14010aac0]
cmp rcx, rdi
je 0x14008a048
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14008a048
call rax
mov rbx, rax
test rax, rax
je 0x14008a048
mov rcx, qword [0x14010aac8]
cmp rcx, rdi
je 0x14008a048
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14008a048
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14010aab8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14008a06a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14008a06c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006fd00
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140097360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], r12
mov rbp, rcx
mov qword [rsp + 0x48], r13
nop
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x14009741c
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.140070600
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x1400973e0
sub eax, edi
jmp 0x1400973e2
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x1400973d0
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x140097410
sub eax, edi
jmp 0x140097412
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x140097400
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x1400974fb
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x1400974a2
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x140097474
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.14009b4e0
mov dword [rsi + 0x4c], eax
jmp 0x14009748a
cmp ecx, 2
jne 0x14009748a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.14009b4d0
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.140070600
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x1400974e4
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
add eax, 1
mov dword [rbp + 0x70], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x1400974fb
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x140097380
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400172a0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400172b0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14001a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140017210]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000dab0
mov rcx, qword [0x140017330]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140017290]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000d8c0
mov ebx, dword [0x14001a028]
lea r12d, [rbx + 1]
movsxd r12, r12d
shl r12, 3
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, qword [0x14001a020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub r12, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rdi + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [rdi + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, r12
jne 0x140001288
add rbx, rbp
mov qword [rbx], 0
mov qword [0x14001a020], rbp
call fcn.14000d600
mov rax, qword [0x140017220]
mov r8, qword [0x14001a018]
mov ecx, dword [0x14001a028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14001a020]
call fcn.14000d620
mov ecx, dword [0x14001a00c]
mov dword [0x14001a010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14001a008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400172b0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000eff0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400172d0]
mov rcx, qword [0x1400172c0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14001a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400172f0]
mov rcx, qword [0x1400172e0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rbx, rax
jmp 0x1400012be
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001880
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140011129]
call fcn.1400042f0
mov rbp, rax
test rax, rax
je 0x1400019b0
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001990
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r13, rax
test rax, rax
je 0x1400019c6
cmp byte [r12 + 0x10], 1
je 0x140001970
mov rdi, rax
test rsi, rsi
jne 0x140001908
jmp 0x140001950
add rdi, rbx
sub rsi, rbx
je 0x140001950
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001900
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002d30
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001950
jmp 0x140001945
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.140002d30
jmp 0x14000194d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002bb0
jmp 0x140001958
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.140002d30
jmp 0x14000194d
Function at 0x140001a90
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 0x140001c90
cmp byte [rdx + 0x11], 0x6e
je 0x140001bb0
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.140008210
mov r12, rax
test rax, rax
je 0x140001ca6
lea rcx, [rsi + 0x70]
lea rdx, [0x140011129]
call fcn.1400042f0
mov rbp, rax
test rax, rax
je 0x140001c20
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rsi]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001c70
cmp byte [rbx + 0x10], 1
je 0x140001bd0
mov ecx, 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001cbe
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001b66
jmp 0x140001c40
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140001c50
sub rsi, rbx
je 0x140001c40
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001b40
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002d30
mov esi, 0xffffffff
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140001be3
call fcn.1400019f0
mov esi, eax
test eax, eax
js 0x140001c08
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.140001490
mov esi, eax
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002bb0
jmp 0x140001bbb
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov esi, 0xffffffff
call fcn.140002bb0
jmp 0x140001beb
xor esi, esi
jmp 0x140001ba6
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002d30
jmp 0x140001ba1
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002d30
mov esi, 0xffffffff
jmp 0x140001be3
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002bb0
mov esi, 0xffffffff
jmp 0x140001bbb
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002d30
jmp 0x140001c9c
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002d30
jmp 0x140001c86
Function at 0x140001ce0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140011129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.1400042f0
mov rsi, rax
test rax, rax
je 0x140001ee1
mov rax, qword [0x140016d80]
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.140008830
mov rdi, rax
test rax, rax
jne 0x140001d58
mov edi, 0xffffffff
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.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.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001e90
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
je 0x140001eb0
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 [0x14001a040], ecx
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140001eeb
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
je 0x140001e70
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
mov edi, eax
test eax, eax
jne 0x140001ed0
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001d40
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 0x140001e40
jmp 0x140001d40
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002d30
jmp 0x140001d3b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002d30
jmp 0x140001d3b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002d30
jmp 0x140001d3b
lea rcx, str.Error_on_file._n
call fcn.140002bb0
jmp 0x140001d3b
mov edi, 0xffffffff
jmp 0x140001d48
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002d30
jmp 0x140001d3b
Function at 0x140007ab0
Capabilities:
Query environment variable

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

Function at 0x140007ba0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008d50
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140007ee0
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.14000e690
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.140008d50
mov rdx, rsi
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x140007f4c
cmp ax, 0x5c
jne 0x140007fa0
lea rdx, [0x14001348a]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000ea40
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140007fb8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.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.api_ms_win_crt_string_l1_1_0.dll_wcscat
jmp 0x140007f4c
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.140008020
jmp 0x140007fff
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.140008020
mov rdx, rbx
mov rcx, r14
call fcn.14000eb10
test eax, eax
je 0x140007fe0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
jmp 0x140007f77

Function at 0x140008020
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000e690
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x14001348e]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x140008060
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x140013492]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140008051
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x1400080c0
call fcn.140009060
test eax, eax
jne 0x1400080e8
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008b80
mov rcx, rbx
call fcn.140007ee0
jmp 0x140008051
mov rbx, qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
call rbx
test eax, eax
je 0x140008051
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x140008051
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
jmp 0x140008051
Function at 0x140008330
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000e690
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001352c]
call fcn.1400042f0
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.140008210
mov rdi, rax
test rbx, rbx
je 0x140008429
test rax, rax
je 0x14000841c
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
jne 0x140008418
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r8, rax
test rax, rax
jne 0x1400083c8
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140008380
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
jmp 0x1400083f1
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x1400083e9
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140008380
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x1400083f6
test rbx, rbx
je 0x140008429
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
test rdi, rdi
je 0x140008436
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov esi, 0xffffffff
jmp 0x140008406