joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c990
Capabilities:
Get number of processors

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r12, r8
mov r13, rdx
call fcn.14005a630
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r9, r14
mov rdi, qword [rsp + 0x78]
mov r8, rsi
mov rbx, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.14005ad60
vmovdqu32 zmm3, zmmword [rbx]
vpmaxsd zmm1, zmm3, zmmword [r15]
mov rax, qword [rsp + 0x50]
mov r9, r15
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r15]
vmovdqu32 zmmword [r15], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r12]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r12]
vmovdqu32 zmmword [r12], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r13]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r13]
vmovdqu32 zmmword [r13], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
mov r8, r12
mov rdx, r13
mov rcx, rax
vzeroupper
call fcn.14005b490
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.14005b490

Function at 0x14005cab0
Capabilities:
Get number of processors

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r12, r8
mov r13, rdx
call fcn.14005ad60
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r9, r14
mov rdi, qword [rsp + 0x78]
mov r8, rsi
mov rbx, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.14005a630
vmovdqu32 zmm3, zmmword [rbx]
vpmaxsd zmm1, zmm3, zmmword [r15]
mov rax, qword [rsp + 0x50]
mov r9, r15
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r15]
vmovdqu32 zmmword [r15], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r12]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r12]
vmovdqu32 zmmword [r12], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r13]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r13]
vmovdqu32 zmmword [r13], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
mov r8, r12
mov rdx, r13
mov rcx, rax
vzeroupper
call fcn.14005b690
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.14005b690
Function at 0x14005e190
Capabilities:
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], r13
mov qword [r11 - 0x50], r12
mov qword [r11 - 0x58], r14
call fcn.14005c990
mov r15, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r15
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov rcx, rbx
call fcn.14005ad60
vmovdqu32 zmm3, zmmword [rbx]
mov rax, qword [rsp + 0xb8]
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
vpmaxsd zmm1, zmm3, zmmword [rax]
mov rcx, qword [rsp + 0x80]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [rax]
vmovdqu32 zmmword [rax], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r13]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r13]
vmovdqu32 zmmword [r13], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r12]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r12]
vmovdqu32 zmmword [r12], zmm0
vmovdqu32 zmm4, zmmword [r15]
vpmaxsd zmm0, zmm4, zmmword [r14]
vmovdqu32 zmmword [r15], zmm0
vpminsd zmm1, zmm4, zmmword [r14]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
vmovdqu32 zmmword [r14], zmm1
mov qword [rsp + 0x20], r14
vzeroupper
call fcn.14005cbd0
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.14005b490
Function at 0x140060090
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x50], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x58], rax
call fcn.14005c990
mov rax, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r14
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov r15, qword [rsp + 0xe0]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call fcn.14005cab0
vmovdqu32 zmm3, zmmword [rbx]
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
vpmaxsd zmm1, zmm3, zmmword [r9]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r9]
vmovdqu32 zmmword [r9], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r8]
mov r10, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r11, qword [rsp + 0x90]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r8]
vmovdqu32 zmmword [r8], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rdx], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
vmovdqu32 zmm3, zmmword [r15]
vpmaxsd zmm1, zmm3, zmmword [r10]
vmovdqu32 zmmword [r15], zmm1
vpminsd zmm0, zmm3, zmmword [r10]
vmovdqu32 zmmword [r10], zmm0
vmovdqu32 zmm4, zmmword [r12]
vpmaxsd zmm0, zmm4, zmmword [r11]
vmovdqu32 zmmword [r12], zmm0
vpminsd zmm1, zmm4, zmmword [r11]
vmovdqu32 zmmword [r11], zmm1
vmovdqu32 zmm3, zmmword [r13]
vpmaxsd zmm1, zmm3, zmmword [rcx]
vmovdqu32 zmmword [r13], zmm1
vpminsd zmm0, zmm3, zmmword [rcx]
vmovdqu32 zmmword [rcx], zmm0
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x38], r9
mov r9, r10
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
vmovdqu32 zmm4, zmmword [rcx]
vpmaxsd zmm0, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rcx], zmm0
vpminsd zmm1, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rbx], zmm1
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x88]
mov r8, r11
vzeroupper
call fcn.14005cbd0
mov rax, qword [rsp + 0xf8]
mov r9, r14
mov rcx, qword [rsp + 0xc0]
mov r8, rsi
mov qword [rsp + 0xb8], rax
mov rdx, rdi
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xa0], r15
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.14005cbd0
Function at 0x140060e90
Capabilities:
Parse pe header

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

