joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008b6c
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.140008aa8
cmp eax, dword [rsp + 0x20]
jne 0x140008bf6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Pausing_to_allow_for_debugging
call fcn.14000574c
lea rdx, [0x1400058d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Press_enter_to_close
call fcn.14000574c
lea rdx, [0x1400058d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000d420
add rsp, 0x38
ret
Function at 0x14000a3d8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000a481
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000a481
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
jne 0x14000a436
lea rdx, str.___Load_config_directory_wasnt_found__probably_StackCookie_not_defined__fix_cookie_skipped
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000574c
lea rdx, [0x1400058d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov al, 1
jmp 0x14000a483
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
jne 0x14000a449
lea rdx, str.___StackCookie_not_defined__fix_cookie_skipped
jmp 0x14000a416
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp qword [rdi], rsi
je 0x14000a493
lea rdx, str.____StackCookie_already_fixed___this_probably_wrong
call fcn.14000574c
lea rdx, [0x1400058d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, str.___Fixing_stack_cookie
call fcn.14000574c
lea rdx, [0x1400058d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
movabs rcx, 0x2b992ddfa233
xor rax, rbx
xor rax, rsi
cmp rax, rsi
cmove rax, rcx
mov qword [rdi], rax
jmp 0x14000a432
Function at 0x14000b044
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x40], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000b163
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000b163
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
xor edx, edx
mov qword [rbp - 0x10], rdx
mov ecx, dword [rax + r14 + 0xb0]
test ecx, ecx
jne 0x14000b0c4
and qword [rbx], rdx
and qword [rbx + 8], rdx
and qword [rbx + 0x10], rdx
lea rcx, [rbp - 0x20]
call fcn.14000a73c
jmp 0x14000b171
lea rsi, [r14 + rcx]
mov r15d, dword [rax + r14 + 0xb4]
add r15, rsi
mov rcx, qword [rbp - 0x18]
cmp rsi, r15
jae 0x14000b140
cmp dword [rsi + 4], 0
je 0x14000b140
mov eax, dword [rsi]
add rax, r14
mov qword [rbp - 0x38], rax
lea rax, [rsi + 8]
mov qword [rbp - 0x30], rax
mov eax, dword [rsi + 4]
sub rax, 8
shr rax, 1
mov dword [rbp - 0x28], eax
cmp rcx, rdx
je 0x14000b120
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rbp - 0x28]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rbp - 0x18], rcx
jmp 0x14000b138
lea r8, [rbp - 0x38]
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.14000b95c
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
mov eax, dword [rsi + 4]
add rsi, rax
jmp 0x14000b0d7
and qword [rbp - 0x10], 0
and qword [rbp - 0x18], 0
mov rax, qword [rbp - 0x20]
and qword [rbp - 0x20], 0
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
jmp 0x14000b0b6
and qword [rcx], 0
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000d420
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000c7c4
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
lea r9, [rbp - 0x30]
and dword [rbp - 0x30], ebx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbx + 0xb]
mov ecx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, 0xc0000004
jmp 0x14000c851
test rbx, rbx
je 0x14000c826
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x30]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp - 0x30]
lea r9, [rbp - 0x30]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
je 0x14000c810
test eax, eax
jns 0x14000c897
test rbx, rbx
je 0x14000c86f
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000d420
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test rbx, rbx
je 0x14000c86f
xor esi, esi
cmp dword [rbx], esi
jbe 0x14000c85e
and qword [rbp - 0x28], 0
lea r9, [rbx + 0x30]
and qword [rbp - 0x18], 0
mov r15d, esi
imul rax, r15, 0x128
mov qword [rbp - 0x10], 0xf
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add r9, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [r9 + rdi], 0
jne 0x14000c8d1
lea rcx, [rbp - 0x28]
cmp rdi, 0xf
ja 0x14000c8fb
mov r8, rdi
mov qword [rbp - 0x18], rdi
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rdi - 0x28], 0
jmp 0x14000c903
mov rdx, rdi
call fcn.14000721c
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x14000c910
mov rdx, qword [r14]
cmp qword [rbp - 0x10], 0x10
lea rcx, [rbp - 0x28]
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000c96e
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14000c95f
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c95a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c9bd
call fcn.14000d440
inc esi
cmp esi, dword [rbx]
jb 0x14000c8a2
jmp 0x14000c85e
imul rax, r15, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14000c9c9
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c9c4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c9c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d440
mov rax, rdi
jmp 0x14000c871
Function at 0x14000c9d4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbp, rdx
mov r12, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x14000c9fd
movsxd rcx, dword [rdx + 0x3c]
lea r13, [rdx + 0x18]
add r13, rcx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r15d, word [rcx + rdx + 6]
add r13, rax
test r15d, r15d
je 0x14000ca60
lea rcx, [rsi + rsi*4]
mov r8, rbx
lea rdi, [rcx*8]
mov rdx, r12
add rdi, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000ca59
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x14000ca4b
cmp rbx, rax
je 0x14000ca7f
inc esi
cmp esi, r15d
jb 0x14000ca26
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rdi + 0xc], 0
je 0x14000ca60
test r14, r14
je 0x14000ca90
mov eax, dword [rdi + 8]
mov dword [r14], eax
mov eax, dword [rdi + 0xc]
add rax, rbp
jmp 0x14000ca62
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002f090]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002f0a0]
mov dword [rax], 1
mov rax, qword [0x14002f0b0]
mov dword [rax], 1
mov rax, qword [0x14002f000]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002f080]
mov dword [0x14003400c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14002f170]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14002f150]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14002efe0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14002f0e0]
xor edi, edi
mov rax, qword gs:[0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x14002f0f0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140034008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14002f030]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call sym._pei386_runtime_relocator
mov rcx, qword [sym._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14002f0d0]
lea rcx, [sym.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov ebx, dword [0x140034028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
test ebx, ebx
mov rbp, qword [0x140034020]
mov r12, rax
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [rbp + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [r12 + rbx], rax
mov rdx, qword [rbp + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, r12
mov qword [rdi], 0
mov qword [0x140034020], r12
call sym.__main
mov rax, qword [0x14002f060]
mov r8, qword [0x140034018]
mov ecx, dword [0x140034028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140034020]
call sym.main
mov ecx, dword [0x14003400c]
mov dword [0x140034010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140034008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14002f0f0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call sym._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x14002f120]
mov rcx, qword [0x14002f110]
call sym._initterm
test edi, edi
mov dword [rsi], 2
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140034010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14002f140]
mov dword [rsi], 1
mov rcx, qword [0x14002f130]
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sym.exit
nop
Function at 0x140003cb0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rdx, rdx
mov rcx, rdx
mov qword [rbx], rdx
js 0x140003cd8
call sym.allocShared0Impl__system_u1757
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
add rsp, 0x20
pop rbx
jmp sym.raiseRangeErrorI

Function at 0x140004200
Capabilities:
Terminate process

Disassembly:
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140004210
jmp sym.deallocShared
ret

Function at 0x1400045c0
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movzx eax, byte [rdx]
mov rbx, qword [rcx + 0x10]
movzx edi, byte [rcx]
mov rbp, qword [rdx + 8]
test al, al
mov rsi, qword [rdx + 0x10]
mov byte [rcx], al
mov qword [rcx + 9], 0
mov qword [rcx + 1], 0
mov qword [rcx + 0x10], 0
je 0x140004610
test dil, dil
mov qword [rcx + 8], rbp
je 0x140004638
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rsi, rsi
mov qword [rcx + 8], 0
je 0x14000462b
mov rax, qword [rsi - 0x10]
add rax, 0x10
jo 0x14000469a
mov qword [rsi - 0x10], rax
test dil, dil
mov qword [rcx + 0x10], rsi
mov qword [rcx + 8], rbp
jne 0x140004601
test rbx, rbx
je 0x140004601
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x140004670
sub rax, 0x10
jo 0x14000468d
mov r8, qword [rbx]
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.rememberCycle__system_u3465
mov r8, qword [rbx]
mov ecx, 1
call sym.rememberCycle__system_u3465
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.nimDestroyAndDispose
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.raiseOverflow
mov qword [rsp + 0x28], rcx
call sym.raiseOverflow
mov rcx, qword [rsp + 0x28]
jmp 0x14000462b

Function at 0x1400048c0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx], 0
mov rbx, rcx
je 0x1400048d8
add rsp, 0x20
pop rbx
ret
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400048cd
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
cmp rdx, 0xf
jbe 0x140004910
sub rdx, 0x10
jo 0x14000492e
mov r8, qword [rax]
mov qword [rax - 0x10], rdx
mov rdx, rcx
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp sym.rememberCycle__system_u3465
mov r8, qword [rax]
mov rdx, rcx
mov ecx, 1
call sym.rememberCycle__system_u3465
mov rcx, qword [rbx + 0x10]
add rsp, 0x20
pop rbx
jmp sym.nimDestroyAndDispose
add rsp, 0x20
pop rbx
jmp sym.raiseOverflow

Function at 0x140004a20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, [0x140034040]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
add rsp, 0x28
jmp sym.nimTestErrorFlag

Function at 0x140005d90
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov edx, 1
mov r9, rdi
mov rsi, r8
call sym.fread
cmp rsi, rax
mov rbx, rax
je 0x140005dc1
mov rcx, rdi
call sym.ferror
test eax, eax
jne 0x140005dd0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rdi
call sym.checkErr__stdZsyncio_u162.part.0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140005e20
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rax, [0x14002b380]
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x30]
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov rbp, qword [0x14002f050]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
test rbx, rbx
mov qword [rsp + 0x48], rax
jle 0x140006000
nop word [rax + rax]
mov rax, qword [rsp + 0x48]
mov r9, rsi
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
cmp rax, 0xfa0
mov rbx, rax
je 0x140005f90
mov rcx, rsi
call sym.ferror
test eax, eax
je 0x140005ed7
mov rcx, rsi
call sym.checkErr__stdZsyncio_u162.part.0
mov rcx, rbp
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x140006048
test rbx, rbx
js 0x140006068
lea rcx, [rsp + 0x40]
mov rdx, rbx
call sym.setLengthStrV2
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140005f68
mov r8, rbx
add r8, 1
jo 0x14000603d
test r8, r8
js 0x140006086
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea rax, [rdx + rax + 8]
lea rdx, [rcx + 8]
mov rcx, rax
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x14000603d
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
nop word [rax + rax]
test rcx, rcx
je 0x140005f77
test byte [rcx + 7], 0x40
je 0x140006058
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbp
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x140006048
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140006000
mov r8, rbx
add r8, 1
jo 0x140006015
test r8, r8
js 0x140006020
mov rax, qword [rsp + 0x30]
add rdx, 8
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rax + 8]
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x140006015
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x140005e98
nop dword [rax]
lea rdx, [rbx - 1]
xor ecx, ecx
call sym.raiseIndexError2
mov rcx, qword [rsp + 0x48]
jmp 0x140005f68
call sym.raiseOverflow
jmp 0x140005fef
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x140005fef
call sym.raiseOverflow
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
jmp 0x140005f68
call sym.deallocShared
jmp 0x140005f77
movabs r8, 0x7fffffffffffffff
mov rcx, rbx
xor edx, edx
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140005f68
movabs rcx, 0x8000000000000000
xor edx, edx
movabs r8, 0x7fffffffffffffff
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140005f68
Function at 0x1400060b0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
test r8, r8
mov rdi, rcx
mov rsi, rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rbx, r8
js 0x1400061b0
lea r14, [rsp + 0x20]
mov rdx, r8
mov rcx, r14
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov rdx, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
test rdx, rdx
mov qword [rsp + 0x38], rax
jle 0x140006200
mov rax, qword [rsp + 0x38]
mov r9, rsi
mov r8, rbx
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
cmp rbx, rax
mov rbp, rax
je 0x140006143
mov rcx, rsi
call sym.ferror
test eax, eax
jne 0x1400061d0
mov rcx, qword [0x14002f050]
call dbg.__emutls_get_address
cmp byte [rax], 0
mov r12, rax
jne 0x140006193
mov rcx, rsi
call sym.fgetc
mov rdx, rsi
mov ecx, eax
mov r13d, eax
call sym.ungetc
cmp byte [r12], 0
jne 0x140006193
test r13d, r13d
jns 0x140006210
cmp rbx, rbp
jle 0x140006193
test rbp, rbp
js 0x1400061e0
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sym.setLengthStrV2
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
jmp 0x140006193
mov rcx, rsi
call sym.checkErr__stdZsyncio_u162.part.0
jmp 0x140006143
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call sym.raiseRangeErrorI
jmp 0x140006193
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x140006193
mov rdx, rsi
mov rcx, r14
call sym.readAllBuffer__stdZsyncio_u497
cmp byte [r12], 0
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jne 0x140006270
lea rcx, [rsp + 0x30]
mov rdx, rbx
call sym.prepareAdd
test rbx, rbx
jle 0x140006270
mov r8, rbx
add r8, 1
jo 0x140006290
test r8, r8
js 0x1400062a0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea rcx, [rdx + rax + 8]
lea rdx, [rsi + 8]
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x140006290
mov qword [rsp + 0x30], rbx
test rsi, rsi
je 0x140006193
test byte [rsi + 7], 0x40
jne 0x140006193
mov rcx, rsi
call sym.deallocShared
jmp 0x140006193
call sym.raiseOverflow
jmp 0x140006270
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x140006270