joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140141610
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 rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov r8d, 0xb
mov rdx, rax
call fcn.1401412d0
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x140141677
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401417ad
mov rcx, rax
mov qword [0x14037f2d0], rax
mov r8d, 0x800
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x1401417ad
mov r14, rax
mov qword [rsp + 0x38], 0x800
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov rdi, qword [rsp + 0x58]
lea rbp, [rsp + 0x30]
lea r15, [rsp + 0x34]
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
sub r12, r13
nop word cs:[rax + rax]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140141710
mov r8d, dword [rsp + 0x30]
cmp r12, r8
jae 0x1401416d0
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.1400f0370
mov r14, qword [rsp + 0x40]
jmp 0x1401416b6
test eax, eax
jne 0x140141732
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x14014178f
movabs rax, 0xde00000002
jmp 0x14014173a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
cmp qword [rsp + 0x38], 0
je 0x140141764
mov rcx, qword [0x14037f2d0]
xor edx, edx
mov r8, r14
call fcn.1402699cc
cmp qword [rsp + 0x50], 0
je 0x14014177d
mov rcx, qword [0x14037f2d0]
xor edx, edx
mov r8, rdi
call fcn.1402699cc
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 + 0x50], 0
jne 0x14014176c
jmp 0x14014177d
mov ecx, 1
mov edx, 0x800
call fcn.140054b50
ud2
Function at 0x140145720
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x1401457b6
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x140272450]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x140272460]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14010e770
test rdi, rdi
je 0x140145845
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x14014585e
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x140145956
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x1401459d8
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x140145963
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x140145820
cmp r9, 8
jae 0x14014596c
jmp 0x1401459d8
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14010e770
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x1401459d8
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x1401459d8
mov r8, rcx
cmp r9, 8
jb 0x1401459d8
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x140145970
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1401a0700
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
lea rcx, [rdx + 0xf0]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x1401a076a
mov rdx, rax
shl rdx, 0x20
or rdx, 2
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], rdx
cmp eax, 0x8009030e
jne 0x1401a07c3
lea rcx, [rsp + 0x48]
movabs rdi, 0x8000000000000000
call fcn.1400f5c80
jmp 0x1401a0803
mov rbx, qword [rsp + 0x28]
mov r14, qword [rbx + 8]
mov edi, dword [rbx + 0x10]
test rdi, rdi
je 0x1401a07e7
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x1401a07a2
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401a07b4
mov rcx, rax
mov qword [0x14037f2d0], rax
xor edx, edx
mov r8, rdi
call fcn.1402699c4
mov r15, rax
test rax, rax
jne 0x1401a07ed
mov ecx, 1
mov rdx, rdi
call fcn.140054b50
ud2
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 2
call fcn.1400f5c80
jmp 0x1401a0803
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 + 8], r15
mov qword [rsi + 0x10], rdi
mov qword [rsi], rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401a28b0
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
lea rcx, [rdx + 0x1f0]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x1401a291a
mov rdx, rax
shl rdx, 0x20
or rdx, 2
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], rdx
cmp eax, 0x8009030e
jne 0x1401a2973
lea rcx, [rsp + 0x48]
movabs rdi, 0x8000000000000000
call fcn.1400f5c80
jmp 0x1401a29b3
mov rbx, qword [rsp + 0x28]
mov r14, qword [rbx + 8]
mov edi, dword [rbx + 0x10]
test rdi, rdi
je 0x1401a2997
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x1401a2952
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401a2964
mov rcx, rax
mov qword [0x14037f2d0], rax
xor edx, edx
mov r8, rdi
call fcn.1402699c4
mov r15, rax
test rax, rax
jne 0x1401a299d
mov ecx, 1
mov rdx, rdi
call fcn.140054b50
ud2
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 2
call fcn.1400f5c80
jmp 0x1401a29b3
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 + 8], r15
mov qword [rsi + 0x10], rdi
mov qword [rsi], rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401b9be0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400a7180
cmp rax, rcx
je 0x1401b9c05
cmp rdx, 4
jae 0x1401b9c08
xor eax, eax
xor r8d, r8d
jmp 0x1401b9ca0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140273070]
movdqa xmm3, xmmword [0x140273080]
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 0x1401b9c30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1401b9cb7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1401b9ca0
ret
Function at 0x1401bac30
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 0x1401bac8b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1401bac8b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x1401baca6
cmp eax, 0x42
jne 0x1401bac8b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1401bad56
cmp byte [r8 + r11], 0x5f
jne 0x1401bad56
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1401badbe
mov rcx, rsi
xor edx, edx
call fcn.1401b6390
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.1401b6390
test al, al
jne 0x1401bae51
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1401bace2
lea rdx, [0x140339440]
mov r8d, 1
call fcn.1400a7670
test al, al
jne 0x1401bae51
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1401bac9a
xor r14d, r14d
lea rbx, [0x14033a8e1]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1401bad14
cmp byte [rax + rcx], 0x45
je 0x1401bae7a
sub r14, 1
jb 0x1401bad39
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1401bad39
mov r8d, 2
mov rdx, rbx
call fcn.1400a7670
test al, al
jne 0x1401bae51
mov rcx, rsi
call fcn.1401b7bf0
test al, al
jne 0x1401bae51
mov rax, qword [rsi]
test rax, rax
jne 0x1401bad00
jmp 0x1401bac9a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x1401bae18
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1401badb2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1401bad9c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1401bad8b
add dl, 0xa9
jmp 0x1401bad9a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1401bae18
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1401bae18
movzx edx, bl
add rax, rdx
jae 0x1401bad60
jmp 0x1401bae18
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1401bae18
cmp rax, rcx
jae 0x1401bae15
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1401bae59
cmp qword [rsi + 0x20], 0
je 0x1401bae73
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.1401bac30
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1401bac9c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1401bae68
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, [0x140338fe8]
test r9b, r9b
cmovne rdx, rax
call fcn.1400a7670
test al, al
je 0x1401bae68
mov dil, 2
jmp 0x1401bac9a
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1401bae23
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1401bac9a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1401bac9a
Function at 0x1401bd050
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
movabs rax, 0x8000000000000000
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
mov dword [rsp + 0x88], 4
mov dword [rsp + 0xd0], 0x400010
cmp qword [rcx + 0x18], rax
jne 0x1401bd121
cmp qword [rcx + 0x30], rax
jne 0x1401bd141
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x1401bd189
mov rbx, qword [rcx + 8]
lea rdi, [r14*8]
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x1401bd0f8
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401bd293
mov rcx, rax
mov qword [0x14037f2d0], rax
xor edx, edx
mov r8, rdi
call fcn.1402699c4
test rax, rax
je 0x1401bd293
mov rsi, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov eax, r14d
jmp 0x1401bd190
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0xb0], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0xb8], rdx
cmp qword [rcx + 0x30], rax
je 0x1401bd0b4
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x1401bd173
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x14034c128]
xor r10d, r10d
nop word [rax + rax]
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x1401bd160
jmp 0x1401bd175
xor edx, edx
mov dword [rsp + 0xc0], edx
mov r14, qword [rcx + 0x10]
test r14, r14
jne 0x1401bd0c1
xor eax, eax
mov esi, 8
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0x90], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
lea rdx, [0x140339383]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
mov edi, eax
test eax, eax
je 0x1401bd21a
shl rdi, 0x20
or rdi, 2
mov ebx, 1
test r14, r14
je 0x1401bd207
mov rcx, qword [0x14037f2d0]
xor edx, edx
mov r8, rsi
call fcn.1402699cc
mov rax, rbx
mov rdx, rdi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x70], 1
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x78], xmm0
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x1401bd25d
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401bd2a0
mov rcx, rax
mov qword [0x14037f2d0], rax
mov r8d, 0x20
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x1401bd2a0
mov rdi, rax
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor ebx, ebx
test r14, r14
jne 0x1401bd1f6
jmp 0x1401bd207
mov ecx, 8
mov rdx, rdi
call fcn.140054b50
lea rbx, [rsp + 0x78]
mov ecx, 8
mov edx, 0x20
call fcn.140054b50
ud2
Function at 0x1401be860
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov rax, rcx
movabs rsi, 0xd758f2b0b559a4a4
movabs r11, 0xc752e4b3a249ae54
movabs rdi, 0x736f6d6570736575
movabs r10, 0x6c7967656e657261
mov ebx, r8d
and ebx, 7
mov rcx, r8
xor r14d, r14d
and rcx, 0xfffffffffffffff8
je 0x1401be8f3
nop word cs:[rax + rax]
add rdi, rsi
rol rsi, 0xd
mov r9, qword [rdx + r14]
xor rsi, rdi
rol rdi, 0x20
xor r11, r9
add r10, r11
rol r11, 0x10
xor r11, r10
add rdi, r11
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
xor rsi, r10
rol r10, 0x20
xor r11, rdi
xor rdi, r9
add r14, 8
cmp r14, rcx
jb 0x1401be8b0
cmp ebx, 4
jb 0x1401be910
mov r15d, dword [rdx + r14]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rbx
jb 0x1401be922
jmp 0x1401be93d
xor r15d, r15d
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rbx
jae 0x1401be93d
lea rcx, [r9 + r14]
movzx r12d, word [rdx + rcx]
lea ecx, [r9*8]
shl r12, cl
or r15, r12
or r9, 2
cmp r9, rbx
jae 0x1401be957
add r14, r9
movzx edx, byte [rdx + r14]
shl r9d, 3
mov ecx, r9d
shl rdx, cl
or r15, rdx
shl r8, 0x38
add rdi, rsi
rol rsi, 0xd
or r8, r15
xor rsi, rdi
rol rdi, 0x20
xor r11, r8
add r10, r11
rol r11, 0x10
xor r11, r10
add rdi, r11
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
xor r11, rdi
xor rsi, r10
rol r10, 0x20
xor rdi, r8
add rdi, rsi
rol rsi, 0xd
xor rsi, rdi
rol rdi, 0x20
xor r10, 0xee
add r10, r11
rol r11, 0x10
xor r11, r10
add rdi, r11
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
xor rsi, r10
rol r10, 0x20
xor r11, rdi
add rdi, rsi
rol rsi, 0xd
xor rsi, rdi
rol rdi, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add rdi, r11
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
xor rsi, r10
rol r10, 0x20
xor r11, rdi
add rdi, rsi
rol rsi, 0xd
xor rsi, rdi
rol rdi, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add rdi, r11
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
xor rsi, r10
rol r10, 0x20
mov rcx, r10
xor rcx, rsi
xor rcx, r11
xor r11, rdi
xor rsi, 0xdd
add rdi, rsi
rol rsi, 0xd
xor rsi, rdi
rol rdi, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add rdi, r11
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
xor rsi, r10
rol r10, 0x20
xor r11, rdi
add rdi, rsi
rol rsi, 0xd
xor rsi, rdi
rol rdi, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add rdi, r11
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
xor rsi, r10
rol r10, 0x20
xor r11, rdi
add rdi, rsi
rol rsi, 0xd
xor rsi, rdi
add r10, r11
rol r11, 0x10
xor r11, r10
rol r11, 0x15
add r10, rsi
rol rsi, 0x11
mov rdx, r10
shr rdx, 0x20
xor edx, esi
xor edx, r11d
xor r10d, edx
mov rdx, rcx
shr rdx, 0x20
mov dword [rax], edx
mov dword [rax + 4], ecx
mov dword [rax + 8], r10d
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1401f9570
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1401f95f5
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 0x1401f9636
cmp dword [rsp + 0x2c], 0
je 0x1401f961a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1401f965c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14037f2f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14037f2f0], rsi
jne 0x1401f95d0
mov byte [0x14037f2e8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1401f962c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1401f96a6
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1401f961f
mov edi, dword [rsp + 0x28]
jmp 0x1401f962c
mov edi, dword [rsi + 0x18]
jmp 0x1401f962a
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, [0x1403406d8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.1401f9cb0
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, [0x140347980]
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.1400a6c30
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x140347980]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1401f9cf0
int3
Function at 0x1401f9b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14026d180]
test ecx, ecx
je 0x1401f9b80
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401f9b99
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401f9b99
add rdi, 0x10
jmp 0x1401f9c7a
lea rcx, [0x14026d168]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401f9b6d
mov ecx, dword [0x14026d180]
test ecx, ecx
je 0x1401f9c5b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401f9c78
mov rsi, rax
test rax, rax
jne 0x1401f9c2a
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x1401f9beb
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401f9c94
mov rcx, rax
mov qword [0x14037f2d0], rax
mov r8d, 0x18
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x1401f9c94
mov rsi, rax
lea rax, [0x14026d168]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14026d180]
test ecx, ecx
je 0x1401f9c84
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 0x1401f9c7a
test rcx, rcx
je 0x1401f9c7a
lock dec qword [rcx]
jne 0x1401f9c7a
call fcn.14013adf0
jmp 0x1401f9c7a
lea rcx, [0x14026d168]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401f9bb8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14026d168]
call fcn.1401f9570
mov ecx, eax
jmp 0x1401f9c22
mov ecx, 8
mov edx, 0x18
call fcn.140054b50
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14026d1a0]
test ecx, ecx
je 0x1401fa5d6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401fa53d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1401fa5d0
mov ecx, dword [0x14026d1a0]
test ecx, ecx
je 0x1401fa5f8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401fa615
mov rsi, rax
test rax, rax
jne 0x1401fa5ca
movzx eax, byte [0x14037f348]
mov rcx, qword [0x14037f2d0]
test rcx, rcx
jne 0x1401fa58f
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401fa630
mov rcx, rax
mov qword [0x14037f2d0], rax
mov r8d, 0x10
xor edx, edx
call fcn.1402699c4
test rax, rax
je 0x1401fa630
mov rsi, rax
lea rax, [0x14026d188]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14026d1a0]
test ecx, ecx
je 0x1401fa620
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1401fa617
lea rcx, [0x14026d188]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401fa530
jmp 0x1401fa53d
lea rcx, [0x14026d188]
call fcn.1401f9570
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401fa55c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14026d188]
call fcn.1401f9570
mov ecx, eax
jmp 0x1401fa5c2
mov ecx, 8
mov edx, 0x10
call fcn.140054b50
int3