joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400038c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [0x140023900], 1
mov r8d, dword [0x14002af08]
sbb eax, eax
and eax, 0xffffffc4
or r8d, 0x3000
lea r9d, [rax + 0x40]
mov rdx, rcx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test eax, 0xfff
je 0x140003960
lea rcx, [0x140024245]
call sym.GC_default_on_abort.lto_priv.0
mov rdi, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rdi
mov rax, qword [0x14002b050]
cmp rax, 0x3ff
ja 0x140003990
lea rdx, [rax + 1]
add qword [0x14002af80], rsi
cmp dword [0x14002af0c], 2
mov qword [0x14002b050], rdx
lea rdx, [0x14002af40]
mov qword [rdx + rax*8 + 0x163e0], rbx
je 0x1400039b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp qword [0x14002b050], 0x3ff
jbe 0x14000397f
lea rcx, [0x14002425d]
call sym.GC_default_on_abort.lto_priv.0
call qword [sym.imp.KERNEL32.dll_DebugBreak]
test rbx, rbx
je 0x14000394b
mov rax, qword [0x14002b050]
jmp 0x140003921
lea rcx, [0x14002425d]
call sym.GC_default_on_abort.lto_priv.0
call rdi
mov rax, qword [0x14002b050]
jmp 0x140003921
mov edx, esi
lea rcx, [0x140024274]
call sym.GC_log_printf
jmp 0x14000394b

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [0x14002afc0]
mov rax, qword [0x14002afd0]
sub rax, rsi
cmp rcx, 0xffffffffffffffef
ja 0x140003b10
lea rbx, [rcx + 0xf]
and rbx, 0xfffffffffffffff0
cmp rax, rbx
jae 0x140003aae
cmp rbx, 0xffff
ja 0x140003af7
cmp dword [0x140023900], 1
mov r8d, dword [0x14002af08]
mov edx, 0x10000
sbb eax, eax
xor ecx, ecx
and eax, 0xffffffc4
or r8d, 0x3000
lea r9d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test eax, 0xfff
je 0x140003ac3
lea rcx, [0x140024245]
call sym.GC_default_on_abort.lto_priv.0
mov rdi, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rdi
mov rax, qword [0x14002b050]
cmp rax, 0x3ff
jbe 0x140003a72
lea rcx, [0x14002425d]
call sym.GC_default_on_abort.lto_priv.0
call rdi
mov rax, qword [0x14002b050]
add qword [0x14002af80], 0x10000
lea rdx, [rax + 1]
cmp dword [0x14002af0c], 2
mov qword [0x14002b050], rdx
lea rdx, [0x14002af40]
mov qword [rdx + rax*8 + 0x163e0], rsi
je 0x140003b1f
lea rax, [rsi + 0x10000]
mov qword [0x14002afd0], rax
add rbx, rsi
mov rax, rsi
mov qword [0x14002afc0], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp qword [0x14002b050], 0x3ff
jbe 0x140003ae2
lea rcx, [0x14002425d]
call sym.GC_default_on_abort.lto_priv.0
call qword [sym.imp.KERNEL32.dll_DebugBreak]
test rsi, rsi
jne 0x140003b35
mov rdx, rbx
lea rcx, [0x140024290]
call qword [sym.GC_default_warn_proc]
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.GC_os_get_mem.lto_priv.0
mov rbx, 0xfffffffffffffff0
cmp rax, 0xffffffffffffffef
jbe 0x140003af7
jmp 0x140003aae
mov edx, 0x10000
lea rcx, [0x140024274]
call sym.GC_log_printf
jmp 0x140003aa0
mov rax, qword [0x14002b050]
jmp 0x140003a72
Function at 0x140004470
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor r14d, r14d
cmp dword [0x14002af0c], 2
mov rbx, rcx
mov edi, edx
je 0x1400045b7
lea r12, [0x140023700]
mov rax, qword [r12 + 8]
lea rbp, [0x14002af40]
lea rsi, [rax + 8]
lea r13, [rax + 0x408]
test rax, rax
je 0x140004566
mov r15, qword [rsi]
nop
test r15, r15
je 0x140004559
test rbx, rbx
je 0x1400044d8
call rbx
test eax, eax
jne 0x1400045a4
mov rdx, r15
mov rcx, qword [0x14002b020]
shr rdx, 0x16
mov rax, rdx
and eax, 0x7ff
mov rax, qword [rbp + rax*8 + 0x263e0]
cmp rdx, qword [rax + 0x2010]
jne 0x140004518
jmp 0x14000451d
mov rax, qword [rax + 0x2018]
cmp rdx, qword [rax + 0x2010]
je 0x14000451d
cmp rcx, rax
jne 0x140004508
mov rdx, r15
shr rdx, 0xc
and edx, 0x3ff
mov rax, qword [rax + rdx*8]
mov rcx, qword [rax]
mov qword [rsi], rcx
test edi, edi
je 0x140004590
mov rdx, qword [0x14002ab08]
movzx r9d, word [rax + 0x1a]
sub rdx, 1
cmp r9, rdx
je 0x140004590
mov r15, rcx
test r15, r15
jne 0x1400044c9
add rsi, 8
cmp r13, rsi
jne 0x1400044bc
add r12, 0x20
lea rax, [0x140023760]
cmp rax, r12
jne 0x14000449c
cmp dword [0x14002af0c], 2
je 0x1400045c5
mov eax, 1
jmp 0x1400045a6
mov rdx, qword [rax + 0x20]
mov rcx, r15
call sym.GC_reclaim_small_nonempty_block.constprop.0
mov r15, qword [rsi]
jmp 0x1400044c0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x140004495
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r8d, r8d
lea rcx, [0x140024388]
sub eax, r14d
mov edx, eax
call sym.GC_log_printf
jmp 0x140004583
Function at 0x140009dc0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov rax, qword [0x14002a2a8]
mov ebx, dword [0x1400554e0]
mov dword [0x14002a270], 1
test ebx, ebx
jne 0x140009dfc
mov dword [0x14002a270], 0
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edi, ebx
lea rbp, [0x1400553a0]
lea rsi, [rsp + 0x20]
shl rdi, 3
mov rdx, rbp
mov rcx, rsi
mov r8, rdi
call sym.memcpy
mov r8, rdi
mov rcx, rbp
xor edx, edx
mov dword [0x1400554e0], 0
add rdi, rsi
lea rbp, [0x14002af40]
call sym.memset
mov edx, ebx
lea rcx, str.Found__u_leaked_objects:_n
call sym.GC_err_printf
nop dword [rax + rax]
mov rbx, qword [rsi]
mov rcx, rbx
call sym.GC_default_print_heap_obj_proc
test rbx, rbx
je 0x140009ec5
mov rdx, rbx
shr rdx, 0x16
mov rax, rdx
and eax, 0x7ff
mov rax, qword [rbp + rax*8 + 0x263e0]
cmp qword [rax + 0x2010], rdx
je 0x140009f00
mov rcx, qword [0x14002b020]
jmp 0x140009ea0
mov rax, qword [rax + 0x2018]
cmp rdx, qword [rax + 0x2010]
je 0x140009f00
cmp rax, rcx
jne 0x140009e90
mov rax, rbx
shr rax, 0xc
and eax, 0x3ff
mov rax, qword [rcx + rax*8]
mov rcx, rbx
movzx edx, byte [rax + 0x18]
mov r8, qword [rax + 0x20]
call sym.free_internal.isra.0
add rsi, 8
cmp rdi, rsi
jne 0x140009e50
lea rcx, str.GC_ABORT_ON_LEAK
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140009de6
lea rcx, str.Leaked_or_smashed_objects_encountered
call sym.GC_default_on_abort.lto_priv.0
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x140009de6
mov rcx, rax
jmp 0x140009ea5
Function at 0x14000b900
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [0x14002aaec]
test r8d, r8d
je 0x14000b91b
mov ecx, dword [0x140055394]
test ecx, ecx
je 0x14000b928
add rsp, 0x20
pop rbx
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rbx
cmp eax, dword [0x140055390]
jne 0x14000b91b
call rbx
lea rcx, [0x14002a2e0]
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov rdx, qword [rcx + rdx*8]
test rdx, rdx
je 0x14000b91b
cmp eax, dword [rdx + 0x10]
jne 0x14000b9a9
mov eax, dword [0x14002a274]
test eax, eax
je 0x14000b9a2
call sym.GC_notify_or_invoke_finalizers.lto_priv.0
call sym.GC_noop6.constprop.0
lea rcx, [sym.GC_never_stop_func.lto_priv.0]
call sym.GC_try_to_collect_inner.lto_priv.0
test eax, eax
je 0x14000b983
call sym.GC_notify_or_invoke_finalizers.lto_priv.0
mov rax, qword [0x14002a2a8]
test eax, eax
je 0x14000b91b
mov edx, dword [0x14002a270]
test edx, edx
jne 0x14000b91b
add rsp, 0x20
pop rbx
jmp sym.GC_print_all_errors.part.0.lto_priv.0
call sym.GC_init.part.0
jmp 0x14000b964
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14000b955
jmp 0x14000b91b

Function at 0x14000b9c0
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
mov eax, dword [0x14002a274]
test eax, eax
je 0x14000b9d0
ret
jmp sym.GC_init.part.0

Function at 0x14000db20
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ecx, 1
lea rsi, str.double_string.free___detected_n
mov ebx, 0x1e
call qword [dbg.__acrt_iob_func]
mov rdi, rax
nop dword [rax]
mov r8, rbx
mov rcx, rsi
mov r9, rdi
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x14000db48
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000f3b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140026810]
mov rsi, qword [rbx + 0x80]
mov rax, qword [rbx + 0x90]
sub rax, rsi
cmp rax, 0x7fff
ja 0x14000f488
mov rax, qword [0x140026a10]
mov rdx, qword [0x140026a80]
cmp dword [rax], 1
mov r8d, dword [rdx]
mov edx, 0x10000
sbb eax, eax
xor ecx, ecx
and eax, 0xffffffc4
or r8d, 0x3000
lea r9d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test eax, 0xfff
je 0x14000f4a8
lea rcx, str.Bad_VirtualAlloc_result
call sym.GC_default_on_abort.lto_priv.0
mov rdi, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rdi
mov rax, qword [rbx + 0x110]
cmp rax, 0x3ff
jbe 0x14000f453
lea rcx, str.Too_many_heap_sections
call sym.GC_default_on_abort.lto_priv.0
call rdi
mov rax, qword [rbx + 0x110]
lea rdx, [rax + 1]
mov qword [rbx + rax*8 + 0x163e0], rsi
mov rax, qword [0x140026a20]
add qword [rbx + 0x40], 0x10000
cmp dword [rax], 2
mov qword [rbx + 0x110], rdx
je 0x14000f4f8
lea rax, [rsi + 0x10000]
mov qword [rbx + 0x90], rax
lea rax, [rsi + 0x8000]
mov qword [rbx + 0x80], rax
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp qword [rbx + 0x110], 0x3ff
jbe 0x14000f4c7
lea rcx, str.Too_many_heap_sections
call sym.GC_default_on_abort.lto_priv.0
call qword [sym.imp.KERNEL32.dll_DebugBreak]
test rsi, rsi
jne 0x14000f510
mov rax, qword [0x140026840]
mov edx, 0x8000
lea rcx, str.GC_Warning:_Out_of_memory___trying_to_allocate_requested_amount___lu_bytes_..._n
call qword [rax]
mov ecx, 0x8000
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.GC_os_get_mem.lto_priv.0
mov edx, 0x10000
lea rcx, str.Got__lu_bytes_from_OS_n
call sym.GC_log_printf
jmp 0x14000f47a
mov rax, qword [rbx + 0x110]
jmp 0x14000f453
Function at 0x14000f520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140026810]
mov rsi, qword [rbx + 0x80]
mov rax, qword [rbx + 0x90]
sub rax, rsi
cmp rax, 0x201f
ja 0x14000f5f8
mov rax, qword [0x140026a10]
mov rdx, qword [0x140026a80]
cmp dword [rax], 1
mov r8d, dword [rdx]
mov edx, 0x10000
sbb eax, eax
xor ecx, ecx
and eax, 0xffffffc4
or r8d, 0x3000
lea r9d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test eax, 0xfff
je 0x14000f618
lea rcx, str.Bad_VirtualAlloc_result
call sym.GC_default_on_abort.lto_priv.0
mov rdi, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rdi
mov rax, qword [rbx + 0x110]
cmp rax, 0x3ff
jbe 0x14000f5c3
lea rcx, str.Too_many_heap_sections
call sym.GC_default_on_abort.lto_priv.0
call rdi
mov rax, qword [rbx + 0x110]
lea rdx, [rax + 1]
mov qword [rbx + rax*8 + 0x163e0], rsi
mov rax, qword [0x140026a20]
add qword [rbx + 0x40], 0x10000
cmp dword [rax], 2
mov qword [rbx + 0x110], rdx
je 0x14000f668
lea rax, [rsi + 0x10000]
mov qword [rbx + 0x90], rax
lea rax, [rsi + 0x2020]
mov qword [rbx + 0x80], rax
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp qword [rbx + 0x110], 0x3ff
jbe 0x14000f637
lea rcx, str.Too_many_heap_sections
call sym.GC_default_on_abort.lto_priv.0
call qword [sym.imp.KERNEL32.dll_DebugBreak]
test rsi, rsi
jne 0x14000f680
mov rax, qword [0x140026840]
mov edx, 0x2020
lea rcx, str.GC_Warning:_Out_of_memory___trying_to_allocate_requested_amount___lu_bytes_..._n
call qword [rax]
mov ecx, 0x2020
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.GC_os_get_mem.lto_priv.0
mov edx, 0x10000
lea rcx, str.Got__lu_bytes_from_OS_n
call sym.GC_log_printf
jmp 0x14000f5ea
mov rax, qword [rbx + 0x110]
jmp 0x14000f5c3
Function at 0x140011130
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [dbg.__acrt_iob_func]
mov rsi, rcx
movsxd rbx, edx
mov ecx, 1
test rsi, rsi
je 0x1400111c8
call rdi
mov rcx, rax
call fcn.14001ff30
mov ecx, 2
call rdi
mov rcx, rax
call fcn.14001ff30
mov byte [rsp + 0x2f], 0xa
test ebx, ebx
jg 0x1400111f2
mov ecx, 1
lea rsi, [rsp + 0x2f]
mov ebx, 1
call rdi
mov ecx, 2
call rdi
mov rbp, rax
mov r8, rbx
mov rcx, rsi
mov r9, rbp
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x140011190
mov ecx, 2
call rdi
mov rcx, rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001ff30
call rdi
lea rsi, str.eprintln_NIL_
mov ebx, 0xd
mov rcx, rax
call fcn.14001ff30
mov ecx, 2
call rdi
mov rcx, rax
call fcn.14001ff30
mov byte [rsp + 0x2f], 0xa
mov ecx, 1
call rdi
mov ecx, 2
call rdi
mov rbp, rax
nop dword [rax + rax]
mov r8, rbx
mov rcx, rsi
mov r9, rbp
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x140011208
jmp 0x140011175

Function at 0x140011230
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbp, qword [dbg.__acrt_iob_func]
lea rsi, str.V_panic:
mov ebx, 9
mov r13d, edx
mov r12, rcx
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001ff30
mov ecx, 2
call rbp
mov rcx, rax
call fcn.14001ff30
mov ecx, 1
call rbp
mov ecx, 2
call rbp
mov rdi, rax
mov r8, rbx
mov rcx, rsi
mov r9, rdi
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x140011287
mov ecx, 2
call rbp
mov rcx, rax
call fcn.14001ff30
mov edx, r13d
mov rcx, r12
call sym.eprintln.isra.0
lea rax, str.v_hash:
pxor xmm0, xmm0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [0x140026030]
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x44], xmm0
mov qword [rsp + 0x38], rax
lea rax, str.aeadc0a
mov qword [rsp + 0x48], rax
mov rax, qword [0x140025ff0]
movups xmmword [rsp + 0x54], xmm0
mov qword [rsp + 0x50], rax
lea rax, [0x14002590a]
movups xmmword [rsp + 0x64], xmm0
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x40], 0xfe10
mov dword [rsp + 0x64], 1
call sym.str_intp.constprop.0
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call sym.eprintln.isra.0
lea rcx, str.print_backtrace_skipping_top_frames_mingw_is_not_implemented
mov edx, 0x3c
call sym.eprintln.isra.0
mov ecx, 1
call sym.exit
nop
nop dword [rax]
Function at 0x140016470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rax, qword [rcx]
mov eax, dword [rax]
lea edx, [rax - 0x40010006]
and edx, 0xfffffffb
je 0x140016597
cmp eax, 0xe06d7363
je 0x140016597
mov rdx, qword [0x140026110]
pxor xmm0, xmm0
lea rdi, str.Unhandled_Exception_0x
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x54], xmm0
mov qword [rsp + 0x48], rdx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x58], eax
lea rax, [0x14002590a]
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x64], xmm0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], 0x7000fe86
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x74], 1
movups xmmword [rsp + 0x80], xmm0
call sym.str_intp.constprop.0
mov rsi, qword [rsp + 0x20]
mov byte [rsp + 0x3f], 0xa
mov rbx, qword [rsp + 0x28]
test rsi, rsi
je 0x1400165a8
mov rbp, qword [dbg.__acrt_iob_func]
test ebx, ebx
jle 0x14001654e
mov ecx, 1
movsxd rbx, ebx
call rbp
mov rdi, rax
nop dword [rax]
mov r8, rbx
mov rcx, rsi
mov r9, rdi
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x140016530
mov ecx, 1
lea rsi, [rsp + 0x3f]
mov ebx, 1
call rbp
mov rdi, rax
nop word [rax + rax]
mov r8, rbx
mov rcx, rsi
mov r9, rdi
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x140016568
mov edx, 0x3c
lea rcx, str.print_backtrace_skipping_top_frames_mingw_is_not_implemented
call sym.eprintln.isra.0
xor eax, eax
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbp, qword [dbg.__acrt_iob_func]
mov ecx, 1
mov ebx, 0xc
lea rsi, str.println_NIL_
call rbp
mov rdi, rax
mov r8, rbx
mov rcx, rsi
mov r9, rdi
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x1400165c5
mov ecx, 1
lea rsi, [rsp + 0x3f]
mov ebx, 1
call rbp
mov rdi, rax
nop word [rax + rax]
mov r8, rbx
mov rcx, rsi
mov r9, rdi
mov edx, 1
call sym.fwrite
sub rbx, rax
add rsi, rax
test rbx, rbx
jg 0x140016600
jmp 0x140016586
Function at 0x140019960
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400199d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140059994]
mov rbx, rcx
test esi, esi
jle 0x140019b00
mov rax, qword [0x140059998]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140019a1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140019aa5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140019a00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140019b22
mov rax, qword [0x140059998]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140059998]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140019b07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140019a9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140019ab0
add dword [0x140059994], 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 [0x140059998]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140019a9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140019a28
mov rax, qword [0x140059998]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001a090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140059a00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400599e0]
test rbx, rbx
je 0x14001a0ec
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 0x14001a0e3
test rsi, rsi
je 0x14001a0e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001a0c8
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 0x14001a300
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001a318
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001a320
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001a330
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 0x14001a37d
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 0x14001a374
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001a37f
add rax, 0x28
cmp rax, r9
jne 0x14001a360
xor eax, eax
ret

Function at 0x14001a380
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14001a410
mov rdx, qword [0x140026af0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001a3fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001a3fe
cmp word [rax + 0x18], 0x20b
jne 0x14001a3fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14001a410
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14001a3e9
add rbx, 0x28
cmp rbx, rdi
je 0x14001a410
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14001a3e0
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 0x14001a420
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140026af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001a440
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001a448
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001a440
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001a49d
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 0x14001a494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001a440
add rax, 0x28
cmp rax, r9
jne 0x14001a480
xor eax, eax
ret

Function at 0x14001a4a0
Capabilities:
Parse pe header

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