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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400302c0]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x140016380
lea r12, [0x14002c148]
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, r12
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140016380
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140016380
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140016380
test byte [rbx + 0x44], 4
jne 0x1400163a0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14002c158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400163c0
cmp rsi, qword [rax + 0x1d8]
je 0x1400163f0
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001630f
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001631e
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140016332
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x1400163d8
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400163fc
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400163b0
xor eax, eax
jmp 0x140016385
mov eax, 3
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x1400163f7
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 0x16
jmp 0x140016385
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140016385
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x1400162ea
jmp 0x1400162f7
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140016357
mov eax, 0x24
jmp 0x140016385
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140016410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400302c0]
lea r12, [0x14002c148]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rcx, r12
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140016550
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140016550
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140016550
test byte [rbx + 0x44], 4
jne 0x140016560
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14002c158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140016590
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x1400165d0
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x1400164cb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140016570
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400164df
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x1400165a8
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400165e7
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400165c0
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x1400165e2
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 3
jmp 0x140016532
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x16
jmp 0x140016532
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x1400164c7
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140016532
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140016499
jmp 0x1400164a0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140016504
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140016528
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140016532
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x140016ed0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x14002c168]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_spin_lock
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x140016f19
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x140016f19
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call sym.pthread_spin_unlock
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call dbg.fprintf
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop

Function at 0x140017370
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x140017398
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call sym.pthread_mutex_lock
test eax, eax
jne 0x1400173c1
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x1400173d8
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rwl_unref
lea r12, [rsi + 0x20]
mov rcx, r12
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
je 0x140017400
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, ebp
jmp 0x1400173c3
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call sym.pthread_mutex_unlock
mov rcx, rdi
mov esi, eax
call sym.pthread_mutex_unlock
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x1400173c3

Function at 0x140017430
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
call sym.rwl_ref.isra.0
test eax, eax
je 0x140017458
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
mov rdx, rdi
lea rbp, [rsi + 0x18]
mov rcx, rbp
call sym.pthread_mutex_timedlock
test eax, eax
jne 0x140017484
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x1400174a0
mov rcx, rbp
call sym.pthread_mutex_unlock
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rwl_unref
lea r12, [rsi + 0x20]
mov rdx, rdi
mov rcx, r12
call sym.pthread_mutex_timedlock
mov edi, eax
test eax, eax
je 0x1400174d0
cmp eax, 0x8a
je 0x140017500
mov rcx, rbp
call sym.pthread_mutex_unlock
mov edx, edi
jmp 0x140017486
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call sym.pthread_mutex_unlock
mov rcx, rbp
mov esi, eax
call sym.pthread_mutex_unlock
test esi, esi
cmove esi, eax
mov edx, esi
jmp 0x140017486
lock add dword [rsi + 0x10], 1
jmp 0x1400174bc
Function at 0x140017510
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x140017538
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call sym.pthread_mutex_trylock
test eax, eax
jne 0x140017561
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140017578
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rwl_unref
lea r12, [rsi + 0x20]
mov rcx, r12
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
je 0x1400175a0
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, ebp
jmp 0x140017563
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call sym.pthread_mutex_unlock
mov rcx, rdi
mov esi, eax
call sym.pthread_mutex_unlock
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x140017563

Function at 0x1400175d0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x1400175f8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rbp, [rsi + 0x18]
mov rcx, rbp
call sym.pthread_mutex_trylock
mov edx, eax
test eax, eax
jne 0x14001764e
lea r12, [rsi + 0x20]
mov rcx, r12
call sym.pthread_mutex_trylock
mov edi, eax
test eax, eax
jne 0x140017688
mov eax, dword [rsi + 8]
mov edx, 0x10
test eax, eax
jne 0x14001764e
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x140017641
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x140017660
mov dword [rsi + 8], 1
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rwl_unref
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, rbp
mov esi, eax
call sym.pthread_mutex_unlock
test esi, esi
jne 0x140017680
test eax, eax
mov esi, 0x10
cmovne esi, eax
mov edx, esi
jmp 0x14001764e
mov rcx, rbp
call sym.pthread_mutex_unlock
mov edx, eax
test eax, eax
cmove edx, edi
jmp 0x14001764e

