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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test rcx, rcx
mov rsi, rcx
mov rbp, rdx
je 0x41ae30
lea rdi, [0x004b9158]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x41ae30
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x41ae30
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x41ae30
test byte [rbx + 0x44], 4
jne 0x41ae40
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x004b9168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41ae60
cmp rsi, qword [rax + 0x1d8]
je 0x41ae90
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x41adbb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x41adca
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 0x41adde
call rsi
test rbp, rbp
mov qword [rbx + 0x30], 0
je 0x41ae78
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x41ae97
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x41ae50
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 0x41ae26
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x41ad96
jmp 0x41ada3
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x41ae04
mov eax, 0x24
jmp 0x41ae35
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x41aea0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x004b9158]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
test rax, rax
mov rbx, rax
je 0x41afc0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x41afc0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x41afc0
test byte [rbx + 0x44], 4
jne 0x41afe0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x004b9168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41b020
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x41b060
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x41af47
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41b000
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41af5b
call rsi
test rdi, rdi
mov qword [rbx + 0x30], 0
je 0x41b038
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 0x41b072
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x41b050
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.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 0x41af43
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x41afae
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x41af15
jmp 0x41af1c
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x41af80
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x41afa4
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x41afae
call sym.replace_spin_keys.part.0
nop
nop dword [rax + rax]

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x004bbed0], 0
jne 0x41ef46
mov byte [global_terminating], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x41ef1c
mov rbx, qword [rax + 8]
lea r9, [rsp + 0x2c]
xor eax, eax
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call dbg.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x41ef0d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x004bc8c1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x41ef08
mov rcx, rdi
call sym.free
call dbg.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x41eed7
mov ecx, 2
call qword [sym.__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.__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 0x41efdb
call dbg.__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 dbg.__cxa_end_catch
jmp 0x41ef41
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x41ef41

Function at 0x47e140
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
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x47e188
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x47e15a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x490980
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
mov rdi, rcx
je 0x4909a8
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]
lea rsi, [rsp + 0x2c]
mov ebx, 4
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x4909f0
cdqe
add rsi, rax
sub rbx, rax
jne 0x4909c0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x4909fc
call rbp
cmp dword [rax], 4
je 0x4909c0
lea rcx, str.random_device_could_not_be_read
call dbg.std::__throw_runtime_error(char const*)
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4b8300
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rcx, [0x004b9780]
xor edx, edx
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
lea rcx, str.GLIBCXX_TUNABLES
pxor xmm0, xmm0
mov qword [0x004b9798], 0
movups xmmword [0x004b9788], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
mov dword [rsp + 0x58], 0x100
lea rax, str.obj_size
test rbx, rbx
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
jne 0x4b83b5
jmp 0x4b8462
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
test rax, rax
mov rbx, rax
je 0x4b8410
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x4b83a0
cmp qword [rbx + 7], r12
jne 0x4b83a0
cmp byte [rbx + 0xf], 0x2e
jne 0x4b83a0
lea rbp, [rsp + 0x30]
add rbx, 0x10
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x4b83fb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x4b8405
cmp byte [rbx + rsi], 0x3d
je 0x4b8498
add rbp, 0x18
cmp rbp, r13
jne 0x4b83df
jmp 0x4b83a0
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
test rbx, rbx
mov qword [0x004b9798], rbx
jne 0x4b8472
lea rcx, [sym.__tcf_0_3]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x004b9798], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
test rax, rax
mov qword [0x004b9790], rax
je 0x4b84cf
xor edx, edx
mov qword [0x004b9788], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x4b844a
lea rdx, [rsp + 0x28]
xor r8d, r8d
lea rcx, [rbx + rsi + 1]
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x4b84bf
test dl, dl
jne 0x4b83a0
test eax, eax
js 0x4b83a0
mov dword [rbp + 0x10], eax
jmp 0x4b83a0
xor ecx, ecx
mov qword [0x004b9798], rcx
jmp 0x4b844a

Function at 0x4b87c0
Capabilities:
Create process on windows
Schedule task via at

Disassembly:
sub rsp, 0x28
call sym.__main
mov rax, qword [0x004c2c90]
xor edx, edx
mov rcx, qword [rax]
mov rax, qword [0x004c2cb0]
mov r9d, dword [rax]
mov rax, qword [0x004c2ca0]
mov r8, qword [rax]
add rsp, 0x28
jmp sym.WinMain
Function at 0x140001000
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001100
xor ebx, ebx
mov ecx, 6
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000108e
mov r8d, 0x28
mov dword [rsp + 0x20], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x34], 2
xorps xmm1, xmm1
lea rdx, [rsp + 0x20]
movdqu xmmword [rsp + 0x24], xmm0
lea ecx, [r8 - 0x27]
movdqu xmmword [rsp + 0x38], xmm1
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x28
mov dword [rsp + 0x34], 4
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140001023
mov r8d, 0x28
mov dword [rsp + 0x20], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x34], 2
xorps xmm1, xmm1
lea rdx, [rsp + 0x20]
movdqu xmmword [rsp + 0x24], xmm0
lea ecx, [r8 - 0x27]
movdqu xmmword [rsp + 0x38], xmm1
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x28
mov dword [rsp + 0x34], 4
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
jmp 0x140001023

Function at 0x140001bf8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c42
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c44
xor al, al
add rsp, 0x28
ret
Function at 0x140001b92
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x140014870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400148ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400148e0
cmp r10, r11
jb 0x140014983
cmp r10, rdx
ja 0x140014997
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400148e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400148c0
jmp 0x140014957
ja 0x1400148ea
mov r11, r10
cmp rax, r8
jne 0x140014892
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001495b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140014930
mov r8, r10
sub ecx, r9d
jns 0x14001494e
jmp 0x14001495d
cmp r10, rdx
je 0x140014969
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001495d
xor al, 1
cmp r8, rdx
jne 0x140014910
jmp 0x14001495d
xor eax, eax
jmp 0x14001495d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14010fa89]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14000e4c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140013350
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400132d0
ud2
Function at 0x14001b2c4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test rdx, rdx
je 0x14001b28a
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
and qword [rdx], 0
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
test rcx, rcx
jne 0x14001b29b
lea rcx, [rsp + 0x28]
call fcn.14001b658
call fcn.14001c578
lea rcx, [0x1401c5040]
call fcn.14001bbae
movups xmm0, xmmword [rsi]
lea rdi, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], rax
lea rcx, [rsp + 0x28]
movups xmmword [rcx], xmm0
call fcn.14001b658
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
call fcn.14001b463
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001b341
mov rbx, rax
test rax, rax
jne 0x14001b32b
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov ecx, 0x18
mov edx, 8
call fcn.14001b860
mov rbx, rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
mov rcx, rdi
call fcn.14001b463
mov ecx, eax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
add rbx, 8
mov rcx, rbx
mov rdx, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp 0x14001b258
xor eax, eax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14001b463
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001b399
cmp qword [rax + 8], 0
je 0x14001b399
add rax, 0x10
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14001b2c4
mov rdx, rcx
lea rcx, [0x14010c008]
jmp 0x14001b369
Function at 0x14001b369
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test rdx, rdx
je 0x14001b28a
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
and qword [rdx], 0
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
test rcx, rcx
jne 0x14001b29b
lea rcx, [rsp + 0x28]
call fcn.14001b658
call fcn.14001c578
lea rcx, [0x1401c5040]
call fcn.14001bbae
movups xmm0, xmmword [rsi]
lea rdi, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], rax
lea rcx, [rsp + 0x28]
movups xmmword [rcx], xmm0
call fcn.14001b658
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
call fcn.14001b463
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001b341
mov rbx, rax
test rax, rax
jne 0x14001b32b
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov ecx, 0x18
mov edx, 8
call fcn.14001b860
mov rbx, rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
mov rcx, rdi
call fcn.14001b463
mov ecx, eax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
add rbx, 8
mov rcx, rbx
mov rdx, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp 0x14001b258
xor eax, eax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14001b463
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001b399
cmp qword [rax + 8], 0
je 0x14001b399
add rax, 0x10
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14001b2c4
mov rdx, rcx
lea rcx, [0x14010c008]
jmp 0x14001b369

Function at 0x14001b463
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je fcn.14009d5e0
dec eax
ret

Function at 0x14001b4bc
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, qword [rcx]
mov qword [rsp + 0x28], rdi
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14001b4d8
dec ecx
jmp 0x14001b4e2
mov rcx, rsi
call fcn.14009d5e0
mov ecx, eax
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
lea rcx, [rsp + 0x30]
mov qword [rcx], rdi
call fcn.14001b5af
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14001b504
dec ecx
jmp 0x14001b50e
mov rcx, rsi
call fcn.14009d5e0
mov ecx, eax
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14001c5f8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test rdx, rdx
je 0x14001b28a
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
and qword [rdx], 0
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
test rcx, rcx
jne 0x14001b29b
lea rcx, [rsp + 0x28]
call fcn.14001b658
call fcn.14001c578
lea rcx, [0x1401c5040]
call fcn.14001bbae
movups xmm0, xmmword [rsi]
lea rdi, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], rax
lea rcx, [rsp + 0x28]
movups xmmword [rcx], xmm0
call fcn.14001b658
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
call fcn.14001b463
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001b341
mov rbx, rax
test rax, rax
jne 0x14001b32b
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov ecx, 0x18
mov edx, 8
call fcn.14001b860
mov rbx, rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
mov rcx, rdi
call fcn.14001b463
mov ecx, eax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
add rbx, 8
mov rcx, rbx
mov rdx, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp 0x14001b258
xor eax, eax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14001b463
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001b399
cmp qword [rax + 8], 0
je 0x14001b399
add rax, 0x10
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14001b2c4
mov rdx, rcx
lea rcx, [0x14010c008]
jmp 0x14001b369

Function at 0x14001cecd
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov r12d, 0xffffffff
xor esi, esi
test rdi, rdi
je 0x14001cf37
mov r14, rbx
cmp rdi, r12
mov r15d, 0xffffffff
cmovb r15, rdi
add rbx, r15
sub rdi, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x14001cee9
mov ebp, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14001cee9
add ebp, 0x80000000
mov esi, ebp
mov eax, esi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140025b77
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je fcn.14009d5e0
dec eax
ret

Function at 0x140025b9f
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, qword [rcx]
mov qword [rsp + 0x28], rdi
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140025bbb
dec ecx
jmp 0x140025bc5
mov rcx, rsi
call fcn.14009d5e0
mov ecx, eax
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
lea rcx, [rsp + 0x30]
mov qword [rcx], rdi
call fcn.1400264b2
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140025be7
dec ecx
jmp 0x140025bf1
mov rcx, rsi
call fcn.14009d5e0
mov ecx, eax
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140026d0c
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140024880
cmp rsi, 0x41
jb 0x140026e16
lea r14, [rsp + 0x128]
mov rcx, r14
call fcn.140028b7c
movups xmm0, xmmword [0x140126478]
movaps xmmword [r14 - 0x18], xmm0
movups xmm0, xmmword [0x140126468]
movaps xmmword [r14 - 0x28], xmm0
and qword [r14 - 8], 0
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov qword [rsp + 0x30], rcx
movzx r15d, byte [rax + 0x68]
test r15, r15
je 0x140026e4a
mov r9d, 0x40
sub r9, r15
lea r12, [rsp + 0x90]
mov rcx, r12
mov rdx, rdi
mov r8, rsi
call fcn.140026be3
mov r13, qword [r12]
mov rbp, qword [r12 + 8]
mov rdi, qword [r12 + 0x10]
mov rsi, qword [r12 + 0x18]
lea r8, [0x140125c58]
mov rcx, r14
mov rdx, r15
call fcn.140026c20
lea rcx, [0x140125c70]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r13
mov r9, rbp
call fcn.14002c384
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, r14
call fcn.14002840e
mov r15, rsi
and r15, 0xffffffffffffffc0
mov r12d, esi
and r12d, 0x3f
add r15, rdi
cmp rsi, 0x3f
ja 0x140026e5b
jmp 0x140026e6f
lea r9, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fhmac_0.12.1_srclib.rs
lea rdx, [rsp + 0x50]
mov r8d, 0x40
mov rcx, rsi
call fcn.140024788
lea rcx, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fhmac_0.12.1_srclib.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, rdi
mov r9, rsi
jmp 0x140026f16
mov r15, rsi
and r15, 0xffffffffffffffc0
mov r12d, esi
and r12d, 0x3f
add r15, rdi
shr rsi, 6
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.14002840e
lea r9, [0x140125c88]
mov r8d, 0x40
mov rcx, r12
mov rdx, r14
call fcn.140024788
lea rcx, [0x140125ca0]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r15
mov r9, r12
call fcn.14002c384
lea rsi, [rsp + 0x100]
mov byte [rsi + 0x68], r12b
lea r14, [rsp + 0x90]
mov ecx, 0xe
mov rdi, r14
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14002482f
lea rdi, [rsp + 0xb8]
mov rcx, r14
mov rdx, rdi
mov r8, rsi
call fcn.140024c0c
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rdi - 0x28], xmm0
movaps xmmword [rdi - 0x18], xmm1
lea rax, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fhmac_0.12.1_srclib.rs
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
lea r8, [rsp + 0x90]
mov edx, 0x20
mov r9d, 0x20
call fcn.14002c384
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movups xmm2, xmmword [rsp + 0x70]
movups xmm3, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x30], xmm3
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret