joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180a57058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180a571df
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 0x180a57089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a5706f
add dl, dl
jne 0x180a57096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a570f6
xor eax, eax
add dl, dl
jne 0x180a570a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a571ad
add dl, dl
jne 0x180a570b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a570c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a570d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a570dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a570ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a5707e
mov eax, 1
add dl, dl
jne 0x180a57106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a57113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a570fb
sub eax, ebx
mov ebx, 1
jne 0x180a5714c
mov ecx, 1
add dl, dl
jne 0x180a5712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a5713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a57123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a5707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a57168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a57175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a5715d
cmp eax, 0x7d00
jae 0x180a5719b
cmp eax, 0x500
jb 0x180a57196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a5707e
cmp eax, 0x7f
ja 0x180a5719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a5707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a571d2
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 0x180a5707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d4ac0]
mov dword [rax], 1
mov rax, qword [0x1400d4ad0]
mov dword [rax], 1
mov rax, qword [0x1400d4ae0]
mov dword [rax], 1
mov rax, qword [0x1400d4a60]
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 0x14004ebf0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400b2760
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14004ec99
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14004ec5e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14004ec50
test rax, rax
je 0x1400c365e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14004ec38
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14004ecc8
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14004ece0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14004ed81
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14004ed46
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14004ed38
test rax, rax
je 0x1400c3664
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14004ed20
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140065e30
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14004ebf0
test rax, rax
je 0x140065f70
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x140065eae
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140065ea0
test rax, rax
je 0x1400c3716
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x140065e90
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1400f18f8]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400d4bf0]
mov rbx, qword [rax + 0x1b8]
test rdx, rdx
je 0x140065fc8
mov r8, rbx
mov rcx, rsi
call fcn.140051690
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140062e60
sub qword [rbx], 1
jne 0x140065f59
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400f11c8]
lea rsi, [0x1400f11c8]
test bl, bl
je 0x140065f90
mov rax, qword [0x1400f11d0]
lea rsi, [0x1400f11d0]
test rax, rax
jne 0x140065f59
cmp byte [0x1400f13e2], 0
jne 0x140065fa6
movzx ecx, bl
call fcn.14002f700
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400f11e0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140065ff5
add qword [rax], 1
jmp 0x140065f59
mov rdx, qword [0x1400f1870]
mov rdi, qword [rax + 0x1a8]
test rdx, rdx
je 0x140066000
mov r8, rdi
mov rcx, rsi
call fcn.140051690
mov qword [0x1400f18f8], rax
mov rdx, rax
jmp 0x140065f23
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400cd42e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1400f1870], rax
mov rdx, rax
test rax, rax
je 0x1400c3716
jmp 0x140065fdb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python310.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x1400a81a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400f11b1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400a8228
lea rdx, [0x1400d09d2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400a8290
mov rbx, qword [0x1400f1068]
jmp 0x1400a81e5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400a81e0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400973e0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400f1068], rax
mov ebx, dword [rax]
mov qword [0x1400f1068], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400f1068], rdx
call fcn.1400a72d0
cmp eax, ebx
jne 0x1400a8317
mov byte [0x1400f11b1], 1
jmp 0x1400a81bc
cmp byte [0x1400f11b0], 0
jne 0x1400a81d3
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400f1ae8], rax
call rbx
mov qword [0x1400f1ae0], rax
call rbx
mov qword [0x1400f1ad8], rax
call rbx
mov qword [0x1400f1ad0], rax
call rbx
mov qword [0x1400f1ac8], rax
call rbx
mov qword [0x1400f1ac0], rax
call rbx
mov qword [0x1400f1ab8], rax
call rbx
mov byte [0x1400f11b0], 1
mov qword [0x1400f1ab0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400f1060], rax
jmp 0x1400a81d3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400b1440
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400c2bc0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400c2bc0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400b2112
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400f1fa8]
test eax, eax
je 0x1400b21aa
lea rax, [0x1400f1f80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400f1fb0]
mov qword [rbp - 8], rax
jmp 0x1400b218e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400b2182
cmp qword [rbp - 0x10], 0
je 0x1400b2182
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400b2148
lea rax, [0x1400f1f80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400b21ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400b22b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400b22d8
mov eax, 0
jmp 0x1400b2326
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 0x1400b2301
mov eax, 0
jmp 0x1400b2326
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400b2321
mov eax, 0
jmp 0x1400b2326
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400b232c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400b23aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400b23a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400b23a1
mov rax, qword [rbp - 8]
jmp 0x1400b23bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400b2374
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x142f99cb4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x142f99cbe
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x142f99ce7
pop rbp
sub rbp, 0x33
sub rbp, 0x2f99cb4
sub rsp, 0x20
add cl, byte [rax - 0x7f]
in al, dx
and byte [rax], al
add byte [rax], al
jmp 0x142f99d06
add byte [rax], al
add byte [rdx], dl
adc eax, 0xc748f82c
sal byte [rsp + rbx*4 + 0x14802f9], 0xe8
mov rax, 0x2f99cb4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x34208ae0
xor byte [rax], dl
inc rax
dec rcx
dec ecx
jne 0x142f99d25
jmp 0x142f99d3c
add byte [rax], al
add byte [rdi - 0x57cb4d2b], bh
imul ecx, dword [rcx], 0xe0dc696b
test al, 0x69
or dword [rbx + 0x69], ebp
fsubr st(0), st(0)
loopne 0x142f99d25
test al, 0x61
and eax, ebp
loope 0x142f99d2b
loopne 0x142f99cf5
loope 0x142f99d58
test al, 0x27
and bh, ah
loopne 0x142f99d35
loopne 0x142f99cff
invalid
and cl, al
loopne 0x142f99d3c
loopne 0x142f99d06
invalid
Function at 0x18070a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18070a1df
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 0x18070a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18070a06f
add dl, dl
jne 0x18070a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18070a0f6
xor eax, eax
add dl, dl
jne 0x18070a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18070a1ad
add dl, dl
jne 0x18070a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18070a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18070a07e
mov eax, 1
add dl, dl
jne 0x18070a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18070a0fb
sub eax, ebx
mov ebx, 1
jne 0x18070a14c
mov ecx, 1
add dl, dl
jne 0x18070a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18070a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18070a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18070a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18070a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18070a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18070a15d
cmp eax, 0x7d00
jae 0x18070a19b
cmp eax, 0x500
jb 0x18070a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18070a07e
cmp eax, 0x7f
ja 0x18070a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18070a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18070a1d2
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 0x18070a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007290
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov edx, 1
mov r9, rcx
mov r8d, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400072ce
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nError:_fread_return_a_number_of_element_different_from_the_expected._n
call fcn.140002170
xor al, al
add rsp, 0x28
ret
movzx eax, byte [rsp + 0x38]
add rsp, 0x28
ret

Function at 0x1400072e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, edx
mov rbx, rcx
mov edx, 1
mov r9, rcx
mov r8d, edx
lea rcx, [rsp + 0x21]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x140007331
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nError:_fread_return_a_number_of_element_different_from_the_expected._n
call fcn.140002170
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x14000730a
mov edx, 1
lea rcx, [rsp + 0x58]
mov r8d, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x14000730a
mov edx, 1
lea rcx, [rsp + 0x50]
mov r8d, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x14000730a
test edi, edi
je 0x1400073b4
movzx eax, byte [rsp + 0x58]
movzx ecx, byte [rsp + 0x20]
shl ecx, 0x10
shl eax, 8
add eax, ecx
movzx ecx, byte [rsp + 0x21]
shl ecx, 0x18
add eax, ecx
movzx ecx, byte [rsp + 0x50]
add eax, ecx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
movzx eax, byte [rsp + 0x50]
movzx ecx, byte [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
shl ecx, 0x10
shl eax, 0x18
add eax, ecx
movzx ecx, byte [rsp + 0x20]
shl ecx, 8
add eax, ecx
movzx ecx, byte [rsp + 0x21]
add eax, ecx
add rsp, 0x30
pop rdi
ret

Function at 0x1400073f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, 1
mov r9, rcx
mov r8d, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x140007441
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nError:_fread_return_a_number_of_element_different_from_the_expected._n
call fcn.140002170
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 1
lea rcx, [rsp + 0x40]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x14000741a
mov ecx, 0x100
test ebx, ebx
je 0x140007480
movzx eax, byte [rsp + 0x48]
imul eax, ecx
movzx ecx, byte [rsp + 0x40]
add ax, cx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
imul eax, ecx
movzx ecx, byte [rsp + 0x48]
add ax, cx
add rsp, 0x20
pop rdi
ret
Function at 0x140007800
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140014098]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xc0]
mov rsi, r9
mov rbx, r8
mov r15, rdx
mov rdi, rcx
test rdx, rdx
je 0x14000787a
test rbx, rbx
je 0x14000787a
test r9, r9
je 0x14000787a
test r14, r14
je 0x14000787a
mov edx, 0x12
mov r9, rcx
lea rcx, [rsp + 0x28]
lea r8d, [rdx - 0x11]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x140007881
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nError:_fread_return_a_number_of_element_different_from_the_expected._n
call fcn.140002170
xor eax, eax
jmp 0x140007929
movzx eax, byte [rsp + 0x38]
movzx ecx, byte [rsp + 0x35]
movzx edx, byte [rsp + 0x2f]
movzx r8d, byte [rsp + 0x39]
mov dword [r15], eax
movzx eax, byte [rsp + 0x34]
shl ecx, 8
or ecx, eax
mov qword [rsp + 0x68], rbp
movzx eax, byte [rsp + 0x36]
movzx ebp, byte [rsp + 0x2a]
mov dword [rbx], ecx
movzx ecx, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov qword [rsp + 0x60], r12
movzx eax, byte [rsp + 0x28]
movzx r12d, byte [rsp + 0x2e]
mov qword [rsp + 0x58], r13
movzx r13d, byte [rsp + 0x2d]
mov word [rsp + 0x22], dx
mov byte [rsp + 0x20], r8b
mov dword [rsi], ecx
test al, al
je 0x140007993
movzx esi, al
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140007942
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.tga_readheader:_memory_out_n
call fcn.140002170
xor eax, eax
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000cdb0
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x14000797f
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nError:_fread_return_a_number_of_element_different_from_the_expected._n
call fcn.140002170
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140007918
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx edx, word [rsp + 0x22]
movzx r8d, byte [rsp + 0x20]
cmp bpl, 8
jbe 0x1400079b3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Sorry__compressed_tga_files_are_not_currently_supported._n
jmp 0x140007913
movzx eax, r8b
shr eax, 5
not eax
movzx ebx, r12b
and eax, 1
shl ebx, 8
mov dword [r14], eax
movzx eax, r13b
or ebx, eax
movzx eax, dx
shr eax, 3
imul ebx, eax
test ebx, ebx
je 0x140007a07
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.File_contains_a_palette___not_yet_supported.
call fcn.140002170
mov r8d, 1
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, 1
jmp 0x14000791a