joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000df00
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rcx, str.GCC_COLORS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
mov rbp, rax
je 0x14000de3c
movzx r14d, byte [rax]
xor eax, eax
test r14b, r14b
je 0x14000de41
lea rdi, [rbp + 1]
xor r13d, r13d
xor esi, esi
xor r12d, r12d
jmp 0x14000dd30
test r12, r12
je 0x14000dd28
cmp r14b, 0x3b
je 0x14000dd28
sub r14d, 0x30
cmp r14b, 9
ja 0x14000de3c
nop dword [rax]
movzx r14d, byte [rdi]
add rdi, 1
lea rax, [rdi - 1]
test r14b, r14b
je 0x14000dd68
cmp r14b, 0x3a
je 0x14000dd68
cmp r14b, 0x3d
jne 0x14000dd08
cmp rax, rbp
je 0x14000de3c
test r12, r12
jne 0x14000de3c
sub rax, rbp
mov r12, rdi
mov rsi, rax
jmp 0x14000dd28
test r12, r12
mov rcx, qword [0x1400b5020]
je 0x14000de28
lea rbx, [0x1400b5020]
sub rax, r12
test rcx, rcx
mov r13, rax
je 0x14000ddbd
lea rbx, [0x1400b5020]
jmp 0x14000dda5
mov rcx, qword [rbx + 0x18]
add rbx, 0x18
test rcx, rcx
je 0x14000ddbd
movzx eax, byte [rbx + 0x10]
cmp rax, rsi
jne 0x14000dd98
mov r8, rsi
mov rdx, rbp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x14000dd98
test r12, r12
mov rcx, qword [rbx + 8]
je 0x14000de11
test rcx, rcx
je 0x14000de11
cmp byte [rbx + 0x11], 0
jne 0x14000de50
lea rcx, [r13 + 7]
call fcn.1400657f0
mov r8, r13
mov rdx, r12
mov rbp, rax
mov eax, 0x5b1b
mov word [rbp], ax
lea rcx, [rbp + 2]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rax, [rbp + r13 + 2]
mov qword [rbx + 8], rbp
mov dword [rax], 0x4b5b1b6d
mov byte [rax + 4], 0
mov byte [rbx + 0x11], 1
movzx r14d, byte [rdi - 1]
test r14b, r14b
je 0x14000de3c
mov rbp, rdi
xor r12d, r12d
jmp 0x14000dd28
sub rax, rbp
test rcx, rcx
mov rsi, rax
jne 0x14000dd8a
test r14b, r14b
jne 0x14000de16
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call fcn.140088000
jmp 0x14000ddd1
sub rsp, 0x38
cmp ecx, 1
je 0x14000df4f
cmp ecx, 2
jne 0x14000df30
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x14000df40
xor eax, eax
add rsp, 0x38
ret
test ecx, ecx
je 0x14000df26
jmp 0x1400b3340
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14000df26
add rsp, 0x38
jmp 0x14000dcc0

Function at 0x14000df60
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp ecx, 1
je 0x14000df88
and ecx, 0xfffffffd
jne 0x14000df80
xor edx, edx
mov eax, edx
add rsp, 0x28
ret
jmp 0x1400b3359
lea rcx, str.GCC_URLS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x14000dfd0
cmp byte [rax], 0
je 0x14000df6e
movzx edx, byte [rax]
cmp edx, 0x6e
je 0x14000dfc0
cmp edx, 0x73
jne 0x14000dfb1
cmp byte [rax + 1], 0x74
je 0x14000dfe8
mov edx, 2
jmp 0x14000df70
cmp byte [rax + 1], 0x6f
jne 0x14000dfa6
cmp byte [rax + 2], 0
je 0x14000df6e
jmp 0x14000dfa6
lea rcx, str.TERM_URLS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
jne 0x14000df99
jmp 0x14000dfb1
cmp byte [rax + 2], 0
mov edx, 1
je 0x14000df70
jmp 0x14000dfb1
Function at 0x140018490
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
mov rdi, rcx
mov rbp, rdx
mov rsi, r8
je 0x1400184fa
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
lea r13, [rsp + 0x3c]
mov rbx, r8
jmp 0x1400184c9
mov eax, dword [rsp + 0x3c]
sub rbx, rax
je 0x1400184fa
mov r8d, 0xffffffff
mov rdx, rsi
mov r9, r13
mov qword [rsp + 0x20], 0
cmp rbx, r8
mov rcx, rdi
cmovbe r8, rbx
sub rdx, rbx
add rdx, rbp
mov dword [rsp + 0x3c], r8d
call r12
test eax, eax
jne 0x1400184c0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14001d410
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x14001d430
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x14001d426
mov rcx, rbx
call fcn.14001d310
mov rax, qword [rbx + 0x30]
mov edx, 1
mov rcx, qword [rbx + 0x18]
mov r8, qword [rbx + 0x28]
mov r9, qword [rbx + 0x10]
add rcx, rax
sub r8, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rcx, qword [rbx + 0x10]
mov rsi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x14001d426
add qword [rbx + 0x30], rsi
test rsi, rsi
setne al
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140031d60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
movzx r12d, word [rdx + 0x4e]
and r12w, 0xf000
mov r13, rcx
mov rbp, rdx
cmp r12w, 0x3000
mov r15d, r8d
mov r14, r9
je 0x140031ea8
cmp r12w, 0x8000
mov ecx, 0x2010
mov esi, 0x2000
jne 0x140031dad
mov rsi, qword [rdx + 0x60]
lea rcx, [rsi + 0x10]
call fcn.1400657f0
xor ebx, ebx
mov rdi, rax
nop word [rax + rax]
mov ecx, dword [rbp + 0x80]
lea rdx, [rdi + rbx]
mov r8d, esi
sub r8d, ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
test rax, rax
jle 0x140031e00
add rbx, rax
cmp rsi, rbx
jne 0x140031dc0
cmp r12w, 0x8000
je 0x140031e02
add rsi, rsi
mov rcx, rdi
lea rdx, [rsi + 0x10]
call fcn.140065870
mov rdi, rax
jmp 0x140031dc0
jne 0x140031e80
cmp r12w, 0x8000
sete dl
test r13, r13
setne al
test dl, al
je 0x140031e1e
cmp rbx, rsi
jne 0x140031ed0
lea rax, [rbp + 0x60]
mov rdx, r14
mov rcx, r13
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea r9, [rsi + 0x10]
call fcn.140027f90
test rax, rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x8a]
setne cl
mov edx, ecx
shl edx, 2
and eax, 0xfffffffb
or eax, edx
mov byte [rbp + 0x8a], al
mov eax, ecx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r13, r13
je 0x140031e99
mov r8, qword [rbp + 8]
mov r9d, r15d
mov edx, 3
mov rcx, r13
call fcn.14002cf20
mov rcx, rdi
call fcn.140088000
xor ecx, ecx
jmp 0x140031e68
test rcx, rcx
je 0x140031ea1
mov rax, qword [rdx + 8]
lea r9, str._s_is_a_block_device
mov edx, 3
mov qword [rsp + 0x20], rax
call fcn.14002ce20
xor ecx, ecx
jmp 0x140031e68
mov rax, qword [rbp + 8]
lea r9, str._s_is_shorter_than_expected
mov r8d, r15d
xor edx, edx
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.14002ce20
jmp 0x140031e1e
Function at 0x140033640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12d, dword [rsp + 0x90]
cmp r9d, 3
mov rbx, rcx
mov rdi, rdx
mov ebp, r8d
mov esi, r9d
je 0x1400336b8
call fcn.1400321a0
test rax, rax
mov r8, rax
je 0x1400336a3
cmp esi, 4
mov dword [rsp + 0x28], r12d
mov r9d, ebp
mov rdx, rdi
sete al
sete r13b
mov rcx, rbx
movzx eax, al
add eax, eax
mov dword [rsp + 0x20], eax
call fcn.140032460
test rax, rax
jne 0x14003370a
test r13b, r13b
je 0x14003370a
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rcx + 0x1e8]
mov rax, qword [rcx + 0x1c0]
cmp rax, qword [rdx + 0x10]
je 0x1400336d3
mov dword [rax - 0x20], 0
mov r8d, ebp
mov r9d, 3
mov rdx, rdi
mov rcx, rbx
call fcn.1400321a0
test rax, rax
mov r8, rax
je 0x1400336a3
mov dword [rsp + 0x28], r12d
mov r9d, ebp
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x20], 0
call fcn.140032460
mov r9d, r12d
mov r8d, esi
mov rdx, rax
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140033010

