joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d0fa
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001d167
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call rax
mov eax, dword [0x1400cb390]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001d2ab
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001d204
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001d1bf
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400cb390]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001d2ab
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001d23e
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001d2ab
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400cb390]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop
Function at 0x14001df89
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400cb3a0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140101c00]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400cb390]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym.__intrinsic_setjmpex
test eax, eax
jne 0x14001e09e
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400cb3a0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14001e06c
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400cb3a0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14001e0ad
lea rax, [0x1400cb3a0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001e0e9
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001e157
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400cb390]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001e1a1
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001e1a1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400cb3a0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001e193
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop
Function at 0x14001f1d0
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea rax, [0x1400cb3b0]
mov rcx, rax
call sym.pthread_spin_lock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax]
cmp eax, 0xbab1f0ed
jne 0x14001f20c
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax + 4]
test eax, eax
jg 0x14001f24c
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov dword [rsp + 0x20], 0x28
lea r9, str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
lea rax, str.Assertion_failed:___s___file__s__line__d_n
mov rdx, rax
call sym.fprintf
mov ecx, 1
call sym.exit
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov edx, dword [rax + 4]
sub edx, 1
mov dword [rax + 4], edx
lea rax, [0x1400cb3b0]
mov rcx, rax
call sym.pthread_spin_unlock
mov eax, dword [rbp + 0x18]
add rsp, 0x30
pop rbp
ret

Function at 0x1400260c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x1400260ec
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140026b70
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400ce210], 0
jne 0x140026c73
mov byte [0x1400ce210], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140026c48
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140026c39
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400d1491]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400c9a07
jmp 0x1400c99ff
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140026c07
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x1400c99fa
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop
call sym.abort
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400c99fa
Function at 0x14008ee60
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14008eea8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008ee7a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400a1aa0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400a1ad0
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400a1b18
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400a1ae8
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 0xffffffff
jne 0x1400a1b38
call rbp
mov r12, rbp
cmp dword [rax], 4
je 0x1400a1ae8
call r12
lea rdx, str.random_device_could_not_be_read
mov ecx, dword [rax]
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x1400a1b27
Function at 0x1400c9480
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400cba00]
movabs rsi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400cba18], 0
movups xmmword [0x1400cba08], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400c9535
jmp 0x1400c95df
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400c9590
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x1400c9520
cmp qword [rbx + 7], r12
jne 0x1400c9520
cmp byte [rbx + 0xf], 0x2e
jne 0x1400c9520
add rbx, 0x10
lea rdi, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rbp, qword [rdi]
test rbp, rbp
je 0x1400c957a
mov rcx, qword [rdi + 8]
mov r8, rbp
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400c9584
cmp byte [rbx + rbp], 0x3d
je 0x1400c9615
add rdi, 0x18
cmp r13, rdi
jne 0x1400c955f
jmp 0x1400c9520
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400cba18], rbx
jne 0x1400c95ef
lea rcx, [sym.__tcf_0_4]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400cba18], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400cba10], rax
test rax, rax
je 0x1400c964c
xor edx, edx
mov qword [0x1400cba08], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400c95c7
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rbp + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400c963c
test dl, dl
jne 0x1400c9520
test eax, eax
js 0x1400c9520
mov dword [rdi + 0x10], eax
jmp 0x1400c9520
xor ecx, ecx
mov qword [0x1400cba18], rcx
jmp 0x1400c95c7
Function at 0x140001190
Capabilities:
Parse pe header

Disassembly:
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rdx
mov rdi, rcx
mov edx, 0xd
call fcn.140003050
test rax, rax
jne 0x1400011c3
mov al, 1
jmp 0x140001393
mov qword [rsp + 0x90], rbx
test rdi, rdi
je 0x1400013ac
mov edx, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400013ac
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x1400013ac
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x1400013ac
lea rbx, [rdi + rax]
mov edx, 0xf8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400013ac
cmp dword [rbx], 0x4550
jne 0x1400013ac
test rbx, rbx
je 0x1400013ac
mov edx, 0xf8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400013ac
mov eax, 0x20b
cmp word [rbx + 0x18], ax
jne 0x1400013ac
mov rcx, rdi
mov qword [rsp + 0x60], rbp
call fcn.140002f30
mov ebp, eax
mov edx, 0xd
lea rax, vtable.peconv::default_func_resolver.0
mov rcx, rdi
mov qword [rsp + 0x40], rax
call fcn.140003050
test rax, rax
je 0x1400013a8
mov ebx, dword [rax]
mov edx, dword [rax + 4]
lea rcx, [rbx + rdi]
cmp edx, 0x20
jb 0x1400013a8
test rcx, rcx
je 0x1400013a8
cmp rcx, rdi
jb 0x1400013a8
lea rax, [rbx + 0x20]
cmp rax, rbp
ja 0x1400013a8
cmp rax, 0x20
jb 0x1400013a8
cmp rax, rbx
jb 0x1400013a8
mov qword [rsp + 0x50], r15
mov r8b, 1
mov r15d, edx
shr r15, 5
test r15, r15
je 0x14000137d
add rbx, 0x20
mov qword [rsp + 0x58], rsi
xor esi, esi
lea rdx, [rdi - 0x20]
add rdx, rbx
je 0x140001378
cmp rdx, rdi
jb 0x140001378
cmp rbx, rbp
ja 0x140001378
cmp rbx, 0x20
jb 0x140001378
lea rax, [rbx - 0x20]
cmp rbx, rax
jb 0x140001378
mov eax, dword [rdi + rbx - 0x1c]
test eax, eax
je 0x140001378
cmp rax, r14
jbe 0x140001325
sub rax, r14
lea r9, [rdi + rax]
test r9, r9
je 0x140001368
cmp r9, rdi
jb 0x140001368
lea rcx, [rax + 1]
cmp rcx, rbp
ja 0x140001368
cmp rcx, 1
jb 0x140001368
cmp rcx, rax
jb 0x140001368
lea rax, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov qword [rsp + 0x28], rdx
mov rdx, rbp
call fcn.1400015b0
movzx r8d, al
inc rsi
add rbx, 0x20
cmp rsi, r15
jb 0x1400012f3
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
movzx eax, r8b
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ad30
add rsp, 0x68
pop r14
pop rdi
ret
xor al, al
jmp 0x140001386
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._ERROR__Loader_Payload_bitness_mismatch._n
call fcn.1400013d0
xor al, al
jmp 0x14000138b
Function at 0x140001fe0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
call fcn.140002b50
mov rsi, qword gs:[0x60]
mov rdi, rax
test rsi, rsi
jne 0x140002029
test rax, rax
jne 0x14000207a
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsi + 0x110]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, rdx
test rdi, rdi
jne 0x140002054
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x140002012
test rax, rax
je 0x14000206f
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x14000206f
cmp rdi, rcx
je 0x1400020aa
mov rax, qword [rax]
cmp rax, rdx
jne 0x140002054
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor esi, esi
test rbp, rbp
je 0x140002012
cmp rbp, rdi
jb 0x140002012
sub rbp, rdi
lea rax, [rbp + 1]
cmp rax, rsi
ja 0x140002012
cmp rax, 1
jb 0x140002012
cmp rax, rbp
jb 0x140002012
mov al, 1
jmp 0x140002014
mov esi, dword [rax + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x14000207a
Function at 0x1400027e0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
sub rsp, 0x68
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
call fcn.140002f30
mov ebp, eax
test eax, eax
je 0x1400029d8
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x60], r15
test rbx, rbx
je 0x1400029ae
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400029ae
mov r14d, 0x5a4d
cmp word [rbx], r14w
jne 0x1400029ae
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400029ae
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400029ae
cmp dword [rdi], 0x4550
jne 0x1400029ae
test rdi, rdi
je 0x1400029ae
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400029ae
mov r15d, 0x20b
cmp word [rdi + 0x18], r15w
jne 0x1400029ae
lea rax, vtable.peconv::default_func_resolver.0
mov qword [rsp + 0x88], rsi
xor esi, esi
mov qword [rsp + 0x20], rax
mov edx, 0x40
mov dword [rsp + 0x41], esi
mov rcx, rbx
mov word [rsp + 0x45], si
mov byte [rsp + 0x47], sil
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000293b
cmp word [rbx], r14w
jne 0x14000293b
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14000293b
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000293b
cmp dword [rdi], 0x4550
jne 0x14000293b
test rdi, rdi
je 0x14000293b
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000293b
movzx esi, word [rdi + 0x18]
lea rax, vtable.FillImportThunks.0
cmp si, r15w
mov qword [rsp + 0x28], rax
mov edx, 1
lea rax, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x48], rax
sete byte [rsp + 0x40]
call fcn.140003050
mov rsi, qword [rsp + 0x88]
test rax, rax
jne 0x140002978
mov al, 1
jmp 0x1400029c3
mov ecx, dword [rax]
lea r8, [rcx + rbx]
test r8, r8
je 0x1400029c1
cmp r8, rbx
jb 0x1400029c1
lea rax, [rcx + 0x14]
cmp rax, rbp
ja 0x1400029c1
cmp rax, 0x14
jb 0x1400029c1
cmp rax, rcx
jb 0x1400029c1
lea r9, [rsp + 0x28]
mov rdx, rbp
mov rcx, rbx
call fcn.140002410
jmp 0x1400029c3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._ERROR__Loader_Payload_bitness_mismatch._n
call fcn.1400013d0
xor al, al
mov r14, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000ad30
add rsp, 0x68
pop rbp
pop rbx
ret
Function at 0x140002c70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140002c95
test rdx, rdx
je 0x140002ca7
cmp rdx, 0x40
jae 0x140002cb6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002c95
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140002c95
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x140002c95
lea rbx, [rax + rdi]
mov rcx, rax
test rsi, rsi
je 0x140002cfb
test rbx, rbx
je 0x140002c95
cmp rbx, rdi
jb 0x140002c95
add rax, 0xf8
cmp rax, rsi
ja 0x140002c95
cmp rax, 0xf8
jb 0x140002c95
cmp rax, rcx
jb 0x140002c95
jmp 0x140002d0d
mov edx, 0xf8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002c95
mov rsi, qword [rsp + 0x38]
xor eax, eax
cmp dword [rbx], 0x4550
cmovne rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002d30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140002e17
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002e17
mov edi, 0x5a4d
cmp word [rbx], di
jne 0x140002e17
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140002e17
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002e17
cmp dword [rsi], 0x4550
jne 0x140002e17
test rsi, rsi
je 0x140002e17
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002e04
cmp word [rbx], di
jne 0x140002e04
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140002e04
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002e04
cmp dword [rdi], 0x4550
jne 0x140002e04
test rdi, rdi
je 0x140002e04
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002e04
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x140002e17
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002e30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140002f17
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002f17
mov edi, 0x5a4d
cmp word [rbx], di
jne 0x140002f17
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140002f17
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002f17
cmp dword [rsi], 0x4550
jne 0x140002f17
test rsi, rsi
je 0x140002f17
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002f17
cmp word [rbx], di
jne 0x140002f17
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140002f17
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002f17
cmp dword [rdi], 0x4550
jne 0x140002f17
test rdi, rdi
je 0x140002f17
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002f17
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140002f17
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140002f30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140003039
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140003039
mov esi, 0x5a4d
cmp word [rbx], si
jne 0x140003039
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140003039
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140003039
cmp dword [rdi], 0x4550
jne 0x140003039
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000301e
cmp word [rbx], si
jne 0x14000301e
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14000301e
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000301e
cmp dword [rdi], 0x4550
jne 0x14000301e
test rdi, rdi
je 0x14000301e
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000301e
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14000301e
mov rcx, rbx
call fcn.140002e30
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140002d30
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret