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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 0x118]
mov rbp, rcx
mov r12, rdx
test rax, rax
je 0x14003f247
xor ecx, ecx
nop dword [rax + rax]
mov rax, qword [rax + 0x20]
mov rdx, rcx
add rcx, 1
test rax, rax
jne 0x14003f0b0
shl rdx, 5
add rdx, 0x30
mov ecx, 1
call sym.xcalloc
mov rbx, qword [rbp + 0x118]
mov qword [rax], 0
mov rsi, rax
mov byte [rax + 8], 0
test rbx, rbx
je 0x14003f251
xor edi, edi
lea r13, [0x1400f5efc]
jmp 0x14003f136
mov rax, rdi
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x28]
shl rax, 5
lea r8, [rsi + rax + 0x18]
call sym.md5_buffer
mov rax, qword [rbx + 0x60]
shl rdi, 5
mov qword [rsi + rdi + 0x10], rax
mov rdi, qword [rsi]
mov rbx, qword [rbx + 0x20]
test rbx, rbx
je 0x14003f1d0
test byte [rbx + 0x8a], 2
jne 0x14003f129
mov eax, dword [rbx + 0x84]
test eax, eax
jne 0x14003f129
cmp word [rbx + 0x88], 0
je 0x14003f129
lea rdx, [rdi + 1]
mov qword [rsi], rdx
movzx eax, byte [rbx + 0x8a]
shl rdx, 5
and eax, 1
mov byte [rsi + rdx + 8], al
or byte [rsi + 8], al
test byte [rbx + 0x8a], 4
jne 0x14003f100
mov rcx, rbx
mov r15d, dword [rbx + 0x80]
call sym.open_file__cpp_file_
mov r14d, eax
test al, al
je 0x14003f22c
mov ecx, dword [rbx + 0x80]
mov rdx, r13
call sym.fdopen_unlocked
mov r14, rax
mov rax, rdi
shl rax, 5
mov rcx, r14
lea rdx, [rsi + rax + 0x18]
call sym.md5_stream
mov rcx, r14
call sym.fclose
mov dword [rbx + 0x80], r15d
jmp 0x14003f119
mov rax, rdi
shl rax, 5
lea rbx, [rax + 0x10]
lea rcx, [rsi + 0x10]
lea r9, [sym.pchf_save_compare_void_const__void_const_]
mov r8d, 0x20
mov rdx, rdi
call sym.qsort
mov rcx, rsi
mov r9, r12
mov rdx, rbx
mov r8d, 1
call sym.fwrite
mov rcx, rsi
cmp rax, 1
sete r14b
call sym.free
mov eax, r14d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call sym.open_file_failed_cpp_reader___cpp_file__int__unsigned_int_
mov rcx, rsi
call sym.free
jmp 0x14003f218
mov edx, 0x10
jmp 0x14003f0c8
mov ebx, 0x10
xor edi, edi
jmp 0x14003f1db

Function at 0x14003f260
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov r8d, 1
mov r9, rdx
mov rbx, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sym.fread
mov rdx, rax
xor eax, eax
cmp rdx, 1
je 0x14003f298
add rsp, 0x50
pop rbx
ret
mov rax, qword [rsp + 0x20]
shl rax, 5
lea rcx, [rax + 0x10]
call sym.xmalloc
movdqa xmm0, xmmword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov r9, rbx
lea rcx, [rax + 0x10]
mov edx, 0x20
mov qword [0x140111f60], rax
movups xmmword [rax], xmm0
call sym.fread
cmp qword [rsp + 0x20], rax
sete al
add rsp, 0x50
pop rbx
ret
Function at 0x140040550
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp byte [rcx + 0x4d3], 0
mov rbx, rcx
mov rsi, rdx
je 0x140040578
jmp 0x1400405a8
mov rcx, rbx
call sym._cpp_pop_buffer
cmp qword [rbx], 0
jne 0x140040570
test rsi, rsi
je 0x140040594
mov r8d, 0x48
mov rdx, rsi
mov rcx, rbx
call sym.deps_write_cpp_reader_const___iobuf__unsigned_int_
cmp byte [rbx + 0x4bf], 0
jne 0x1400405c0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, qword [sym._cpp_warn_if_unused_macro]
xor r8d, r8d
call sym.cpp_forall_identifiers_cpp_reader__int____cpp_reader__cpp_hashnode__void___void_
jmp 0x140040578
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp sym._cpp_report_missing_guards

Function at 0x1400420c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rax, [0x1400f75c0]
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 0x140042110
cmp edx, 2
je 0x1400421c0
test edx, edx
je 0x140042180
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi + 0x10]
mov edx, dword [rax + 8]
mov rbp, qword [rax]
test edx, edx
je 0x1400420ff
xor ebx, ebx
lea r12, [rsp + 0x26]
jmp 0x14004214f
mov rax, qword [rax]
mov rdx, rdi
movzx ecx, byte [rax + rbx]
call sym.fputc
mov rax, qword [rsi + 0x10]
add rbx, 1
mov edx, dword [rax + 8]
cmp rbx, rdx
jae 0x1400420ff
lea rdx, [rbp + rbx]
cmp byte [rdx], 0
jns 0x140042130
mov rcx, r12
call sym.utf8_to_ucn_unsigned_char__unsigned_char_const_
mov r9, rdi
mov edx, 1
mov rcx, r12
mov r8d, 0xa
lea rbx, [rbx + rax - 1]
call sym.fwrite
jmp 0x14004213f
movzx edx, word [rsi + 8]
test dl, 2
jne 0x140042200
and edx, 0x10
jne 0x140042110
mov rbx, qword [rax + 8]
movzx ecx, byte [rbx]
nop dword [rax]
mov rdx, rdi
add rbx, 1
call sym.putc
movzx ecx, byte [rbx]
test ecx, ecx
jne 0x140042198
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp r8b, 0x45
je 0x140042220
mov rcx, qword [rsi + 0x18]
mov r8d, dword [rsi + 0x10]
mov r9, rdi
mov edx, 1
call sym.fwrite
cmp byte [rsi + 4], 0x45
jne 0x1400420ff
mov rdx, rdi
mov ecx, 0x22
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fputc
sub r8d, 0x26
lea rax, [0x1400f7b40]
movsxd r8, r8d
mov rbx, qword [rax + r8*8]
jmp 0x140042192
mov rdx, rdi
mov ecx, 0x22
call sym.fputc
jmp 0x1400421c6
Function at 0x14004e040
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 + 0x4d9]
mov rsi, rcx
mov rbx, rdx
test eax, eax
je 0x14004e069
cmp qword [rdx + 8], 0
je 0x14004e080
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp byte [rcx + 0x4c6], 0
mov byte [rcx + 0x4c6], 0
mov ecx, 0x800
setne r13b
call sym.xmalloc
mov qword [rbx + 8], rax
cmp byte [rsi + 0x4d9], 0
jne 0x14004e230
mov eax, dword [rbx + 0x18]
mov r12, qword [rbx]
lea ebp, [rax + 1]
test dil, dil
je 0x14004e1f0
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r12
mov r9, qword [rbx + 0x20]
call sym.push_extended_tokens_context_cpp_reader__cpp_hashnode___cpp_buff__unsigned_int__cpp_token_const__unsigned_int_
cmp byte [rsi + 0x23], 0
mov edi, 0x100
mov byte [rsi + 0x23], 1
lea rbp, [rsp + 0x3c]
mov edx, dword [rbx + 0x1c]
setne r12b
jmp 0x14004e11e
test rcx, rcx
je 0x14004e1c8
mov r9, qword [rbx + 0x28]
mov qword [rcx + r8*8], rax
lea r9, [r9 + r8*4]
test r9, r9
je 0x14004e118
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 0x14004e148
mov rcx, qword [rbx + 8]
mov rdx, r14
shl rdx, 4
call sym.xrealloc
mov qword [rbx + 8], rax
cmp byte [rsi + 0x4d9], 0
jne 0x14004e180
lea rdi, [r14 + r14]
mov rdx, rbp
mov rcx, rsi
call sym.cpp_get_token_1_cpp_reader__unsigned_int_
cmp byte [rax + 4], 0x16
je 0x14004e1a0
mov r8d, dword [rbx + 0x1c]
cmp byte [rsi + 0x4d9], 0
mov r10d, dword [rsp + 0x3c]
mov rcx, qword [rbx + 8]
mov rdx, r8
jne 0x14004e0f8
test rcx, rcx
je 0x14004e1c8
mov qword [rcx + r8*8], rax
jmp 0x14004e118
mov rcx, qword [rbx + 0x28]
lea rdx, [r14*8]
test rcx, rcx
je 0x14004e1d8
call sym.xrealloc
mov qword [rbx + 0x28], rax
jmp 0x14004e144
mov rcx, rsi
call sym._cpp_pop_context
mov byte [rsi + 0x4c6], r13b
mov byte [rsi + 0x23], r12b
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 sym.xmalloc
mov qword [rbx + 0x28], rax
jmp 0x14004e144
mov rax, qword [rsi + 0x88]
mov rax, qword [rax]
test rax, rax
je 0x14004e243
pxor xmm0, xmm0
lea rdx, [r12 + rbp*8]
mov qword [rsi + 0x88], rax
movq xmm1, rdx
movups xmmword [rax + 0x20], xmm0
movq xmm0, r12
punpcklqdq xmm0, xmm1
mov dword [rax + 0x30], 0
movups xmmword [rax + 0x10], xmm0
jmp 0x14004e0d9
mov ecx, 0x400
call sym.xmalloc
mov qword [rbx + 0x28], rax
jmp 0x14004e0ad
mov ecx, 0x38
call sym.xmalloc
mov rdx, qword [rsi + 0x88]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x30], 0
mov qword [rax + 8], rdx
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rdx], rax
jmp 0x14004e1ff
Function at 0x14004ffd0
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 0x140050070
mov rcx, rbx
call sym.strlen
mov rsi, rax
mov r12d, eax
test edi, edi
je 0x14005001d
test r13d, r13d
jne 0x140050040
lea r12d, [rdi + 1]
mov rdx, rbp
mov ecx, 0x20
add r12d, esi
call sym.fputc
mov rdx, rbp
mov rcx, rbx
call sym.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 0x140050009
mov r9, rbp
mov r8d, 3
mov edx, 1
mov r12d, 1
lea rcx, [0x1400f8980]
call sym.fwrite
jmp 0x14005000d
mov rdx, qword [rsp + 0x88]
call sym.munge_char_const__char_const_
mov rbx, rax
jmp 0x14004fff2
Function at 0x140050a90
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r8d, 1
mov eax, dword [rcx + 0x18]
lea r12, [rsp + 0x28]
mov rsi, rcx
mov rbp, rdx
mov r9, rdx
mov rcx, r12
mov edx, 8
mov qword [rsp + 0x28], rax
call sym.fwrite
cmp rax, 1
jne 0x140050b31
mov eax, dword [rsi + 0x18]
xor ebx, ebx
test eax, eax
jne 0x140050b01
jmp 0x140050b48
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsp + 0x28]
mov r9, rbp
mov r8d, 1
mov rcx, qword [rax + rdi*8]
call sym.fwrite
cmp rax, 1
jne 0x140050b31
add ebx, 1
cmp ebx, dword [rsi + 0x18]
jae 0x140050b48
mov rax, qword [rsi + 0x10]
mov edi, ebx
mov rcx, qword [rax + rdi*8]
call sym.strlen
mov r9, rbp
mov edx, 8
mov rcx, r12
mov r8d, 1
mov qword [rsp + 0x28], rax
call sym.fwrite
cmp rax, 1
je 0x140050ad8
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140050b60
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [rsp + 0x28]
mov r14, rcx
mov rdi, rdx
mov rbp, r8
mov r9, rdx
mov r8d, 1
mov edx, 8
mov rcx, r13
call sym.fread
cmp rax, 1
jne 0x140050c70
mov rax, qword [rsp + 0x28]
mov esi, eax
test eax, eax
je 0x140050c84
xor r12d, r12d
xor ebx, ebx
jmp 0x140050bf0
mov r9, rdi
mov edx, 1
mov rcx, rbx
call sym.fread
cmp rax, qword [rsp + 0x28]
jne 0x140050c68
mov byte [rbx + rax], 0
test rbp, rbp
je 0x140050beb
mov rdx, rbp
mov rcx, rbx
call sym.filename_cmp
test eax, eax
jne 0x140050c38
sub esi, 1
je 0x140050c48
mov r9, rdi
mov r8d, 1
mov edx, 8
mov rcx, r13
call sym.fread
cmp rax, 1
jne 0x140050c70
mov r8, qword [rsp + 0x28]
cmp r8, r12
jb 0x140050bb8
lea r12, [r8 + 0x200]
mov rcx, rbx
mov rdx, r12
call sym.xrealloc
mov r8, qword [rsp + 0x28]
mov rbx, rax
jmp 0x140050bb8
mov rdx, rbx
mov rcx, r14
call sym.deps_add_dep_mkdeps__char_const_
sub esi, 1
jne 0x140050bf0
mov rcx, rbx
call sym.free
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rbx
call sym.free
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ebx, ebx
jmp 0x140050c48
Function at 0x140054a40
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
xor r8d, r8d
mov ecx, edi
mov rsi, r9
call sym.lseek64
test rax, rax
js 0x140054b20
mov r9, qword [rsp + 0x88]
mov rdx, rsi
mov r8, r13
mov rcx, rbx
call sym.backtrace_alloc
mov qword [rbp + 8], rax
mov rdx, rax
test rax, rax
je 0x140054af6
mov qword [rbp], rax
mov r12d, esi
xor ebx, ebx
mov qword [rbp + 0x10], rsi
test rsi, rsi
jne 0x140054abe
jmp 0x140054b05
je 0x140054b00
add rbx, rax
cmp rbx, rsi
jae 0x140054b05
mov rdx, qword [rbp + 8]
mov r8d, r12d
mov ecx, edi
sub r8d, ebx
call sym.read
cdqe
test rax, rax
jns 0x140054ab0
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x88]
lea rdx, [0x1400f90c6]
mov r8d, dword [rax]
call r13
mov rcx, qword [rbp + 8]
call sym.free
xor eax, eax
jmp 0x140054b0a
cmp rbx, rsi
jb 0x140054b40
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x88]
lea rdx, [0x1400f90c0]
mov r8d, dword [rax]
call r13
xor eax, eax
jmp 0x140054b0a
mov rcx, qword [rsp + 0x88]
xor r8d, r8d
lea rdx, [0x1400f90cb]
call r13
mov rcx, qword [rbp + 8]
call sym.free
xor eax, eax
jmp 0x140054b0a
Function at 0x140065570
Capabilities:
Read file on windows

Disassembly:
push r13
mov eax, 0x1118
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14007a830
sub rsp, rax
movdqa xmm0, xmmword [0x1400fb460]
mov ebp, 0x1000
mov rdi, rcx
mov r13, rdx
movaps xmmword [rsp + 0x20], xmm0
lea r12, [rsp + 0x20]
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
lea rcx, [rsi + rbx]
mov r9, rdi
mov edx, 1
sub r8, rbx
call sym.fread
add rbx, rax
cmp rbx, 0xfff
ja 0x140065628
test rax, rax
jne 0x1400655c8
mov rcx, rdi
call sym.ferror
mov edi, eax
test eax, eax
jne 0x14006564f
lea rbp, [rsp + 0x20]
test rbx, rbx
jne 0x14006563f
mov rdx, r13
mov rcx, rbp
call sym.md5_finish_ctx
mov eax, edi
add rsp, 0x1118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rax, rax
je 0x1400655f0
mov r8, r12
mov edx, 0x1000
mov rcx, rsi
call sym.md5_process_block
jmp 0x1400655c0
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call sym.md5_process_bytes
jmp 0x140065608
mov edi, 1
jmp 0x140065613
Function at 0x140067540
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x1401121b0]
test rax, rax
je 0x140067560
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edx, edx
xor ecx, ecx
call rsi
mov ebx, eax
test eax, eax
jne 0x140067590
mov rax, qword [0x1401121b0]
test rax, rax
je 0x1400675c0
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, eax
call sym.xmalloc
mov ecx, ebx
mov qword [0x1401121b0], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x140067573
mov rcx, qword [0x1401121b0]
call sym.free
mov qword [0x1401121b0], 0
lea rcx, [0x1400fb868]
call sym.xstrdup
mov qword [0x1401121b0], rax
jmp 0x140067552

Function at 0x1400686c0
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov edx, dword [rcx + 0x18]
mov rbx, rcx
test edx, edx
jle 0x1400686da
mov rax, qword [rcx + 0x80]
call qword [rax + 0x18]
mov edx, dword [rbx + 0x2c]
test edx, edx
jle 0x1400686ee
mov rax, qword [rbx + 0x80]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400686fc
call sym.fclose
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x14006870a
call sym.fclose
cmp qword [rbx + 0x40], 0
je 0x1400687a0
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x140068790
mov rcx, qword [rbx + 0x38]
call sym.free
mov rcx, qword [rbx + 0x40]
call sym.free
mov rcx, qword [rbx + 0x48]
call sym.free
mov eax, dword [rbx + 0x70]
test eax, eax
jle 0x14006876c
xor esi, esi
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
call sym.remove
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
add rsi, 1
call sym.free
cmp dword [rbx + 0x70], esi
jg 0x140068740
mov rcx, qword [rbx + 0x78]
call sym.free
mov rax, qword [rbx + 0x80]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x140068781
mov rcx, rbx
call rax
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp sym.free
mov rcx, qword [rbx + 0x20]
call sym.free
jmp 0x14006871c
and dword [rbx], 0xfffffffe
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x28]
mov rcx, rbx
mov edx, 1
call sym.pex_get_status_and_time
jmp 0x140068715
Function at 0x1400698d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, r8
xor r8d, r8d
mov edi, ecx
mov rbx, r9
call sym.lseek64
mov rbp, qword [sym.imp.msvcrt.dll__errno]
test rax, rax
jns 0x14006990f
jmp 0x140069970
add rsi, rax
sub rbx, rax
test rbx, rbx
je 0x140069990
mov r8d, ebx
mov rdx, rsi
mov ecx, edi
call sym.read
cdqe
test rax, rax
je 0x140069948
jg 0x140069900
call rbp
cmp dword [rax], 4
je 0x140069906
mov rax, qword [rsp + 0x70]
lea rdi, str.read
mov qword [rax], rdi
call rbp
mov eax, dword [rax]
jmp 0x14006995e
test rbx, rbx
je 0x140069990
mov rax, qword [rsp + 0x70]
lea rdi, str.file_too_short
mov qword [rax], rdi
xor eax, eax
mov rdx, qword [rsp + 0x78]
mov dword [rdx], eax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0x70]
lea rdi, str.lseek
mov qword [rax], rdi
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
jmp 0x14006995e
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14006f510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x50
mov rax, rcx
mov ecx, edx
mov rdx, r8
movzx ebx, word [rax]
cmp bx, 0xdf01
je 0x14006f532
cmp bx, 0xf701
jne 0x14006f5c0
mov rax, qword [rsp + 0x88]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call sym.simple_object_internal_read
test eax, eax
je 0x14006f5dd
mov ecx, 0x20
call sym.xmalloc
mov edx, ebx
rol dx, 8
mov word [rax], dx
movzx edx, word [rsp + 0x32]
rol dx, 8
mov word [rax + 2], dx
cmp bx, 0xf701
je 0x14006f5e8
mov edx, dword [rsp + 0x38]
bswap edx
mov ebx, edx
mov edx, dword [rsp + 0x3c]
mov qword [rax + 8], rbx
bswap edx
mov dword [rax + 0x10], edx
movzx edx, word [rsp + 0x40]
rol dx, 8
movzx edx, dx
add rdx, 0x14
mov qword [rax + 0x18], rdx
add rsp, 0x50
pop rbx
ret
mov rax, qword [rsp + 0x80]
mov qword [rax], 0
mov rax, qword [rsp + 0x88]
mov dword [rax], 0
xor eax, eax
add rsp, 0x50
pop rbx
ret
mov rdx, qword [rsp + 0x38]
bswap rdx
mov qword [rax + 8], rdx
mov edx, dword [rsp + 0x44]
bswap edx
mov dword [rax + 0x10], edx
movzx edx, word [rsp + 0x40]
rol dx, 8
movzx edx, dx
add rdx, 0x18
jmp 0x14006f5ac

Function at 0x140079b30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140079ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140112314]
mov rbx, rcx
test esi, esi
jle 0x140079cd0
mov rax, qword [0x140112318]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140079beb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140079c75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140079bd0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140079cf2
mov rax, qword [0x140112318]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140112318]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140079cd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140079c6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140079c80
add dword [0x140112314], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140112318]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140079c6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140079bf8
mov rax, qword [0x140112318]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14007a1c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140112380]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140112360]
test rbx, rbx
je 0x14007a21c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14007a213
test rsi, rsi
je 0x14007a213
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14007a1f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14007a430
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14007a448
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14007a450
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14007a460
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14007a4ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14007a4a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14007a4af
add rax, 0x28
cmp rax, r9
jne 0x14007a490
xor eax, eax
ret

Function at 0x14007a4b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14007a540
mov rdx, qword [0x1400ff330]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14007a52e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14007a52e
cmp word [rax + 0x18], 0x20b
jne 0x14007a52e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14007a540
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14007a519
add rbx, 0x28
cmp rbx, rdi
je 0x14007a540
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14007a510
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14007a550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ff330]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14007a570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14007a578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14007a570
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14007a5cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14007a5c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14007a570
add rax, 0x28
cmp rax, r9
jne 0x14007a5b0
xor eax, eax
ret

Function at 0x14007a5d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ff330]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14007a5ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14007a5f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14007a5ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14007a610
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400ff330]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14007a630
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14007a638
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14007a630
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14007a680
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14007a677
test rcx, rcx
je 0x14007a630
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14007a668
xor eax, eax
ret