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

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14014aec8]
test eax, eax
jne 0x14003fe58
xor eax, eax
add rsp, 0x28
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003fe88
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14003fe4e
test byte [rax + 0x40], 3
je 0x14003fe4e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14003fe50
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003fe6e
jmp 0x14003fe4e

Function at 0x14003fea0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003fee0
test ebx, ebx
jle 0x14003fed0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003febd
add rsp, 0x20
pop rbx
ret

Function at 0x14003ffd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140040048
test byte [rbx + 0x40], 0xc
jne 0x14003ffff
mov eax, dword [0x14014aec8]
test eax, eax
jne 0x140040010
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call dbg.pthread_mutex_lock
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140040033
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140040033
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14004005c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.pthread_mutex_unlock
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x14003ffef
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14004007a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call dbg.pthread_mutex_unlock
call dbg._pthread_invoke_cancel
nop
nop dword [rax + rax]
Function at 0x140040090
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140040100
call sym._pthread_time_in_ms_from_timespec
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140040138
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140040190
test esi, esi
je 0x140040116
call dbg.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140040170
mov edx, edi
call dbg._pthread_wait_for_single_object
call dbg.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140040180
call dbg.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call dbg.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400400d5
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x1400400d5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400400ee
call sym.__pthread_self_lite.part.0
jmp 0x140040116
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x1400400d1

Function at 0x1400401a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140040210
test esi, esi
je 0x1400401f0
call dbg.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140040220
mov edx, esi
call dbg._pthread_wait_for_single_object
call dbg.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call dbg.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call dbg.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x1400401c1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400401da
Function at 0x140040230
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
test rcx, rcx
je 0x140040320
lea rdi, [0x140102338]
mov rcx, rdi
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call dbg.pthread_mutex_unlock
test rbx, rbx
je 0x140040320
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140040320
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140040320
lea rbp, [rbx + 0x38]
mov rcx, rbp
call dbg.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140040430
movzx edx, byte [rbx + 0x40]
cmp rsi, qword [rax + 0x1d8]
je 0x140040338
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
je 0x140040390
test dl, 3
jne 0x140040310
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x14014aec8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140040301
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
jmp 0x140040325
mov rcx, rbp
call dbg.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x140040309
nop
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x140040310
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x14014aec8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14004035d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x140040301
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call dbg.pthread_mutex_unlock
call dbg._pthread_invoke_cancel
nop word [rax + rax]
test dl, 0xc
jne 0x140040310
and edx, 0xf
jne 0x140040320
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140040301
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [dbg._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x14014aec8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140040418
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140040301
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x1400402c0
movzx edx, byte [rbx + 0x40]
jmp 0x1400402cd
Function at 0x140040450
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140102338]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call dbg.pthread_mutex_lock
mov rcx, rbx
call dbg.__pthread_get_pointer
test rax, rax
je 0x1400404c8
cmp qword [rax + 0x1d8], rbx
jne 0x1400404c8
test byte [rax + 0x40], 0xc
jne 0x1400404c8
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x1400404c8
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x1400404c8
mov rcx, rdi
call dbg.pthread_mutex_unlock
test esi, esi
je 0x1400404e0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400404e8
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp dbg.pthread_cancel
mov rcx, rdi
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x1400404d5
mov eax, 0x16
jmp 0x1400404d5

Function at 0x140040680
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400406f0
cmp esi, 1
ja 0x1400406fd
lea rbp, [rbx + 0x38]
mov rcx, rbp
call dbg.pthread_mutex_lock
test rdi, rdi
je 0x1400406c4
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call dbg.test_cancel_locked
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x1400406a6
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140040710
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140040788
mov ebp, esi
and ebp, 0xfffffffd
jne 0x140040795
lea r12, [rbx + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
test rdi, rdi
je 0x140040758
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call dbg.test_cancel_locked
mov rcx, r12
call dbg.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140040738
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140040a40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
test rcx, rcx
je 0x140040b60
lea rdi, [0x140102338]
mov rcx, rdi
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call dbg.pthread_mutex_unlock
test rbx, rbx
je 0x140040b60
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140040b60
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140040b60
test byte [rbx + 0x44], 4
jne 0x140040b70
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140040b90
cmp rsi, qword [rax + 0x1d8]
je 0x140040bb8
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x140040aeb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140040afa
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 0x140040b0e
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rbp, rbp
je 0x140040ba8
mov rax, qword [rbx + 8]
mov qword [rbp], rax
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x140040bbf
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140040b80
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140040b56
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140040ac6
jmp 0x140040ad3
call dbg.pthread_mutex_destroy
jmp 0x140040b30
mov eax, 0x24
jmp 0x140040b65
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140040bd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x140102338]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140040cf0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140040cf0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140040cf0
test byte [rbx + 0x44], 4
jne 0x140040d10
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140102348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140040d50
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x140040d88
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x140040c77
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140040d30
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140040c8b
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x140040d68
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x140040d9a
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140040d78
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x140040c73
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140040cde
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140040c45
jmp 0x140040c4c
call dbg.pthread_mutex_destroy
jmp 0x140040cac
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140040cd4
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140040cde
call sym.replace_spin_keys.part.0
nop

Function at 0x14004dec0
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 0x14004deec
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14004eb10
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1401050c0], 0
jne 0x14004ec16
mov byte [0x1401050c0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14004ebec
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 [dbg.__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 0x14004ebdd
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14010f9f1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14004ebd8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14004eba7
mov ecx, 2
call qword [dbg.__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 [dbg.__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 0x14004ecab
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 0x14004ec11
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14004ec11

Function at 0x1400b5370
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.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 0x1400b53b8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400b538a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400c8020
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 0x1400c8048
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.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 0x1400c8090
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400c8060
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400c809c
call rbp
cmp dword [rax], 4
je 0x1400c8060
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 0x140009c9e
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x14000f451
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r14, rdx
mov rsi, rcx
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, r8
mov r8, r9
call fcn.14000f424
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
mov ecx, 0x800
call fcn.1400587e1
mov rbx, rax
lea r12, [rsp + 0x40]
mov qword [r12], rax
mov qword [r12 + 8], rdx
and qword [r12 + 0x10], 0
mov rdi, qword [rdi]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x14000f4e8
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.1400af146
mov rbx, qword [rsp + 0x40]
jmp 0x14000f4b3
test eax, eax
jne 0x14000f50a
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x14000f528
movabs rax, 0xde00000002
jmp 0x14000f512
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140055b9e
jmp 0x14000f53c
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400ae39a
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000fd29
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
mov r15, qword [rdx + 0x10]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1400af174
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.1400af174
movdqa xmm0, xmmword [rsi + 0x1d0]
pxor xmm0, xmmword [rdi]
aesdec xmm0, xmmword [rsi + 0x1c0]
aesdec xmm0, xmmword [rsi + 0x1b0]
aesdec xmm0, xmmword [rsi + 0x1a0]
aesdec xmm0, xmmword [rsi + 0x190]
aesdec xmm0, xmmword [rsi + 0x180]
aesdec xmm0, xmmword [rsi + 0x170]
aesdec xmm0, xmmword [rsi + 0x160]
aesdec xmm0, xmmword [rsi + 0x150]
aesdec xmm0, xmmword [rsi + 0x140]
aesdec xmm0, xmmword [rsi + 0x130]
aesdec xmm0, xmmword [rsi + 0x120]
aesdec xmm0, xmmword [rsi + 0x110]
aesdec xmm0, xmmword [rsi + 0x100]
aesdeclast xmm0, xmmword [rsi + 0xf0]
movdqa xmmword [rdi], xmm0
xor eax, eax
cmp rax, 0x10
je 0x14000fe02
mov cl, byte [r14 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
jmp 0x14000fdef
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [r15], xmm0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140023aae
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14002ca40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14002cad0
cmp r11, r10
ja 0x14002cb46
cmp r10, rdx
ja 0x14002cb5a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14002cad2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14002cab0
jmp 0x14002cb34
ja 0x14002cada
mov r11, r10
cmp rax, r8
jne 0x14002ca74
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14002cb10
mov rdi, r8
sub ecx, edx
jns 0x14002cb2b
jmp 0x14002cb36
cmp r8, rsi
je 0x14002cb6b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14002cb36
xor al, 1
cmp rdi, rsi
jne 0x14002caf0
jmp 0x14002cb36
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400284c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140027a70
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140027e10
ud2