Function at 0x1400176a0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call sym.rwl_ref_unlock
test eax, eax
jne 0x140017720
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x1400176f0
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call sym.pthread_mutex_unlock
lea rcx, [rsi + 0x18]
mov edi, eax
call sym.pthread_mutex_unlock
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.rwl_unref
lea rdi, [rsi + 0x20]
mov rcx, rdi
call sym.pthread_mutex_lock
mov edx, eax
test eax, eax
jne 0x1400176dd
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x140017730
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, eax
jmp 0x1400176dd
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call sym.pthread_cond_signal
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call sym.pthread_mutex_unlock
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x1400176dd
Function at 0x140017750
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [0x1400302c0]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x1400177a0
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x1400178c9
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x1400177f1
lea r13, [rsi + 0x20]
mov rcx, r13
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x1400178a0
mov edx, dword [rsi + 8]
test edx, edx
jne 0x1400177ec
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x1400177e8
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x140017820
lock add dword [rsi + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [r12]
jne 0x1400178c9
mov edx, ebp
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.rwl_unref
neg eax
mov qword [rsp + 0x28], rsi
lea r14, [rsi + 0x28]
mov dword [rsi + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x14001786f
mov eax, dword [rsi + 0x10]
test eax, eax
jns 0x1400178b0
mov rdx, r13
mov rcx, r14
call sym.pthread_cond_wait
mov edi, eax
test eax, eax
je 0x140017868
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov ebp, edi
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x20]
jmp 0x1400177f1
mov rcx, rdi
call sym.pthread_mutex_unlock
jmp 0x1400177f1
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
mov dword [rsi + 0xc], 0
jmp 0x1400177ec
call dbg.__stack_chk_fail
nop
nop
Function at 0x1400178d0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x1400302c0]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x1400179b8
test rdx, rdx
je 0x1400179b8
call sym.rwl_ref.isra.0
test eax, eax
je 0x140017938
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi]
jne 0x1400179ea
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rbx]
mov rdx, rsi
lea r12, [rbp + 0x18]
mov rcx, r12
call sym.pthread_mutex_timedlock
mov edx, eax
test eax, eax
jne 0x1400179c8
lea r14, [rbp + 0x20]
mov rdx, rsi
mov rcx, r14
call sym.pthread_mutex_timedlock
mov r13d, eax
test eax, eax
jne 0x1400179d8
mov edx, dword [rbp + 8]
test edx, edx
jne 0x140017987
mov edx, dword [rbp + 0x10]
mov eax, dword [rbp + 0xc]
test edx, edx
jle 0x140017983
sub eax, edx
mov dword [rbp + 0x10], 0
mov dword [rbp + 0xc], eax
test eax, eax
jg 0x1400179f0
lock add dword [rbp + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
jne 0x1400179ea
mov edx, r13d
mov rcx, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.rwl_unref
mov eax, 0x16
jmp 0x140017912
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x140017999
jmp 0x1400179ea
mov rcx, r12
call sym.pthread_mutex_unlock
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x140017996
call dbg.__stack_chk_fail
nop
neg eax
mov qword [rsp + 0x28], rbp
lea r15, [rbp + 0x28]
mov dword [rbp + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x140017a3d
test r12d, r12d
jne 0x140017a55
mov r8, rsi
mov rdx, r14
mov rcx, r15
call sym.pthread_cond_timedwait
mov r12d, eax
mov eax, dword [rbp + 0x10]
test eax, eax
js 0x140017a38
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
test r12d, r12d
jne 0x140017a78
mov dword [rbp + 0xc], 0
jmp 0x140017987
mov rcx, qword [rsp + 0x28]
mov r13d, r12d
call qword [rsp + 0x20]
jmp 0x14001798c
Function at 0x14001a4c0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x14002c240], 0
jne 0x14001a5c6
mov byte [0x14002c240], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001a59c
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 0x14001a58d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14002d261]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001a588
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001a557
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
call sym.abort
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
sub rdx, 1
mov rcx, rax
jne 0x14001a65b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001a5c1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001a5c1

Function at 0x140021c60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140021c88
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
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 0x140021cd0
cdqe
add rsi, rax
sub rbx, rax
jne 0x140021ca0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140021cdc
call rbp
cmp dword [rax], 4
je 0x140021ca0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14002b210
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, [0x14002c200]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x14002c218], 0
movups xmmword [0x14002c208], 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 0x14002b2c5
jmp 0x14002b36f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x14002b320
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x14002b2b0
cmp qword [rbx + 7], r12
jne 0x14002b2b0
cmp byte [rbx + 0xf], 0x2e
jne 0x14002b2b0
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x14002b30b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x14002b315
cmp byte [rbx + rsi], 0x3d
je 0x14002b3a5
add rbp, 0x18
cmp rbp, r13
jne 0x14002b2ef
jmp 0x14002b2b0
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 [0x14002c218], rbx
jne 0x14002b37f
lea rcx, [sym.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x14002c218], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x14002c210], rax
test rax, rax
je 0x14002b3dc
xor edx, edx
mov qword [0x14002c208], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x14002b357
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x14002b3cc
test dl, dl
jne 0x14002b2b0
test eax, eax
js 0x14002b2b0
mov dword [rbp + 0x10], eax
jmp 0x14002b2b0
xor ecx, ecx
mov qword [0x14002c218], rcx
jmp 0x14002b357
Function at 0x1400013a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1400321c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x30], 0x130
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400013e3
xor eax, eax
jmp 0x14000143d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140001430
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call fcn.14000d1b0
test eax, eax
jne 0x14000141d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14000143d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400013f6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007340
add rsp, 0x178
ret
Function at 0x14000618c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400061ba
xor eax, eax
jmp 0x1400062a0
cmp qword [rcx + 0x68], 0
je 0x1400061cb
call fcn.1400062bc
jmp 0x1400062a0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400061e2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400061e4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006216
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140020dc0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000629a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000624d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140006276
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000e094
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000629a
cmp rsi, rbx
ja 0x140006254
test rsi, rsi
je 0x14000629a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000e094
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140008130
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000817a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000817a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000817a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000817a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000817a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000817c
xor al, al
add rsp, 0x28
ret
Function at 0x140010c08
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010c77
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010c77
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010c77
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010c77
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010c77
cmp dword [rcx + 0x84], 0xe
jbe 0x140010c77
cmp dword [rcx + 0xf8], 0
je 0x140010c77
mov ecx, ebx
call fcn.140010d28
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140010b04
nop
cmp dword [rbp + 0x20], 0
je 0x140010cc5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010cd0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140010c08

Function at 0x140010e0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010c08