Function at 0x140037740
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rax, [0x1401079a0]
movzx r8d, byte [rcx + 4]
mov rdi, rdx
movzx edx, r8b
mov rsi, rcx
shl rdx, 4
add rax, rdx
mov edx, dword [rax]
cmp edx, 1
je 0x140037800
cmp edx, 2
je 0x1400377c0
test edx, edx
jne 0x1400377ab
movzx edx, word [rsi + 8]
test dl, 2
jne 0x140037878
and edx, 0x10
jne 0x140037800
mov rbx, qword [rax + 8]
movzx ecx, byte [rbx]
nop dword [rax]
add rbx, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putc
movzx ecx, byte [rbx]
test ecx, ecx
jne 0x140037798
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp r8b, 0x45
je 0x140037890
mov rcx, qword [rsi + 0x18]
mov r9, rdi
mov edx, 1
mov r8d, dword [rsi + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp byte [rsi + 4], 0x45
jne 0x1400377ab
mov rdx, rdi
mov ecx, 0x22
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov rax, qword [rsi + 0x10]
mov edx, dword [rax + 8]
mov rbp, qword [rax]
test edx, edx
je 0x1400377ab
lea r12, [rsp + 0x26]
xor ebx, ebx
jmp 0x140037843
mov rax, qword [rax]
mov rdx, rdi
movzx ecx, byte [rax + rbx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov rax, qword [rsi + 0x10]
add rbx, 1
mov edx, dword [rax + 8]
cmp rbx, rdx
jae 0x1400377ab
lea rdx, [rbp + rbx]
cmp byte [rdx], 0
jns 0x140037820
mov rcx, r12
call fcn.140035bb0
mov r9, rdi
mov edx, 1
mov rcx, r12
lea rbx, [rbx + rax - 1]
mov r8d, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x14003782f
lea rax, [0x140107f20]
sub r8d, 0x26
movsxd r8, r8d
mov rbx, qword [rax + r8*8]
jmp 0x140037791
mov rdx, rdi
mov ecx, 0x22
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
jmp 0x1400377ca
Function at 0x140043a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rdx + 0x18]
movzx edi, byte [rcx + 0x501]
test eax, eax
mov rsi, rcx
mov rbx, rdx
je 0x140043a69
cmp qword [rdx + 8], 0
je 0x140043a80
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp byte [rcx + 0x4ee], 0
mov byte [rcx + 0x4ee], 0
mov ecx, 0x800
setne r12b
call fcn.1400657f0
mov qword [rbx + 8], rax
cmp byte [rsi + 0x501], 0
jne 0x140043c38
mov eax, dword [rbx + 0x18]
test dil, dil
mov r13, qword [rbx]
lea ebp, [rax + 1]
je 0x140043bf0
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r13
mov r9, qword [rbx + 0x20]
call fcn.140040900
cmp byte [rsi + 0x23], 0
mov edi, 0x100
mov byte [rsi + 0x23], 1
mov edx, dword [rbx + 0x1c]
lea rbp, [rsp + 0x3c]
setne r13b
jmp 0x140043b1e
test rcx, rcx
je 0x140043bc8
mov r9, qword [rbx + 0x28]
mov qword [rcx + r8*8], rax
lea r9, [r9 + r8*4]
test r9, r9
je 0x140043b18
mov dword [r9], r10d
mov edx, dword [rbx + 0x1c]
add edx, 1
mov dword [rbx + 0x1c], edx
lea r14d, [rdx + 1]
cmp rdi, r14
jae 0x140043b48
mov rcx, qword [rbx + 8]
mov rdx, r14
shl rdx, 4
call fcn.140065870
mov qword [rbx + 8], rax
cmp byte [rsi + 0x501], 0
jne 0x140043b80
lea rdi, [r14 + r14]
mov rdx, rbp
mov rcx, rsi
call fcn.140043230
cmp byte [rax + 4], 0x16
je 0x140043ba0
mov r8d, dword [rbx + 0x1c]
cmp byte [rsi + 0x501], 0
mov r10d, dword [rsp + 0x3c]
mov rcx, qword [rbx + 8]
mov rdx, r8
jne 0x140043af8
test rcx, rcx
je 0x140043bc8
mov qword [rcx + r8*8], rax
jmp 0x140043b18
mov rcx, qword [rbx + 0x28]
lea rdx, [r14*8]
test rcx, rcx
je 0x140043bd8
call fcn.140065870
mov qword [rbx + 0x28], rax
jmp 0x140043b44
mov rcx, rsi
call fcn.140041120
mov byte [rsi + 0x4ee], r12b
mov byte [rsi + 0x23], r13b
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [0], rax
ud2
mov rcx, rdx
call fcn.1400657f0
mov qword [rbx + 0x28], rax
jmp 0x140043b44
mov rax, qword [rsi + 0x88]
mov rdx, qword [rax]
test rdx, rdx
je 0x140043c4b
lea rax, [r13 + rbp*8]
mov qword [rsi + 0x88], rdx
pxor xmm0, xmm0
movq xmm1, rax
movups xmmword [rdx + 0x20], xmm0
movq xmm0, r13
punpcklqdq xmm0, xmm1
mov dword [rdx + 0x30], 0
movups xmmword [rdx + 0x10], xmm0
jmp 0x140043ad9
mov ecx, 0x400
call fcn.1400657f0
mov qword [rbx + 0x28], rax
jmp 0x140043aad
mov ecx, 0x38
call fcn.1400657f0
mov ecx, 7
mov rdx, rax
xor eax, eax
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rsi + 0x88]
mov qword [rdx + 8], rax
mov qword [rax], rdx
jmp 0x140043bff
Function at 0x1400459d0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [rsp + 0x80], 0
mov rbx, rcx
mov rbp, rdx
mov edi, r8d
mov r13d, r9d
jne 0x140045a70
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test edi, edi
mov rsi, rax
mov r12d, eax
je 0x140045a1d
test r13d, r13d
jne 0x140045a40
lea r12d, [rdi + 1]
mov rdx, rbp
mov ecx, 0x20
add r12d, esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov eax, r12d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea eax, [rdi + rax]
cmp r13d, eax
jae 0x140045a09
mov r9, rbp
mov r8d, 3
mov edx, 1
lea rcx, [0x140108c60]
mov r12d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x140045a0d
mov rdx, qword [rsp + 0x88]
call fcn.1400458a0
mov rbx, rax
jmp 0x1400459f2
Function at 0x14004a430
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
mov edi, edx
mov rbx, rcx
mov rdx, r8
mov ecx, edi
xor r8d, r8d
mov rsi, r9
call fcn.140082af0
test rax, rax
js 0x14004a510
mov r9, qword [rsp + 0x88]
mov rdx, rsi
mov r8, r13
mov rcx, rbx
call fcn.140048e10
test rax, rax
mov rdx, rax
mov qword [rbp + 8], rax
je 0x14004a4e6
xor ebx, ebx
test rsi, rsi
mov qword [rbp], rax
mov r12d, esi
mov qword [rbp + 0x10], rsi
jne 0x14004a4ae
jmp 0x14004a4f5
je 0x14004a4f0
add rbx, rax
cmp rbx, rsi
jae 0x14004a4f5
mov rdx, qword [rbp + 8]
mov r8d, r12d
mov ecx, edi
sub r8d, ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
test rax, rax
jns 0x14004a4a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0x88]
lea rdx, str.read
mov r8d, dword [rax]
call r13
mov rcx, qword [rbp + 8]
call fcn.140088000
xor eax, eax
jmp 0x14004a4fa
cmp rbx, rsi
jb 0x14004a530
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0x88]
lea rdx, str.lseek
mov r8d, dword [rax]
call r13
xor eax, eax
jmp 0x14004a4fa
mov rcx, qword [rsp + 0x88]
xor r8d, r8d
lea rdx, str.file_too_short
call r13
mov rcx, qword [rbp + 8]
call fcn.140088000
xor eax, eax
jmp 0x14004a4fa
Function at 0x14005c250
Capabilities:
Read file on windows

Disassembly:
push r13
mov eax, 0x1118
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400814f0
sub rsp, rax
movdqa xmm0, xmmword [0x14010b9e0]
mov ebp, 0x1000
movaps xmmword [rsp + 0x20], xmm0
lea r12, [rsp + 0x20]
mov rdi, rcx
mov r13, rdx
mov dword [rsp + 0x38], 0
lea rsi, [rsp + 0xc0]
mov qword [rsp + 0x30], 0
nop dword [rax + rax]
xor ebx, ebx
nop word [rax + rax]
mov r8, rbp
mov r9, rdi
mov edx, 1
lea rcx, [rsi + rbx]
sub r8, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add rbx, rax
cmp rbx, 0xfff
ja 0x14005c308
test rax, rax
jne 0x14005c2a8
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
mov edi, eax
jne 0x14005c32f
lea rbp, [rsp + 0x20]
test rbx, rbx
jne 0x14005c31f
mov rdx, r13
mov rcx, rbp
call fcn.14005bf00
mov eax, edi
add rsp, 0x1118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rax, rax
je 0x14005c2d0
mov r8, r12
mov edx, 0x1000
mov rcx, rsi
call fcn.14005b670
jmp 0x14005c2a0
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.14005bfb0
jmp 0x14005c2e8
mov edi, 1
jmp 0x14005c2f3
Function at 0x1400668e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x74]
test eax, eax
mov r12, rcx
je 0x1400668fd
cmp eax, 0xfffffffb
jne 0x140066ae6
mov eax, dword [r12 + 0x50]
test eax, eax
jne 0x1400669ca
mov edi, dword [r12 + 0x88]
test edi, edi
je 0x140066961
lea eax, [rdi - 1]
mov r8, qword [r12 + 0x30]
cmp eax, 6
mov rcx, qword [r12 + 0x80]
jbe 0x14006693f
lea r9, [rcx + 1]
mov rdx, r8
sub rdx, r9
cmp rdx, 0xe
ja 0x1400669e0
xor eax, eax
nop dword [rax]
movzx edx, byte [rcx + rax]
mov byte [r8 + rax], dl
add rax, 1
cmp rdi, rax
jne 0x140066948
mov edi, dword [r12 + 0x88]
mov esi, dword [r12 + 0x28]
xor ebx, ebx
mov rbp, qword [r12 + 0x30]
sub esi, edi
jmp 0x14006697e
add ebx, eax
cmp ebx, esi
jae 0x1400669b5
mov r8d, esi
mov edx, ebx
mov eax, 0x40000000
mov ecx, dword [r12 + 0x1c]
sub r8d, ebx
add rdx, rdi
add rdx, rbp
cmp r8d, eax
cmova r8d, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
test eax, eax
jg 0x140066978
jne 0x140066ac9
mov dword [r12 + 0x50], 1
mov rax, qword [r12 + 0x30]
add dword [r12 + 0x88], ebx
mov qword [r12 + 0x80], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 0xe
jbe 0x140066af0
mov edx, edi
xor eax, eax
shr edx, 4
shl rdx, 4
nop dword [rax]
movdqu xmm0, xmmword [rcx + rax]
movups xmmword [r8 + rax], xmm0
add rax, 0x10
cmp rax, rdx
jne 0x1400669f8
mov r11d, edi
mov eax, edi
and r11d, 0xfffffff0
mov r10d, r11d
sub eax, r11d
and edi, 0xf
lea rdx, [r8 + r10]
lea r9, [rcx + r10]
je 0x140066959
lea r11d, [rax - 1]
mov edi, eax
cmp r11d, 6
jbe 0x140066a58
mov rcx, qword [rcx + r10]
mov qword [r8 + r10], rcx
mov ecx, edi
and ecx, 0xfffffff8
mov r8d, ecx
sub eax, ecx
add rdx, r8
add r9, r8
and edi, 7
je 0x140066959
movzx ecx, byte [r9]
cmp eax, 1
mov byte [rdx], cl
je 0x140066959
movzx ecx, byte [r9 + 1]
cmp eax, 2
mov byte [rdx + 1], cl
je 0x140066959
movzx ecx, byte [r9 + 2]
cmp eax, 3
mov byte [rdx + 2], cl
je 0x140066959
movzx ecx, byte [r9 + 3]
cmp eax, 4
mov byte [rdx + 3], cl
je 0x140066959
movzx ecx, byte [r9 + 4]
cmp eax, 5
mov byte [rdx + 4], cl
je 0x140066959
movzx ecx, byte [r9 + 5]
cmp eax, 6
mov byte [rdx + 5], cl
je 0x140066959
movzx eax, byte [r9 + 6]
mov byte [rdx + 6], al
jmp 0x140066959
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov edx, 0xffffffff
mov rcx, r12
mov r8, rax
call fcn.1400667f0
mov eax, 0xffffffff
jmp 0x1400669cc
mov eax, edi
mov r9, rcx
mov rdx, r8
xor r10d, r10d
jmp 0x140066a37
Function at 0x140066e50
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov eax, dword [rbx + 0x44]
cmp eax, 1
je 0x140066ee0
cmp eax, 2
je 0x140066eb0
test eax, eax
je 0x140066e98
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140066e88
mov edx, dword [rbx + 0x50]
test edx, edx
je 0x140066e5a
mov eax, dword [rbx + 0x88]
test eax, eax
jne 0x140066e5a
nop word [rax + rax]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call fcn.140066b00
cmp eax, 0xffffffff
je 0x140066ed3
mov r8d, dword [rbx + 0x44]
test r8d, r8d
jne 0x140066e6b
jmp 0x140066e88
mov eax, dword [rbx + 0x28]
mov rcx, rbx
add eax, eax
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x38]
mov qword [rbx + 0x90], rax
call fcn.140066cf0
cmp eax, 0xffffffff
jne 0x140066e6b
mov eax, 0xffffffff
jmp 0x140066e8a
mov eax, dword [rbx + 0x28]
mov dword [rbx], 0
mov rdi, qword [rbx + 0x38]
lea esi, [rax + rax]
xor eax, eax
jmp 0x140066f00
add eax, dword [rbx]
cmp eax, esi
mov dword [rbx], eax
jae 0x140066f2b
lea rdx, [rdi + rax]
mov r8d, esi
mov ecx, dword [rbx + 0x1c]
sub r8d, eax
mov eax, 0x40000000
cmp r8d, eax
cmova r8d, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
test eax, eax
jg 0x140066ef8
jne 0x140066f38
mov dword [rbx + 0x50], 1
mov rax, qword [rbx + 0x38]
mov qword [rbx + 8], rax
jmp 0x140066e88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov edx, 0xffffffff
mov rcx, rbx
mov r8, rax
call fcn.1400667f0
jmp 0x140066ed3
Function at 0x140066f60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test r8, r8
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
je 0x140067122
mov r10d, dword [rcx + 0x70]
test r10d, r10d
jne 0x140066fe0
mov edx, dword [rbx]
xor ebp, ebp
nop
mov eax, 0xffffffff
mov r13d, edx
cmp rsi, rax
cmovbe rax, rsi
test edx, edx
mov r14d, eax
je 0x140067048
cmp edx, eax
mov rcx, rdi
cmovbe eax, edx
mov rdx, qword [rbx + 8]
mov r12d, eax
lea r15, [rdi + r12]
mov r8, r12
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add qword [rbx + 8], r12
sub dword [rbx], r12d
add qword [rbx + 0x10], r12
add rbp, r12
sub rsi, r12
mov rdi, r15
je 0x14006702f
mov edx, dword [rbx]
jmp 0x140066f90
mov rbp, qword [rcx + 0x68]
mov dword [rcx + 0x70], 0
test rbp, rbp
je 0x140066f8b
mov edx, dword [rbx]
test edx, edx
je 0x1400670f8
mov ecx, edx
xor r8d, r8d
cmp rbp, rcx
mov rax, rcx
jge 0x140067010
sub edx, ebp
mov eax, ebp
mov ecx, ebp
mov r8d, edx
add qword [rbx + 8], rcx
mov dword [rbx], r8d
add qword [rbx + 0x10], rax
sub rbp, rax
jne 0x140066ff0
mov edx, r8d
jmp 0x140066f8d
mov dword [rbx + 0x54], 1
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140067059
mov edx, dword [rbx + 0x88]
test edx, edx
je 0x140067028
mov ecx, dword [rbx + 0x44]
test ecx, ecx
je 0x140067130
mov edx, dword [rbx + 0x28]
add edx, edx
cmp eax, edx
jb 0x140067130
cmp ecx, 1
je 0x1400670bc
mov dword [rbx + 0x98], eax
mov rcx, rbx
mov qword [rbx + 0x90], rdi
call fcn.140066cf0
cmp eax, 0xffffffff
je 0x140067122
mov r12d, dword [rbx]
mov dword [rbx], 0
lea r15, [rdi + r12]
jmp 0x140066fcc
add r13d, eax
cmp r13d, r14d
jae 0x140067148
mov r8d, r14d
mov eax, 0x40000000
mov ecx, dword [rbx + 0x1c]
mov r12d, r13d
lea r15, [rdi + r12]
sub r8d, r13d
cmp r8d, eax
mov rdx, r15
cmova r8d, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
test eax, eax
jg 0x1400670b0
jne 0x140067154
mov dword [rbx + 0x50], 1
jmp 0x140066fcc
mov r9d, dword [rbx + 0x50]
test r9d, r9d
je 0x140067111
mov r8d, dword [rbx + 0x88]
test r8d, r8d
je 0x140066f8d
mov rcx, rbx
call fcn.140066e50
cmp eax, 0xffffffff
jne 0x140066ff0
xor ebp, ebp
jmp 0x14006702f
mov rcx, rbx
call fcn.140066e50
cmp eax, 0xffffffff
je 0x140067122
mov edx, dword [rbx]
jmp 0x140066f90
mov r12d, r13d
lea r15, [rdi + r12]
jmp 0x140066fcc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ebp, ebp
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
or edx, 0xffffffff
mov rcx, rbx
mov r8, rax
call fcn.1400667f0
jmp 0x14006702f