joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039910
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r14d, 0x3b9aca00
lea r11, [rsp + 0x50]
mov r12, rdx
mov r13d, r8d
mov rbp, rcx
mov rax, qword [rdi]
mov qword [rsp + 0x58], rax
xor eax, eax
mov rcx, r11
mov qword [rsp + 0x28], r11
lea rbx, [rsp + 0x30]
mov rdi, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea r15, [rsp + 0x40]
call rdi
mov rax, r14
mul qword [rsp + 0x50]
mov rcx, r15
mov r8, rax
mov rax, qword [0x14009ec30]
mov r9, rdx
mov edx, dword [rax]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x38], 0
call dbg.__divti3
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
movq rsi, xmm0
call dbg.qemu_rec_mutex_lock_impl
mov rcx, qword [rsp + 0x28]
call rdi
mov rdi, qword [0x14009ec30]
mov rax, r14
mul qword [rsp + 0x50]
mov ecx, dword [rdi]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rdx
mov rdx, rbx
mov qword [rsp + 0x30], rcx
mov rcx, r15
mov qword [rsp + 0x40], rax
call dbg.__divti3
mov rdx, r12
mov r8d, r13d
mov rcx, rbp
mov r9d, 2
movq rbx, xmm0
call dbg.qsp_entry_get
sub rbx, rsi
add rbx, qword [rax + 0x18]
mov qword [rax + 0x18], rbx
mov rsi, qword [rax + 0x10]
lea rdx, [rsi + 1]
mov qword [rax + 0x10], rdx
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsp + 0x58]
sub rax, qword [rsi]
jne 0x140039a3a
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.__stack_chk_fail
nop
Function at 0x140039a40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r14d, 0x3b9aca00
lea r11, [rsp + 0x50]
mov r12, rdx
mov r13d, r8d
mov rbp, rcx
mov rax, qword [rdi]
mov qword [rsp + 0x58], rax
xor eax, eax
mov rcx, r11
mov qword [rsp + 0x28], r11
lea rbx, [rsp + 0x30]
mov rdi, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea r15, [rsp + 0x40]
call rdi
mov rax, r14
mul qword [rsp + 0x50]
mov rcx, r15
mov r8, rax
mov rax, qword [0x14009ec30]
mov r9, rdx
mov edx, dword [rax]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x38], 0
call dbg.__divti3
mov r8d, r13d
mov rdx, r12
mov rcx, rbp
movq rsi, xmm0
call dbg.qemu_mutex_lock_impl
mov rcx, qword [rsp + 0x28]
call rdi
mov rdi, qword [0x14009ec30]
mov rax, r14
mul qword [rsp + 0x50]
mov ecx, dword [rdi]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rdx
mov rdx, rbx
mov qword [rsp + 0x30], rcx
mov rcx, r15
mov qword [rsp + 0x40], rax
call dbg.__divti3
mov rdx, r12
mov r8d, r13d
mov rcx, rbp
mov r9d, 1
movq rbx, xmm0
call dbg.qsp_entry_get
sub rbx, rsi
add rbx, qword [rax + 0x18]
mov qword [rax + 0x18], rbx
mov rsi, qword [rax + 0x10]
lea rdx, [rsi + 1]
mov qword [rax + 0x10], rdx
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsp + 0x58]
sub rax, qword [rsi]
jne 0x140039b6a
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.__stack_chk_fail
nop
Function at 0x140039b70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r10, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r12d, 0x3b9aca00
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r10
mov rdi, rdx
mov ebp, r8d
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x28], r11
mov rsi, rcx
mov rcx, r11
call r10
mov rax, r12
mul qword [rsp + 0x50]
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x30]
mov rcx, rax
mov rax, qword [0x14009ec30]
mov rbx, rdx
mov edx, dword [rax]
mov qword [rsp + 0x40], rcx
mov rcx, r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rdx
mov rdx, r15
mov qword [rsp + 0x38], 0
call dbg.__divti3
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movq rbx, xmm0
call dbg.qemu_rec_mutex_trylock_impl
mov r10, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r13d, eax
call r10
mov rcx, qword [0x14009ec30]
mov rax, r12
mul qword [rsp + 0x50]
mov ecx, dword [rcx]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rdx
mov rdx, r15
mov qword [rsp + 0x30], rcx
mov rcx, r14
mov qword [rsp + 0x40], rax
call dbg.__divti3
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
mov r9d, 2
movq r12, xmm0
call dbg.qsp_entry_get
sub r12, rbx
add r12, qword [rax + 0x18]
mov qword [rax + 0x18], r12
test r13d, r13d
je 0x140039ca8
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsp + 0x58]
sub rax, qword [rsi]
jne 0x140039cb6
mov eax, r13d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rax + 0x10]
lea rdx, [rdi + 1]
mov qword [rax + 0x10], rdx
jmp 0x140039c80
call sym.__stack_chk_fail
nop
nop dword [rax]

Function at 0x14003c180
Capabilities:
Resolve dns

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x470
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r9d, 0x401
lea r12, [rsp + 0x60]
lea rbp, [rsp + 0x40]
mov rbx, r8
mov rsi, rcx
mov rax, qword [rdi]
mov qword [rsp + 0x468], rax
xor eax, eax
mov r8, r12
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14003c240
mov ecx, 0x28
call sym.g_malloc0
mov rcx, r12
mov dword [rax], 0
mov rbx, rax
call sym.g_strdup
mov rcx, rbp
mov qword [rbx + 8], rax
call sym.g_strdup
cmp word [rsi], 2
mov qword [rbx + 0x10], rax
movzx eax, word [0x14009449c]
je 0x14003c238
mov word [rbx + 0x20], ax
mov rax, qword [rsp + 0x468]
sub rax, qword [rdi]
jne 0x14003c278
mov rax, rbx
add rsp, 0x470
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov word [rbx + 0x1e], ax
jmp 0x14003c215
mov ecx, eax
call sym.gai_strerrorA
mov rcx, rbx
xor ebx, ebx
lea r9, global___func__.177
mov qword [rsp + 0x28], rax
lea rax, str.Cannot_format_numeric_socket_address:__s
mov r8d, 0x540
lea rdx, str..._util_qemu_sockets.c
mov qword [rsp + 0x20], rax
call dbg.error_setg_internal
jmp 0x14003c215
call sym.__stack_chk_fail
nop
nop
Function at 0x14003ce70
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov edx, dword [rcx]
cmp edx, 2
je 0x14003cee8
ja 0x14003ced0
test edx, edx
je 0x14003cf20
lea rcx, str.unix_sockets_are_not_available_on_windows
lea r9, str.unix_connect_saddr
mov r8d, 0x448
mov qword [rsp + 0x20], rcx
lea rdx, str..._util_qemu_sockets.c
mov rcx, rax
call dbg.error_setg_internal
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x81
mov eax, 0xffffffff
add rsp, 0x38
ret
cmp edx, 3
jne 0x14003cf30
mov rcx, qword [rcx + 8]
mov rdx, rax
add rsp, 0x38
jmp dbg.socket_get_fd
lea rcx, str.socket_family_AF_VSOCK_unsupported
lea r9, str.vsock_unsupported
mov r8d, 0x374
mov qword [rsp + 0x20], rcx
lea rdx, str..._util_qemu_sockets.c
mov rcx, rax
call dbg.error_setg_internal
mov eax, 0xffffffff
add rsp, 0x38
ret
add rcx, 8
mov rdx, rax
add rsp, 0x38
jmp dbg.inet_connect_saddr
call sym.abort
nop
nop word cs:[rax + rax]
Function at 0x14003dad0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x38
mov rax, rcx
mov rcx, r8
movsx r8d, word [rax]
cmp r8w, 2
je 0x14003daec
cmp r8w, 0x17
jne 0x14003db00
mov r8, rcx
mov rcx, rax
add rsp, 0x38
jmp dbg.socket_sockaddr_to_address_inet
lea rax, str.socket_family__d_unsupported
mov dword [rsp + 0x28], r8d
lea r9, str.socket_sockaddr_to_address
mov r8d, 0x59a
mov qword [rsp + 0x20], rax
lea rdx, str..._util_qemu_sockets.c
call dbg.error_setg_internal
xor eax, eax
add rsp, 0x38
ret
Function at 0x140041c20
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_test_config_vars]
mov rax, qword [rax]
mov eax, dword [rax]
mov rsi, rcx
mov rbx, rdx
test eax, eax
je 0x140041c45
call sym.g_test_subprocess
test eax, eax
je 0x140041c68
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
jmp sym.__mingw_vfprintf
lea rcx, str.QTEST_SILENT_ERRORS
call sym.getenv
test rax, rax
je 0x140041c45
mov rdx, rbx
mov rcx, rsi
call sym.g_strdup_vprintf
lea rcx, [0x140094e44]
mov rbx, rax
mov rdx, rax
call sym.g_test_message
mov rcx, rbx
call sym.strlen
mov rcx, rbx
mov esi, eax
call sym.g_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140047c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x20], r9
mov rbp, r9
mov rbx, rcx
mov rdi, r8
mov r9d, 0x20
call dbg.visit_start_struct
mov esi, eax
test al, al
je 0x140047c85
mov rdx, qword [rdi]
test rdx, rdx
je 0x140047cc0
mov r8, rbp
mov rcx, rbx
call dbg.visit_type_BackupPerf_members
test al, al
jne 0x140047c98
mov rdx, rdi
mov rcx, rbx
call dbg.visit_end_struct
mov rcx, rbx
call dbg.visit_is_input
test al, al
jne 0x140047ce0
xor esi, esi
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rbp
mov rcx, rbx
call dbg.visit_check_struct
mov rdx, rdi
mov rcx, rbx
mov ebp, eax
call dbg.visit_end_struct
test bpl, bpl
je 0x140047c79
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call dbg.visit_is_dealloc
test al, al
je 0x140047cf8
mov rdx, rdi
mov rcx, rbx
call dbg.visit_end_struct
jmp 0x140047c87
mov rcx, qword [rdi]
call dbg.qapi_free_BackupPerf
mov qword [rdi], 0
jmp 0x140047c85
lea rax, [0x140095208]
lea r9, str.visit_type_BackupPerf
mov r8d, 0x8b5
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea rdx, str.qapi_qapi_visit_block_core.c
call sym.g_assertion_message_expr
nop

Function at 0x14005e2f0
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
xor esi, esi
mov r13d, ecx
mov rbp, rdx
mov edi, r8d
mov r12d, r9d
test r8d, r8d
je 0x14005e34f
mov r14, qword [sym.imp.msvcrt.dll__read]
mov r15, qword [sym.imp.msvcrt.dll__errno]
xor ebx, ebx
mov eax, ebx
mov ecx, r13d
shl rax, 4
add rax, rbp
mov r8, qword [rax + 8]
mov rdx, qword [rax]
test r12b, r12b
jne 0x14005e380
call r14
cdqe
test rax, rax
jle 0x14005e368
add rsi, rax
add ebx, 1
cmp ebx, edi
jb 0x14005e323
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
je 0x14005e34f
call r15
cmp dword [rax], 4
je 0x14005e34b
test rsi, rsi
jne 0x14005e34f
mov rsi, 0xffffffffffffffff
jmp 0x14005e34f
call sym.write
cdqe
jmp 0x14005e340
Function at 0x14005e850
Capabilities:
Initialize winsock library
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x1c8
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov ecx, 0x202
mov rax, qword [rsi]
mov qword [rsp + 0x1b8], rax
xor eax, eax
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x14005e8b0
lea rcx, [dbg.socket_cleanup]
call dbg.atexit
mov rax, qword [rsp + 0x1b8]
sub rax, qword [rsi]
jne 0x14005e8dc
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.__acrt_iob_func]
mov r8d, ebx
lea rdx, str.WSAStartup:__d_n
mov ebx, 0xffffffff
mov rcx, rax
call sym.fprintf.constprop.0_5
jmp 0x14005e88f
call sym.__stack_chk_fail
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14005e900
Capabilities:
Read file on windows

Disassembly:
mov r9d, 1
jmp dbg.readv_writev
Function at 0x14005ee50
Capabilities:
Get socket status

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x458
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0x448], rax
xor eax, eax
lea rdi, [rcx + 0xa8]
mov rbx, rcx
mov rcx, rdi
call dbg.qemu_lockcnt_inc
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x240], 0
mov rcx, qword [rbx + 0x90]
test rcx, rcx
jne 0x14005eeb9
jmp 0x14005ef30
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x14005ef30
cmp qword [rcx + 8], 0
jne 0x14005ef98
cmp qword [rcx + 0x10], 0
je 0x14005eeb0
mov r8d, dword [rsp + 0x240]
mov r9, qword [rcx + 0x20]
test r8d, r8d
je 0x14005f05f
lea rdx, [rsp + 0x248]
xor eax, eax
jmp 0x14005eefc
add eax, 1
add rdx, 8
cmp eax, r8d
je 0x14005ef01
cmp qword [rdx], r9
jne 0x14005eef0
cmp r8d, 0x40
je 0x14005eeb0
cmp r8d, eax
jne 0x14005eeb0
add r8d, 1
mov qword [rsp + rax*8 + 0x248], r9
mov dword [rsp + 0x240], r8d
mov rcx, qword [rcx + 0x48]
test rcx, rcx
jne 0x14005eeb9
nop dword [rax]
lea r12, [rsp + 0x240]
lea rbp, [rsp + 0x30]
xor r9d, r9d
xor ecx, ecx
lea rax, [0x1400b50e0]
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x14005eff0
xor r13d, r13d
mov rcx, rdi
call dbg.qemu_lockcnt_dec
mov rax, qword [rsp + 0x448]
sub rax, qword [rsi]
jne 0x14005f06c
mov eax, r13d
add rsp, 0x458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8d, dword [rsp + 0x30]
mov r9, qword [rcx + 0x20]
test r8d, r8d
je 0x14005f052
lea rdx, [rsp + 0x38]
xor eax, eax
jmp 0x14005efc4
add eax, 1
add rdx, 8
cmp eax, r8d
je 0x14005efc9
cmp qword [rdx], r9
jne 0x14005efb8
cmp r8d, 0x40
je 0x14005eec4
cmp eax, r8d
jne 0x14005eec4
add r8d, 1
mov qword [rsp + rax*8 + 0x38], r9
mov dword [rsp + 0x30], r8d
jmp 0x14005eec4
mov rbx, qword [rbx + 0x90]
test rbx, rbx
je 0x14005ef62
xor r13d, r13d
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbx + 0x20]
mov rdx, rbp
mov word [rbx + 0x2a], ax
call sym.__WSAFDIsSet
test eax, eax
je 0x14005f029
or word [rbx + 0x2a], 1
mov r13d, 1
mov rcx, qword [rbx + 0x20]
mov rdx, r12
call sym.__WSAFDIsSet
test eax, eax
je 0x14005f044
or word [rbx + 0x2a], 4
mov r13d, 1
mov rbx, qword [rbx + 0x48]
test rbx, rbx
jne 0x14005f008
jmp 0x14005ef65
xor eax, eax
mov r8d, 1
jmp 0x14005efe0
xor eax, eax
mov r8d, 1
jmp 0x14005ef10
call sym.__stack_chk_fail
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140060780
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov ecx, 0x58
mov rbp, r8
mov rdi, r9
call sym.g_malloc
mov rbx, rax
mov qword [rax], rbp
mov qword [rax + 8], rdi
mov eax, dword [rsp + 0x80]
lea rcx, [rbx + 0x18]
mov byte [rbx + 0x20], 0
mov word [rbx + 0x10], ax
call dbg.notifier_list_init
cmp word [rbx + 0x10], 1
je 0x1400607ce
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsi + 8]
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rsp + 0x28], rax
mov r9, rbx
lea r8, [dbg.win32_start_routine]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
test rax, rax
je 0x14006080d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, global___func__.210
mov ecx, eax
call dbg.error_exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140066df0
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 0x140066e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400b5e94]
mov rbx, rcx
test esi, esi
jle 0x140066f90
mov rax, qword [0x1400b5e98]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140066eab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140066f35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140066e90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140066fb2
mov rax, qword [0x1400b5e98]
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 [0x1400b5e98]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140066f97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140066f2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140066f40
add dword [0x1400b5e94], 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 [0x1400b5e98]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140066f2e
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 0x140066eb8
mov rax, qword [0x1400b5e98]
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 0x140067520
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400b5f00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b5ee0]
test rbx, rbx
je 0x14006757c
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 0x140067573
test rsi, rsi
je 0x140067573
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140067558
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 0x140067790
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400677a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400677b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400677c0
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 0x14006780d
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 0x140067804
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14006780f
add rax, 0x28
cmp rax, r9
jne 0x1400677f0
xor eax, eax
ret

Function at 0x140067810
Capabilities:
Parse pe header

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

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

Function at 0x140067930
Capabilities:
Parse pe header

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

Function at 0x140067970
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14009ea90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140067990
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140067998
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140067990
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400679e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400679d7
test rcx, rcx
je 0x140067990
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400679c8
xor eax, eax
ret
Function at 0x1400679f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14009ea90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140067a0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140067a18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14009ea90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140067a50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140067a58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140067a50
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140067a50
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140067aa4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140067ab0
add rdx, 0x28
cmp r9, rdx
jne 0x140067a90
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14009ea90]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140067ae2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140067af0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140067ae2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140067ae2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140067ae2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140067b45
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140067b58
add rdx, 0x28
cmp rdx, r10
jne 0x140067b30
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140067b67
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140067b77
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140067b4e
test ecx, ecx
jg 0x140067b60
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret