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

Disassembly:
push rsi
sub rsp, 0x80
mov ecx, dword [0x140145140]
test ecx, ecx
je 0x1400af7fa
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400af6c1
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x1400af82c
mov ecx, dword [0x140145140]
test ecx, ecx
je 0x1400af832
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400af84f
mov rsi, rax
test rax, rax
jne 0x1400af756
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x1400af713
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400af870
mov rcx, rax
mov qword [0x1401be0e8], rax
mov r8d, 0x60
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400af870
mov rsi, rax
lea rax, [0x140145128]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140145140]
test ecx, ecx
je 0x1400af85d
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsi + 0x48]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x18]
movups xmm2, xmmword [rsi + 0x28]
movups xmm3, xmmword [rsi + 0x38]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 8], 1
movups xmm0, xmmword [0x1401886d8]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [0x1401886c8]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [0x1401886b8]
movups xmmword [rsi + 0x30], xmm0
movups xmm0, xmmword [0x1401886a8]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [0x140188698]
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x20], 0
je 0x1400af82c
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x1400af82c
lea rcx, [rsp + 0x38]
test rax, rax
je 0x1400af81c
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x1400af82c
call fcn.140090570
jmp 0x1400af82c
lea rcx, [0x140145128]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400af6b3
jmp 0x1400af6c1
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x1400af82c
call fcn.1400904d0
add rsi, 0x10
jmp 0x1400af851
lea rcx, [0x140145128]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400af6e0
xor esi, esi
mov rax, rsi
add rsp, 0x80
pop rsi
ret
lea rcx, [0x140145128]
call fcn.1400ee340
mov ecx, eax
jmp 0x1400af74e
mov ecx, 8
mov edx, 0x60
call fcn.140007810
ud2
Function at 0x1400b8ca0
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
lea rcx, [rdx + 0xc0]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x1400b8cd6
xor r15d, r15d
jmp 0x1400b8d4b
mov rbx, qword [rsp + 0x28]
mov r14, qword [rbx + 8]
mov edi, dword [rbx + 0x10]
test rdi, rdi
je 0x1400b8d2f
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x1400b8d0e
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400b8d20
mov rcx, rax
mov qword [0x1401be0e8], rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapAlloc
mov r15, rax
test rax, rax
jne 0x1400b8d35
mov ecx, 1
mov rdx, rdi
call fcn.140007810
ud2
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call sub.crypt32.dll_CertFreeCertificateContext
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 8], r15
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400daff0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov r8d, 0xb
mov rdx, rax
call fcn.1400df7f0
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x1400db057
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400db194
mov rcx, rax
mov qword [0x1401be0e8], rax
mov r8d, 0x800
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400db194
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x800
mov qword [rsp + 0x48], 0
mov r14, qword [rsp + 0x50]
lea rbp, [rsp + 0x30]
lea r15, [rsp + 0x34]
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
sub r12, r13
nop word cs:[rax + rax]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400db0f0
mov r8d, dword [rsp + 0x30]
cmp r12, r8
jae 0x1400db0b0
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140058000
mov rbx, qword [rsp + 0x38]
jmp 0x1400db096
test eax, eax
jne 0x1400db121
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x1400db176
movabs rax, 0xde00000002
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
cmp qword [rsp + 0x40], 0
jne 0x1400db138
jmp 0x1400db149
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
cmp qword [rsp + 0x40], 0
je 0x1400db149
mov rcx, qword [0x1401be0e8]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0x58], 0
je 0x1400db164
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1401be0e8]
xor edx, edx
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
cmp qword [rsp + 0x58], 0
jne 0x1400db151
jmp 0x1400db164
mov ecx, 1
mov edx, 0x800
call fcn.140007810
ud2

Function at 0x1400e8480
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000aed0
cmp rax, rcx
je 0x1400e84a5
cmp rdx, 4
jae 0x1400e84a8
xor eax, eax
xor r8d, r8d
jmp 0x1400e8540
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14014a4d0]
movdqa xmm3, xmmword [0x14014a4e0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400e84d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400e8557
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400e8540
ret
Function at 0x1400e94f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x1400e954b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400e954b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x1400e9566
cmp eax, 0x42
jne 0x1400e954b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400e9616
cmp byte [r8 + r11], 0x5f
jne 0x1400e9616
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400e967e
mov rcx, rsi
xor edx, edx
call fcn.1400e4bf0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1400e4bf0
test al, al
jne 0x1400e9711
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400e95a2
lea rdx, [0x14018290b]
mov r8d, 1
call fcn.14000be30
test al, al
jne 0x1400e9711
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400e955a
xor r14d, r14d
lea rbx, [0x140182c79]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400e95d4
cmp byte [rax + rcx], 0x45
je 0x1400e973a
sub r14, 1
jb 0x1400e95f9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400e95f9
mov r8d, 2
mov rdx, rbx
call fcn.14000be30
test al, al
jne 0x1400e9711
mov rcx, rsi
call fcn.1400e6460
test al, al
jne 0x1400e9711
mov rax, qword [rsi]
test rax, rax
jne 0x1400e95c0
jmp 0x1400e955a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x1400e96d8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1400e9672
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400e965c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400e964b
add dl, 0xa9
jmp 0x1400e965a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400e96d8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400e96d8
movzx edx, bl
add rax, rdx
jae 0x1400e9620
jmp 0x1400e96d8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400e96d8
cmp rax, rcx
jae 0x1400e96d5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400e9719
cmp qword [rsi + 0x20], 0
je 0x1400e9733
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400e94f0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400e955c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400e9728
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_____::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140182c58]
test r9b, r9b
cmovne rdx, rax
call fcn.14000be30
test al, al
je 0x1400e9728
mov dil, 2
jmp 0x1400e955a
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400e96e3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400e955a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400e955a
Function at 0x1400ee340
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400ee3c5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1400ee406
cmp dword [rsp + 0x2c], 0
je 0x1400ee3ea
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400ee42e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401be120]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401be120], rsi
jne 0x1400ee3a0
mov byte [0x1401be118], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400ee3fc
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400ee47a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400ee3ef
mov edi, dword [rsp + 0x28]
jmp 0x1400ee3fc
mov edi, dword [rsi + 0x18]
jmp 0x1400ee3fa
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x140186078]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.1400eea90
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.NoneSome
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.14000a710
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.NoneSome
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400eead0
ud2
Function at 0x1400ee930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140145088]
test ecx, ecx
je 0x1400ee960
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400ee979
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400ee979
add rdi, 0x10
jmp 0x1400eea5a
lea rcx, [0x140145070]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400ee94d
mov ecx, dword [0x140145088]
test ecx, ecx
je 0x1400eea3b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400eea58
mov rsi, rax
test rax, rax
jne 0x1400eea0a
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x1400ee9cb
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400eea74
mov rcx, rax
mov qword [0x1401be0e8], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400eea74
mov rsi, rax
lea rax, [0x140145070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140145088]
test ecx, ecx
je 0x1400eea64
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400eea5a
test rcx, rcx
je 0x1400eea5a
lock dec qword [rcx]
jne 0x1400eea5a
call fcn.1400409e0
jmp 0x1400eea5a
lea rcx, [0x140145070]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400ee998
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140145070]
call fcn.1400ee340
mov ecx, eax
jmp 0x1400eea02
mov ecx, 8
mov edx, 0x18
call fcn.140007810
ud2
Function at 0x1400efd80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140185768]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400efdf1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400efe27
test eax, eax
js 0x1400efe02
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400efe1a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1401857d0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400ee750
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400edb50
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140145068]
test ecx, ecx
je 0x1400f02ed
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400f0306
cmp qword [rax + 8], 0
je 0x1400f0306
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140145050]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400f02dc
mov ecx, dword [0x140145068]
test ecx, ecx
je 0x1400f03b1
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400f03ce
mov rsi, rax
test rax, rax
jne 0x1400f0393
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x1400f0358
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400f03e6
mov rcx, rax
mov qword [0x1401be0e8], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400f03e6
mov rsi, rax
lea rax, [0x140145050]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140145068]
test ecx, ecx
je 0x1400f03d6
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140145050]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400f0325
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140145050]
call fcn.1400ee340
mov ecx, eax
jmp 0x1400f038b
mov ecx, 8
mov edx, 0x20
call fcn.140007810
ud2
Function at 0x1400f3f90
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x88], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0xa0], 7
mov qword [rsp + 0xa4], 0
mov word [rsp + 0xac], 0
mov byte [rsp + 0xa8], 1
lea r8, [rsp + 0x88]
mov rcx, rdx
mov rdx, rax
call fcn.14010d340
mov rdi, rdx
test rax, rax
je 0x1400f402c
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call fcn.1400eda90
mov qword [rsi], 0
jmp 0x1400f41fd
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x1400f40e8
test dword [rsp + 0x40], 0x400
je 0x1400f408d
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1400f40e8
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x1400f413d
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400f41c0
mov rbx, qword [rsp + 0x40]
jmp 0x1400f413f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], 2
call fcn.1400eda90
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x1400f41af
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x1400f41af
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400f41f5
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400f41f5
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call fcn.1400eda90
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14010dca0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
lea rcx, [rsp + 0xa8]
call fcn.1400f0750
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14010de0b
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x14010dd60
jmp 0x14010dd3f
jae 0x14010de21
cmp r8, 0x201
jae 0x14010dd60
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14010dda7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14010dd87
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.1400f0bf0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x14010ddd2
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14010ded1
mov r8d, r15d
cmp r12, r8
jne 0x14010dd30
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14010defb
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14010dd3f
jmp 0x14010dd60
lea rcx, [rsp + 0xb0]
call fcn.1400eda90
mov byte [rsi + 0x18], 2
jmp 0x14010dea1
cmp rdi, r8
jb 0x14010df15
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1400f2be0
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x14010de71
mov rcx, qword [0x1401be0e8]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.kernel32.dll_HeapFree
cmp byte [rsp + 0x78], 2
jne 0x14010deb6
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x60]
call fcn.1400eda90
cmp qword [rsp + 0x40], 0
je 0x14010dea1
mov rcx, qword [0x1401be0e8]
xor edx, edx
mov r8, qword [rsp + 0x30]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x14010de8e
jmp 0x14010dea1
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rsi, qword [rsp + 0x38]
test rbx, rbx
jne 0x14010de5e
jmp 0x14010de71
lea rcx, str.internal_error:_entered_unreachable_code_Users_spectrum_.cargo_registry_src_index.crates.io_6f17d22bba15001f_wmi_0.13.1_src_safearray.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000c150
jmp 0x14010df2a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14000b910
ud2
Function at 0x140111370
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401450c8]
test ecx, ecx
je 0x1401113a0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401113b9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401113b9
add rdi, 0x10
jmp 0x14011149a
lea rcx, [0x1401450b0]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14011138d
mov ecx, dword [0x1401450c8]
test ecx, ecx
je 0x14011147b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140111498
mov rsi, rax
test rax, rax
jne 0x14011144a
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x14011140b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401114b4
mov rcx, rax
mov qword [0x1401be0e8], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401114b4
mov rsi, rax
lea rax, [0x1401450b0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401450c8]
test ecx, ecx
je 0x1401114a4
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x14011149a
test rcx, rcx
je 0x14011149a
lock dec qword [rcx]
jne 0x14011149a
call fcn.1401114d0
jmp 0x14011149a
lea rcx, [0x1401450b0]
call fcn.1400ee340
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401113d8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401450b0]
call fcn.1400ee340
mov ecx, eax
jmp 0x140111442
mov ecx, 8
mov edx, 0x18
call fcn.140007810
ud2