Function at 0x140065790
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400657b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400657b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400eb4f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140003040
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140003090
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001a37
mov dword [rax + 0x78], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400fe250
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
lea rdx, [0x140153218]
cmp qword [rdx - 8], 0
jne 0x1400fe33a
mov rbx, qword [0x140284928]
mov qword [rbp - 0x40], rbx
mov rdx, qword [rbx + 8]
mov edx, dword [rdx + 8]
mov dword [rbp - 0x44], edx
xor ecx, ecx
mov qword [rbp - 0x54], rcx
mov r8d, 0x1000
mov dword [rbp - 0x48], r8d
mov r9d, 0x40
mov dword [rbp - 0x4c], r9d
lea rcx, [rbp - 0x80]
call fcn.140003040
mov edx, dword [rbp - 0x44]
mov rcx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x48]
mov r9d, dword [rbp - 0x4c]
call sub.KERNEL32.dll_VirtualAlloc
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140003090
mov rsi, qword [rbp - 0x40]
mov rcx, qword [rsi + 8]
mov r9, rcx
mov r8d, dword [rcx + 8]
mov rcx, r9
mov r9d, r8d
mov r8, rbx
xor edx, edx
call fcn.14011f920
test rbx, rbx
je 0x1400fe328
lea rcx, [rbp - 0x80]
call fcn.140003040
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov dword [rbp - 0x4c], ecx
lea rcx, [rbp - 0x80]
call fcn.140003090
mov ecx, dword [rbp - 0x4c]
call fcn.1400fe350
mov rcx, rax
mov rdx, rbx
xor r8d, r8d
call fcn.1400fe3b0
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14000180d
jmp 0x1400fe27a
Function at 0x140001050
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov r13d, 0x2000
mov ecx, r13d
mov r15, r8
mov r14, rdx
xor esi, esi
call fcn.1400113dc
mov rbp, rax
test rax, rax
jne 0x1400010b0
lea r8, [r14 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002720
or eax, 0xffffffff
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0x50], rbx
mov ebx, dword [r14 + 0xc]
test rbx, rbx
je 0x140001144
mov qword [rsp + 0x58], rdi
nop word [rax + rax]
cmp rbx, r13
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, r13
mov rcx, rbp
mov rdx, rdi
call fcn.14000e76c
cmp rax, 1
jb 0x140001125
mov r9, r15
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call fcn.14000ecf0
cmp rax, 1
jb 0x140001115
sub rbx, rdi
jne 0x1400010d0
jmp 0x14000113f
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x140001133
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
lea r8, [r14 + 0x12]
call fcn.140002720
or esi, 0xffffffff
mov rdi, qword [rsp + 0x58]
mov rcx, rbp
call fcn.1400113d4
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140001170
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.3.1
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000bb10
mov r15d, eax
test eax, eax
je 0x1400011f3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.1400029c0
or eax, 0xffffffff
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.1400113dc
mov r13, rax
test rax, rax
jne 0x140001229
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140002720
jmp 0x140001396
mov ecx, 0x2000
call fcn.1400113dc
mov rbp, rax
test rax, rax
jne 0x140001257
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140002720
jmp 0x140001396
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000e76c
cmp rax, rbx
jne 0x14000138a
mov rcx, rdi
call fcn.14000e4c0
test eax, eax
jne 0x14000138a
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.14000a150
or r15d, 0xffffffff
mov edi, eax
cmp eax, 0xfffffffc
jl 0x1400012ef
cmp eax, 0xfffffffe
jle 0x140001363
cmp eax, 2
je 0x14000135c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001324
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000ecf0
cmp rax, rbx
jne 0x14000131f
mov rcx, r14
call fcn.14000e4c0
test eax, eax
je 0x14000133a
mov edi, r15d
jmp 0x140001368
test rsi, rsi
je 0x14000133a
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000d250
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400012c0
cmp edi, 1
je 0x140001385
test r12, r12
je 0x140001363
mov rdi, qword [rsp + 0xc0]
jmp 0x140001270
mov edi, 0xfffffffd
jmp 0x140001368
cmp edi, 1
je 0x140001385
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.1400029c0
jmp 0x14000138e
xor r15d, r15d
jmp 0x14000138e
or r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000b960
mov rcx, r13
call fcn.1400113d4
mov rcx, rbp
call fcn.1400113d4
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400013d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebx, dword [rdx + 0xc]
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test rbx, rbx
je 0x14000142c
mov r15d, 0x2000
nop
cmp rbx, r15
mov rdi, rbx
mov r9, r14
mov r8d, 1
cmova rdi, r15
mov rcx, rsi
mov rdx, rdi
call fcn.14000e76c
cmp rax, 1
jb 0x140001447
add rsi, rdi
sub rbx, rdi
jne 0x140001400
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea r8, [rbp + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002720
or eax, 0xffffffff
jmp 0x14000142e
Function at 0x140001940
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, [0x140026794]
add rcx, 0x70
or esi, 0xffffffff
call fcn.140003f20
mov rdi, rax
test rax, rax
je 0x140001b29
mov rax, qword [0x140028a58]
lea r8d, [rsi + 9]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
shr rax, 0x18
mov rcx, rdi
add al, 0xc
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x23], al
call fcn.140008960
mov rbp, rax
test rax, rax
je 0x140001b1c
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.14000eaa8
test eax, eax
jns 0x1400019e2
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002720
jmp 0x140001b1c
mov edx, 0x58
lea rcx, [rbx + 0x18]
mov r9, rdi
lea r8d, [rdx - 0x57]
call fcn.14000e76c
cmp rax, 1
jae 0x140001a15
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002720
jmp 0x140001b1c
mov ecx, dword [rbx + 0x20]
xor r8d, r8d
mov eax, dword [rbx + 0x24]
bswap eax
mov dword [rbx + 0x24], eax
mov eax, dword [rbx + 0x28]
bswap eax
mov dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x2c]
bswap ecx
mov ecx, ecx
sub rbp, rcx
mov dword [rbx + 0x20], ecx
bswap eax
mov dword [rbx + 0x2c], eax
add rbp, 0x58
mov qword [rbx], rbp
mov rcx, rdi
mov dword [rbx + 0x5078], 0
mov dword [0x140038b14], eax
mov edx, dword [rbx + 0x24]
add rdx, qword [rbx]
call fcn.14000eaa8
movsxd rcx, dword [rbx + 0x28]
call fcn.1400113dc
mov qword [rbx + 8], rax
test rax, rax
jne 0x140001a8c
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002720
jmp 0x140001b1c
movsxd rdx, dword [rbx + 0x28]
mov r9, rdi
mov r8d, 1
mov rcx, rax
call fcn.14000e76c
cmp rax, 1
jae 0x140001abc
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002720
jmp 0x140001b1c
movsxd rax, dword [rbx + 0x28]
mov rcx, rdi
add rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
call fcn.14000e4c0
test eax, eax
je 0x140001ae2
lea rcx, str.Error_on_file._n
call fcn.1400029c0
jmp 0x140001b1c
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jae 0x140001b1a
nop dword [rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
bswap edx
mov dword [rax], edx
movsxd rcx, edx
add rax, rcx
cmp rax, qword [rbx + 0x10]
jb 0x140001af0
xor esi, esi
mov rcx, rdi
call fcn.14000e428
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000c470
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140007be0
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000c400
sub rsp, rax
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140009260
mov rdi, rax
test rax, rax
jne 0x140007c29
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.1400029c0
xor eax, eax
jmp 0x140007d38
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.1400113d4
test ebx, ebx
jne 0x140007c66
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.1400029c0
xor eax, eax
jmp 0x140007d30
lea rcx, [rsp + 0x20]
call fcn.140009100
test eax, eax
je 0x140007c80
lea rcx, [rsp + 0x20]
call fcn.1400135d4
jmp 0x140007c92
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140012364
mov rbx, rax
test rax, rax
jne 0x140007cad
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.1400029c0
xor eax, eax
jmp 0x140007d30
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.14000d6a0
mov edx, 0x5c
mov rcx, rbx
call fcn.14000da0c
mov rdi, rax
test rax, rax
je 0x140007d22
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140013658
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000da0c
mov rdi, rax
test rax, rax
jne 0x140007ce0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rbx, qword [rsp + 0x4048]
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000c470
add rsp, 0x4030
pop rdi
ret

Function at 0x140007d60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.14000c400
sub rsp, rax
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140026794]
call fcn.140003f20
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.1400082c0
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140007e51
mov rcx, rsi
test rax, rax
je 0x140007e59
call fcn.14000e494
test eax, eax
jne 0x140007e3d
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e76c
test rax, rax
jne 0x140007dfe
mov rcx, rsi
call fcn.14000e4c0
test eax, eax
je 0x140007e24
mov rcx, rsi
jmp 0x140007e35
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000ecf0
test rax, rax
je 0x140007e32
mov rcx, rbx
call fcn.14000e4c0
test eax, eax
jne 0x140007e32
mov rcx, rsi
call fcn.14000e494
test eax, eax
je 0x140007dd0
jmp 0x140007e3d
mov rcx, rbx
call fcn.1400146d0
or edi, 0xffffffff
mov rcx, rsi
call fcn.14000e428
mov rcx, rbx
call fcn.14000e428
mov eax, edi
jmp 0x140007e61
test rbx, rbx
je 0x140007e5e
mov rcx, rbx
call fcn.14000e428
or eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c470
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x140008000
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2050
call fcn.14000c400
sub rsp, rax
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
mov rbp, rdx
mov r15, rcx
mov esi, edi
test rdx, rdx
je 0x140008089
lea rcx, [0x140028b34]
call fcn.140008210
mov rcx, rbp
mov rsi, rax
call fcn.140007be0
mov r14, rax
test rax, rax
je 0x140008082
mov rdx, rax
lea rcx, [0x140028b38]
call fcn.140013a14
mov rcx, r14
mov ebx, eax
call fcn.1400113d4
test ebx, ebx
je 0x140008089
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.1400029c0
xor eax, eax
jmp 0x1400081e8
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400026c0
nop word [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400146b4
mov rcx, rax
mov rbx, rax
call fcn.140009200
test eax, eax
je 0x140008166
mov rcx, rbx
call fcn.1400113d4
inc edi
cmp edi, 5
jl 0x1400080c0
test rbp, rbp
je 0x140008082
xor r8d, r8d
lea rdx, [0x140028b34]
xor ecx, ecx
call fcn.140009260
test rsi, rsi
je 0x140008149
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140009260
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140013a14
mov rcx, rdi
call fcn.1400113d4
mov rcx, rbx
call fcn.1400113d4
mov rcx, rsi
call fcn.1400113d4
xor eax, eax
jmp 0x1400081e8
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.1400113d4
xor eax, eax
jmp 0x1400081e8
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.140009360
mov rcx, rbx
call fcn.1400113d4
test rbp, rbp
je 0x1400081e3
xor r8d, r8d
lea rdx, [0x140028b34]
xor ecx, ecx
call fcn.140009260
test rsi, rsi
je 0x1400081cd
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140009260
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140013a14
mov rcx, rdi
call fcn.1400113d4
mov rcx, rbx
call fcn.1400113d4
mov rcx, rsi
jmp 0x1400081de
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.1400113d4
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000c470
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret