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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c80], 0
lea rbx, [rcx + 0x5c88]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800197d7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001978a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001ba60
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180004a00
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c80]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c90]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180054c74]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800197df
mov rcx, rbx
call fcn.180004a00
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180019b70
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180054d20]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180019bd3
mov qword [rsp], rbx
lea rbx, [0x180044e30]
nop dword [rax]
cmp r9b, 0x23
jne 0x180019bb3
cmp byte [r8], r9b
jne 0x180019bb3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180019ba0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bf8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180019c07
mov r10, qword [r10 + 0x5c00]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180019c0e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180019bf4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18001d030
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xc8
mov rax, qword [0x180053040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
lea rax, str.cmd.exe
movups xmmword [rsp + 0x40], xmm0
mov r8, rcx
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x44], 0x40
mov qword [r11 - 0x70], rax
call fcn.180021750
cmp qword [rax + 0x18], 0xf
jbe 0x18001d0a4
mov rax, qword [rax]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
cmp rdx, 0xf
jbe 0x18001d0e9
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001d0e4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d0e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800415bc
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x70], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x18001d121
mov rcx, qword [rsp + 0xa8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800411f0
add rsp, 0xc8
ret

Function at 0x18001e100
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180053040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001e19a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18001e19a
cmp dword [rsp + 0x28], esi
jne 0x18001e170
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x18001e196
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18001e170
jmp 0x18001e19a
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800411f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18003fbb0
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18003fbfc
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
mov qword [0x180054d80], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x180040150]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180054d38], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret
test edx, edx
jne 0x18003fc0d
mov rcx, qword [0x180054d38]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1417e0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417e01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1417e0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417e006f
add dl, dl
jne 0x1417e0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417e00f6
xor eax, eax
add dl, dl
jne 0x1417e00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417e01ad
add dl, dl
jne 0x1417e00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417e00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1417e007e
mov eax, 1
add dl, dl
jne 0x1417e0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417e00fb
sub eax, ebx
mov ebx, 1
jne 0x1417e014c
mov ecx, 1
add dl, dl
jne 0x1417e012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417e013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417e0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417e007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1417e0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417e0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417e015d
cmp eax, 0x7d00
jae 0x1417e019b
cmp eax, 0x500
jb 0x1417e0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417e007e
cmp eax, 0x7f
ja 0x1417e019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417e007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417e01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1417e007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001580
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2150
call fcn.140002d10
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2140], rax
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001660
cmp rax, 0xffffffffffffffff
je 0x140001660
lea r9, [rsp + 0x24]
mov r8d, 0x2000
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001657
xor ebx, ebx
test dword [rsp + 0x24], 0xfffffff8
jbe 0x140001657
nop
mov rdx, qword [rsp + rbx*8 + 0x30]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x14000164a
lea rdx, str.lakiprivate.dll
lea rcx, [rsp + 0x2030]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140001683
mov eax, dword [rsp + 0x24]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x140001610
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.140001ec0
mov rbx, qword [rsp + 0x2160]
add rsp, 0x2150
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140001662
Function at 0x1400019b0
Capabilities:
Execute command
Set console window title

Disassembly:
sub rsp, 0x28
lea rcx, str.Laki_private_cheat_v1
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Czeaknie_na_Fivema..._n
call fcn.140001b10
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x1400019e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Znaleziono_client_Fivema_nacisnij_dowolny_klawisz_aby_zinjectowac_n
call fcn.140001b10
lea rcx, str.pause__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400011c0
lea rcx, str.pause__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140002840
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x30]
mov qword [rsp + 0xf0], r8
mov r14, rcx
mov r12, rdx
lea rdx, section..rdata
mov r8d, 0x58
mov rcx, rbp
mov qword [rsp + 0xf8], r9
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call fcn.0040a520
test eax, eax
mov ebx, eax
jne 0x40184a
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x401800
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rdi, rax
je 0x401820
mov r15d, dword [r12 + 8]
cmp r15, 0x2000
mov r13d, 0x2000
mov r9, r14
cmovbe r13, r15
mov edx, 1
mov rcx, rsi
mov r8, r13
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x401840
mov rcx, r14
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401840
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 0x2000
call fcn.0040a5c0
cmp eax, 0xfffffffc
mov ebx, eax
jl 0x401725
cmp eax, 0xfffffffe
jle 0x401720
cmp eax, 2
jne 0x401725
mov r10d, 0xfffffffd
lea rdx, [r12 + 0x12]
mov r8d, r10d
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00402c30
mov rcx, rbp
call fcn.0040c210
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10d, eax
jmp 0x4016d3
mov eax, dword [rsp + 0x48]
mov r11d, 0x2000
sub r11, rax
mov r9, rax
cmp qword [rsp + 0xf0], 0
je 0x4017c0
mov r8, r11
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x20], r11
mov r9, qword [rsp + 0xf0]
call sub.msvcrt.dll_fwrite
mov r11, qword [rsp + 0x20]
cmp rax, r11
jne 0x401868
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401868
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x4016a5
mov r10d, ebx
sub r15, r13
mov ebx, dword [rsp + 0x28]
cmp r10d, 1
je 0x4017ab
test r15, r15
jne 0x40165a
cmp r10d, 1
je 0x4016ec
jmp 0x4016d3
cmp qword [rsp + 0xf8], 0
je 0x401789
mov rcx, qword [rsp + 0xf8]
mov r8, r11
mov rdx, rdi
mov qword [rsp + 0x20], r11
mov dword [rsp + 0x2c], eax
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x20]
mov r9d, dword [rsp + 0x2c]
add qword [rsp + 0xf8], r11
jmp 0x401789
lea r8, [r12 + 0x12]
xor edi, edi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x4016ec
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x4016ec
mov ebx, 0xffffffff
jmp 0x4016ec
lea rdx, [r12 + 0x12]
mov r8d, eax
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00402c30
jmp 0x401704
mov r10d, 0xffffffff
jmp 0x4016d3
Function at 0x4018c0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rbp, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x00411129]
call fcn.00404390
test rax, rax
mov rsi, rax
je 0x4019e0
mov edx, dword [rbp + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx]
call fcn.0040f350
test eax, eax
js 0x4019c0
mov ebx, dword [rbp + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
mov r12, rax
je 0x4019f5
cmp byte [rbp + 0x10], 1
je 0x4019a0
test rbx, rbx
mov r13, rax
mov r14d, 0x2000
jne 0x40193d
jmp 0x401986
add r13, rdi
sub rbx, rdi
je 0x401986
cmp rbx, 0x2000
mov rdi, r14
mov r9, rsi
cmovbe rdi, rbx
mov r8d, 1
mov rcx, r13
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401935
lea r8, [rbp + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402db0
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, rbp
mov rcx, rsi
call fcn.004015b0
test eax, eax
je 0x401986
jmp 0x40197b
lea r8, [rbp + 0x12]
xor r12d, r12d
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402db0
jmp 0x401986
lea rdx, [rbp + 0x12]
xor r12d, r12d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402c30
jmp 0x40198e
lea r8, [rbp + 0x12]
mov r9d, ebx
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x401986
Function at 0x401ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5074], 1
mov rsi, rcx
mov rbx, rdx
jne 0x401cb0
cmp byte [rdx + 0x11], 0x6e
je 0x401be4
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.004081a0
test rax, rax
mov rbp, rax
je 0x401cc6
lea rcx, [rsi + 0x70]
lea rdx, [0x00411129]
call fcn.00404390
test rax, rax
mov rdi, rax
je 0x401c40
mov edx, dword [rbx + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rsi]
call fcn.0040f350
test eax, eax
js 0x401c90
cmp byte [rbx + 0x10], 1
je 0x401c00
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov r12, rax
je 0x401ce6
mov ebx, dword [rbx + 0xc]
test rbx, rbx
je 0x401c60
mov r14d, 0x2000
jmp 0x401b98
mov r9, rbp
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401c70
sub rbx, rsi
je 0x401c60
cmp rbx, 0x2000
mov rsi, r14
mov r9, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rcx, r12
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401b72
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fread
call fcn.00402db0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x401c13
call fcn.00401a20
test eax, eax
mov esi, eax
js 0x401c25
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r9d, r9d
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.004015b0
mov esi, eax
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov rcx, rbp
call sub.msvcrt.dll_fclose
jmp 0x401bef
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.00402c30
jmp 0x401bef
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, r13
mov esi, 0xffffffff
call fcn.00402c30
jmp 0x401c1b
xor esi, esi
jmp 0x401bda
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fwrite
call fcn.00402db0
jmp 0x401bda
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fseek
call fcn.00402db0
jmp 0x401c13
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov esi, 0xffffffff
call fcn.00402c30
jmp 0x401bef
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov r8, r13
mov esi, 0xffffffff
lea rcx, str.fopen
call fcn.00402db0
jmp 0x401bef
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov r8, r13
or esi, 0xffffffff
lea rcx, str.malloc
call fcn.00402db0
jmp 0x401c13
Function at 0x401d10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rdx, [0x00411129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.00404390
test rax, rax
mov rsi, rax
je 0x401f36
mov rax, qword [0x004177a0]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov ebp, 0xffffffff
mov r8d, 8
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.004087d0
test rax, rax
mov rdi, rax
jne 0x401d84
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, ebp
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r8d, r8d
mov edx, eax
mov rcx, rsi
call fcn.0040f350
test eax, eax
js 0x401ea0
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x401ec0
mov ecx, dword [rbx + 0x28]
add rdi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov eax, dword [rbx + 0x20]
mov edx, dword [rbx + 0x24]
bswap ecx
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
bswap eax
mov dword [rbx + 0x20], eax
mov eax, eax
sub rdi, rax
bswap edx
mov dword [rbx + 0x24], edx
mov qword [rbx], rdi
add edx, edi
bswap ecx
mov dword [rbx + 0x2c], ecx
mov dword [0x0041b040], ecx
mov rcx, rsi
call fcn.0040f350
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [rbx + 8], rax
je 0x401f00
mov r9, rsi
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_fread
test rax, rax
je 0x401ee0
movsxd rax, dword [rbx + 0x28]
mov rcx, rsi
add rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
test eax, eax
mov ebp, eax
jne 0x401f20
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x401d71
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 r8, rax
ja 0x401e70
jmp 0x401d71
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.00402db0
jmp 0x401d71
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.00402db0
jmp 0x401d71
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.00402db0
jmp 0x401d71
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.00402db0
jmp 0x401d71
lea rcx, str.Error_on_file._n
mov ebp, 0xffffffff
call fcn.00402c30
jmp 0x401d71
mov ebp, 0xffffffff
jmp 0x401d79
Function at 0x406750
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
mov rbx, rcx
jb 0x406772
jmp 0x406785
call fcn.004018b0
cmp qword [rbx + 0x10], rax
mov rdx, rax
jbe 0x406785
cmp byte [rdx + 0x11], 0x6c
mov rcx, rbx
jne 0x406764
add rsp, 0x20
pop rbx
jmp fcn.004018c0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x407a90
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.0040e770
sub rsp, rax
xor r8d, r8d
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
call fcn.00408da0
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x407ad1
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.00408b00
test rax, rax
mov rcx, rax
je 0x407ac6
cmp byte [rax], 0
je 0x407ac6
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x407b70
Capabilities:
Set environment variable

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