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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00414900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004148e0]
test rbx, rbx
je 0x4024c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4024bb
test r12, r12
je 0x4024bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024a0
lea rcx, [0x00414900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4026f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402700
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402710
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402755
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40274c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402757
add rax, 0x28
cmp rax, r9
jne 0x402738
xor eax, eax
ret

Function at 0x402800
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00411390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402879
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402879
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402876
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40286d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402879
add r8, 0x28
cmp r8, r9
jne 0x402858
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402960
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00411390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x4029cf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029cf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x4029cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4029c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029d8
add rax, 0x28
cmp rax, r9
jne 0x4029b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x4029f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00411390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402a68
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a68
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402a68
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a68
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402a5c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402a70
add rdx, 0x28
cmp rdx, r10
jne 0x402a48
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402a80
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402a8e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402a65
test r8d, r8d
jg 0x402a78
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x10001e024
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000301f8], rdi
je 0x10001e07d
cmp rax, rdi
jne 0x10001e070
mov esi, 1
jmp 0x10001e07d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e057
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e092
lea ecx, [rax + 0x1e]
call fcn.10014e000
jmp 0x10001e0f7
mov eax, dword [0x1000301f0]
test eax, eax
jne 0x10001e0ed
mov dword [0x1000301f0], 1
lea r12, [0x100001690]
lea rdi, [0x100001678]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001e0df
test eax, eax
jne 0x10001e0df
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001e0d4
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001e0bd
test eax, eax
je 0x10001e0f7
mov eax, 0xff
jmp 0x10001e241
mov dword [0x10002f924], 1
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e11f
lea rdx, [0x100001670]
lea rcx, [0x1000015f8]
call sub.msvcrt.dll__initterm
mov dword [0x1000301f0], 2
test esi, esi
jne 0x10001e12c
xor eax, eax
xchg qword [0x1000301f8], rax
cmp qword [0x100030210], 0
je 0x10001e155
lea rcx, [0x100030210]
call fcn.10001e5dc
test eax, eax
je 0x10001e155
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100030210]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e176
test esi, esi
jne 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e18a
cmp byte [rdi], 0x20
ja 0x10001e18a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e176
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100008db4
mov dword [0x10002f920], eax
cmp dword [0x10002f904], 0
jne 0x10001e1c9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10002f924], 0
jne 0x10001e1de
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10002f920]
jmp 0x10001e241
cmp byte [rdi], 0x22
jne 0x10001e1f2
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10001e207
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e168
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.10001e6e4
add rsp, 0x28
jmp 0x10001e024
Function at 0x140002da0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140002e57
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140002e57
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140002e52
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140002e30
cmp r8d, 0xc03433cb
je 0x140002e5c
test r9d, r9d
jne 0x140002e10
mov rax, qword [rax]
jmp 0x140002de0
mov edx, dword [rbx + 0x24]
mov rcx, rsi
add rdx, r10
movzx r8d, word [rdx + r9*2]
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov eax, dword [rdx + r8*4]
lea rdx, [rsp + 0x20]
add rax, r10
call rax
test eax, eax
je 0x140002f64
cmp dword [rsp + 0x20], 0
jne 0x140002f5f
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140002f27
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140002f27
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140002f22
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140002f00
cmp r8d, 0x9ef8ee4d
je 0x140002f2c
test r9d, r9d
jne 0x140002ee0
mov rax, qword [rax]
jmp 0x140002eb0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x28]
add rax, r10
call rax
cmp word [rsp + 0x28], 0
mov eax, 0x40
mov ecx, 0x20
cmove eax, ecx
jmp 0x140002f64
mov eax, 0x20
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003e30
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400047bc
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00569550]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00569560]
mov dword [rax], 1
mov rax, qword [0x00569570]
mov dword [rax], 1
mov rax, qword [0x00569540]
mov dword [rax], 1
mov rax, qword [0x00569420]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x00569530]
mov dword [0x0058a020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00569510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x005694f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x005693d0]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x426230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::hc8ed33f0e5a9570c
jmp sym.std::sys::common::thread_local::os_local::Key_T_::get::h8cebc9cc1b647b6a

Function at 0x426260
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov rsi, qword [rax]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x42627c
dec ecx
jmp 0x426286
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
mov edx, 1
call fcn.0052a788
mov rdi, qword [rsp + 0x20]
cmp qword [rdi + 8], 0
je 0x4262b4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x4262b4
lock dec qword [rax]
jne 0x4262b4
lea rcx, [rdi + 0x10]
call sym.alloc::sync::Arc_T_::drop_slow::hd67d1171c39949f9
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4262d2
dec ecx
jmp 0x4262dc
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
xor edx, edx
call fcn.0052a788
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x426330
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x426347
dec ecx
jmp 0x426351
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
mov edx, 1
call fcn.0052a788
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x426379
dec ecx
jmp 0x426383
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.0052a788
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x426900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::hc1573d8f1de25f88
jmp sym.std::sys::common::thread_local::os_local::Key_T_::get::h94922ecfb6014699

Function at 0x426910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x426940
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x426955
cmp dword [rax + 8], 0
je 0x426955
add rax, 0xc
jmp 0x4269ff
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x426931
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x4269e4
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x4269fd
mov rbx, rax
test rax, rax
jne 0x4269b5
mov rax, qword [0x005694a8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x426a13
mov rbx, rax
mov qword [rax], rdi
mov dword [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x426a07
dec ecx
mov rdx, rbx
call fcn.0052a788
test rsi, rsi
je 0x4269cf
cmp dword [rsi], 0
mov dword [rsi], 0
mov ecx, 0x53db1ca7
je 0x4269d4
mov ecx, dword [rsi + 4]
jmp 0x4269d4
mov ecx, 0x53db1ca7
lea rax, [rbx + 0xc]
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], ecx
jmp 0x4269ff
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x426971
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
jmp 0x4269ad
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x426a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x426a64
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x426a79
mov rdi, rax
cmp qword [rax + 8], 0
je 0x426a79
add rdi, 8
jmp 0x426b42
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x426a51
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x426b27
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x426b40
mov rdi, rax
test rax, rax
jne 0x426ade
mov rax, qword [0x005694a8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x426b5c
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x426b4d
dec ecx
mov rdx, rdi
call fcn.0052a788
test rsi, rsi
je 0x426af2
mov rbx, qword [rsi]
mov qword [rsi], 0
test rbx, rbx
jne 0x426b1e
call sym.std::thread::current::haaa5b6c043415f81
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call sym.std::thread::Thread::id::h03410d8041ed3984
mov rbx, rax
mov rax, qword [rsp + 0x28]
lock dec qword [rax]
jne 0x426b1e
lea rcx, [rsp + 0x28]
call sym.alloc::sync::Arc_T_::drop_slow::h741ca8a467f24300
add rdi, 8
mov qword [rdi], rbx
jmp 0x426b42
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x426a95
xor edi, edi
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
jmp 0x426ad6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x426b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x426c94
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x426bc3
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x426c8e
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x426cb9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x426cd2
mov rdi, rax
test rax, rax
jne 0x426c40
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rbx
mov rax, qword [0x005694a8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x426cee
mov rdi, rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdi], xmm0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x426cdf
dec ecx
mov rdx, rdi
call fcn.0052a788
test rsi, rsi
je 0x426cb2
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x426cb2
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x426c8e
test rcx, rcx
je 0x426c8e
lock dec qword [rcx]
jne 0x426c8e
lea rcx, [rsp + 0x30]
call sym.alloc::sync::Arc_T_::drop_slow::hd67d1171c39949f9
add rdi, 0x10
jmp 0x426cd4
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x426bb5
jmp 0x426bc3
call sym.crossbeam_channel::context::Context::new::h93f1ae9dfe8b0ebd
jmp 0x426c56
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x426bdf
xor edi, edi
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
jmp 0x426c38
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x427b80
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
add qword [rdx + 0x30], 8
mov rcx, qword [rcx]
mov qword [rsp], rcx
mov r9, qword [rdx + 0x40]
test r9, r9
je 0x427c22
mov r11d, 8
mov r8d, 8
sub r8, r9
cmp r8, 8
cmovb r11, r8
xor r10d, r10d
xor eax, eax
cmp r11, 4
mov ecx, ecx
cmovae r10, rcx
setae al
lea rcx, [rax*4 + 1]
shl rax, 2
cmp rcx, r11
jae 0x427beb
movzx esi, word [rsp + rax]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
or rax, 2
cmp rax, r11
jae 0x427c00
movzx r11d, byte [rsp + rax]
shl eax, 3
mov ecx, eax
shl r11, cl
or r10, r11
lea ecx, [r9*8]
shl r10, cl
or r10, qword [rdx + 0x38]
mov qword [rdx + 0x38], r10
cmp r9, 8
jbe 0x427c27
add r9, 8
jmp 0x427d66
xor r8d, r8d
jmp 0x427c7b
mov r9, qword [rdx + 0x18]
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx]
add rax, rcx
rol rcx, 0xd
xor r9, r10
xor rcx, rax
rol rax, 0x20
mov r11, qword [rdx + 8]
add r11, r9
rol r9, 0x10
xor r9, r11
add rax, r9
rol r9, 0x15
xor r9, rax
add r11, rcx
rol rcx, 0x11
mov qword [rdx + 0x18], r9
xor rcx, r11
rol r11, 0x20
mov qword [rdx + 0x10], rcx
mov qword [rdx + 8], r11
xor rax, r10
mov qword [rdx], rax
mov eax, 8
sub rax, r8
mov r9d, eax
and r9d, 7
and rax, 0xfffffffffffffff8
cmp r8, rax
jae 0x427d02
mov rcx, qword [rdx]
mov r10, qword [rdx + 8]
mov rsi, qword [rdx + 0x18]
mov r11, qword [rdx + 0x10]
nop word cs:[rax + rax]
add rcx, r11
rol r11, 0xd
mov rdi, qword [rsp + r8]
xor r11, rcx
rol rcx, 0x20
xor rsi, rdi
add r10, rsi
rol rsi, 0x10
xor rsi, r10
add rcx, rsi
rol rsi, 0x15
add r10, r11
rol r11, 0x11
xor r11, r10
rol r10, 0x20
xor rsi, rcx
xor rcx, rdi
add r8, 8
cmp r8, rax
jb 0x427cb0
mov qword [rdx + 0x18], rsi
mov qword [rdx + 0x10], r11
mov qword [rdx + 8], r10
mov qword [rdx], rcx
cmp r9d, 3
jbe 0x427d1f
mov r10d, dword [rsp + r8]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x427d30
jmp 0x427d4a
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x427d4a
lea rcx, [rax + r8]
movzx r11d, word [rsp + rcx]
lea ecx, [rax*8]
shl r11, cl
or r10, r11
or rax, 2
cmp rax, r9
jae 0x427d62
add r8, rax
movzx r8d, byte [rsp + r8]
shl eax, 3
mov ecx, eax
shl r8, cl
or r10, r8
mov qword [rdx + 0x38], r10
mov qword [rdx + 0x40], r9
add rsp, 8
pop rdi
pop rsi
ret

Function at 0x427f80
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x427f97
dec ecx
jmp 0x427fa1
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
mov edx, 1
call fcn.0052a788
cmp qword [rsi + 8], 0
je 0x427fbb
lea rcx, [rsi + 8]
call sym.__crossbeam_utils::sync::sharded_lock::Registration_as_core::ops::drop::Drop_::drop::h1c06661a9d7fd222
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x427fd9
dec ecx
jmp 0x427fe3
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.0052a788
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x429270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x4292a1
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4292b6
cmp qword [rax + 8], 0
je 0x4292b6
add rax, 8
jmp 0x42935c
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x429291
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x429341
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x42935a
mov rbx, rax
test rax, rax
jne 0x42932b
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rdi
mov rax, qword [0x005694a8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x429370
mov rbx, rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x429364
dec ecx
mov rdx, rbx
call fcn.0052a788
add rbx, 8
mov rcx, rbx
mov rdx, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp sym.std::sys::common::thread_local::lazy::LazyKeyInner_T_::initialize::h16f8f01950f47c1a
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x4292d2
xor eax, eax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h01dafbee67694799
mov ecx, eax
jmp 0x429323
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2

Function at 0x42ea50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call sym.rand::rngs::adapter::reseeding::fork::get_fork_counter::h848c52200c44c87a
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jle 0x42ea94
mov rdx, qword [rdi + 0x40]
sub rdx, rax
js 0x42ea94
add rcx, 0xffffffffffffff00
mov qword [rdi + 0x38], rcx
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sym.rand_chacha::guts::refill_wide::h14a00b55c2f3a933
mov rcx, rdi
mov rdx, rsi
mov r8, rax
add rsp, 0x28
pop rdi
pop rsi
jmp sym._ZN4rand4rngs7adapter9reseeding29ReseedingCore_LT_R_C_Rsdr_GT_19reseed_and_generate17h8e04d5cad45d50c0E.llvm.86793173839253161