joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094950
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rsi, rdx
mov rbx, r8
mov eax, r9d
cdq
mov r12d, r9d
mov r13, rcx
and edx, 0xf
add eax, edx
mov r8d, eax
and eax, 0xf
sub eax, edx
sar r8d, 4
mov edi, eax
test eax, eax
je 0x140094999
test r8d, r8d
jne 0x140094996
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
dec r8d
mov qword [rsp + 0x80], rbp
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0x88], r14
movups xmm0, xmmword [rbp]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
test r8d, r8d
je 0x140094a22
mov qword [rsp + 0x90], r15
mov r14d, r8d
nop dword [rax]
mov edx, dword [r13 + 4]
lea rcx, [r13 + 0xf8]
mov r9, rbx
mov r8, rsi
call fcn.1400935e0
mov eax, dword [rsp + 0x20]
add rsi, 0x10
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
add rbx, 0x10
xor dword [rbx - 0xc], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx - 4], eax
movups xmm0, xmmword [rsi - 0x10]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
dec r14
jne 0x1400949d0
mov r15, qword [rsp + 0x90]
test edi, edi
je 0x140094b64
movups xmm0, xmmword [rsi]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [r13 + 0xf8]
movups xmmword [rbp], xmm0
mov edx, dword [r13 + 4]
movups xmmword [rsp + 0x40], xmm0
call fcn.1400935e0
xor r10d, r10d
test edi, edi
je 0x140094b2f
cmp edi, 0x10
jb 0x140094ae9
lea r9d, [rdi - 1]
lea r11, [rbx + 0x10]
lea rdx, [rsi + 0x10]
lea eax, [r9 + 0x10]
lea rbp, [rax + rsi]
lea r8, [rax + rbx]
cmp r11, rbp
ja 0x140094a86
cmp r8, rdx
jae 0x140094ae9
lea rcx, [rsp + 0x30]
mov eax, r9d
add rcx, rax
cmp r11, rcx
ja 0x140094aa0
lea rax, [rsp + 0x30]
cmp r8, rax
jae 0x140094ae9
lea rax, [rsp + 0x30]
cmp rax, rbp
ja 0x140094aaf
cmp rcx, rdx
jae 0x140094ae9
mov eax, edi
mov r8d, edi
and eax, 0xf
sub r8d, eax
nop word [rax + rax]
lea edx, [r10 + 0x10]
mov eax, r10d
mov r10d, edx
movdqu xmm0, xmmword [rsp + rax + 0x30]
movdqu xmm1, xmmword [rdx + rsi]
movdqu xmmword [rsp + rax + 0x30], xmm1
pxor xmm0, xmm1
movdqu xmmword [rdx + rbx], xmm0
cmp edx, r8d
jb 0x140094ac0
cmp r10d, edi
jae 0x140094b2f
lea r8d, [r10 + 0x10]
mov eax, r10d
lea r9, [rsp + 0x30]
mov r11, rbx
add r9, rax
add r8, rsi
sub r11, rsi
sub edi, r10d
mov r10d, edi
nop dword [rax]
movzx eax, byte [r8]
movzx edx, byte [r9]
lea r8, [r8 + 1]
xor dl, al
mov byte [r9], al
lea r9, [r9 + 1]
mov byte [r11 + r8 - 1], dl
dec r10
jne 0x140094b10
mov edx, dword [r13 + 4]
lea r8, [rsp + 0x30]
lea rcx, [r13 + 0xf8]
mov r9, rbx
call fcn.1400935e0
mov eax, dword [rsp + 0x20]
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx + 0xc], eax
jmp 0x140094b68
movups xmmword [rbp], xmm1
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov eax, r12d
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140095664
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x140680410], eax
add rsp, 0x28
ret
Function at 0x1400956b0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140095725
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov rdi, rax
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x140095725
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400956fd
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x14067c168]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov ecx, dword [0x140680410]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
and qword [0x140680420], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140095734
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140680410]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x20]

Function at 0x140095758
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140680410]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc8]

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140680410]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140095815
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400957ed
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x14067c168]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov ecx, dword [0x140680410]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
and qword [0x140680420], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140095834
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, dword [0x140680410]
mov ebx, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rcx, rax
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa8]

Function at 0x140095880
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140680410]
mov ebx, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rsi
mov r9d, dword [rax + 0x104]
mov r8d, dword [rax + 0x100]
mov rcx, rax
add r9d, ebx
add r8d, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x48]
Function at 0x1400958e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, dword [0x140680410]
mov esi, r8d
mov ebx, edx
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9d, esi
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
mov rcx, rax
add r8d, ebx
add edx, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xa0]

Function at 0x140095c00
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x14067c168]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x140680410]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov qword [0x140680420], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.14009aa88
mov rbx, qword [rsp + 0x30]
lea rax, [0x140096ab8]
mov qword [rdi + 0xb0], rax
lea rax, [0x140096b1c]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14009655c]
mov qword [rdi + 0x20], rax
lea rax, [0x14009640c]
mov qword [rdi + 0x60], rax
lea rax, [0x140096bc0]
mov qword [rdi + 0xc8], rax
lea rax, [0x140096b68]
mov qword [rdi + 0xc0], rax
lea rax, [0x140096098]
mov qword [rdi + 0x68], rax
lea rax, [0x14009603c]
mov qword [rdi + 0x48], rax
lea rax, [0x140096068]
mov qword [rdi + 0x50], rax
lea rax, [0x140095eec]
mov qword [rdi + 0x58], rax
lea rax, [0x1400968b0]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140098494
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14067c168]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x140680410]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov qword [0x140680420], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x140097084]
mov qword [rbx], rax
lea rax, [0x1400970b4]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x1400981dc]
mov qword [rbx + 0x10], rax
lea rax, [0x14009715c]
mov qword [rbx + 0x18], rax
lea rax, [0x14009783c]
mov qword [rbx + 0x20], rax
lea rax, [0x1400977cc]
mov qword [rbx + 0x28], rax
lea rax, [0x140097814]
mov qword [rbx + 0x30], rax
lea rax, [0x140097828]
mov qword [rbx + 0x38], rax
lea rax, [fcn.1400978b0]
mov qword [rbx + 0x40], rax
lea rax, [0x1400973cc]
mov qword [rbx + 0x48], rax
lea rax, [fcn.1400973e4]
mov qword [rbx + 0x50], rax
lea rax, [0x140097268]
mov qword [rbx + 0x58], rax
lea rax, [0x140097734]
mov qword [rbx + 0x60], rax
lea rax, [0x140097648]
mov qword [rbx + 0x68], rax
lea rax, [0x14009794c]
mov qword [rbx + 0x70], rax
lea rax, [0x140097a90]
mov qword [rbx + 0x78], rax
lea rax, [0x140097b7c]
mov qword [rbx + 0x80], rax
lea rax, [0x140097c34]
mov qword [rbx + 0x88], rax
lea rax, [0x140097d8c]
mov qword [rbx + 0x90], rax
lea rax, [0x140097e0c]
mov qword [rbx + 0x98], rax
lea rax, [0x140097f00]
mov qword [rbx + 0xa0], rax
lea rax, [0x1400980ec]
mov qword [rbx + 0xa8], rax
lea rax, [0x140098264]
mov qword [rbx + 0xb0], rax
lea rax, [0x14009834c]
mov qword [rbx + 0xb8], rax
lea rax, [0x1400983e8]
mov qword [rbx + 0xc0], rax
lea rax, [0x14009843c]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14009f0b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x14009f177
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x14009f15c
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x14009f138
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x14009f170
add ecx, ebp
jmp 0x14009f172
add ecx, ebx
test r10d, r10d
jne 0x14009f10c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14009ff18
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x14009ffe1
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x14009ffc7
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x14009ffa3
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x14009ffda
add ecx, ebp
jmp 0x14009ffdc
add ecx, edi
test r11d, r11d
jne 0x14009ff77
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400a1dd4
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x1400a1ddc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400a1e9f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov rcx, qword [0x14067c168]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400a1e96
lea r9, [rsp + 0x78]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400a1e84
cmp dword [rsp + 0x78], edi
jne 0x1400a1e84
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.1400a1c18
mov rbx, rax
mov rcx, qword [0x14067c168]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400a1ddc
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x1400a1ddc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400a1e9f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov rcx, qword [0x14067c168]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400a1e96
lea r9, [rsp + 0x78]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400a1e84
cmp dword [rsp + 0x78], edi
jne 0x1400a1e84
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.1400a1c18
mov rbx, rax
mov rcx, qword [0x14067c168]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a94c0
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x1400a94f1
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400a94d0
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp fcn.1400a9500
mov ecx, r8d
jmp fcn.1400acb60

Function at 0x1400a95c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.1400aca20
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140132f5c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400a95f0
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400ace80

Function at 0x1400a9b50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x1400a9cb4
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x140146e14]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x1400a9c80
cmp word [r14 + 2], di
je 0x1400a9c80
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x1400a9bc0
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x1400a9bed
cmp word [rbx], bp
je 0x1400a9bed
add rbx, 2
jmp 0x1400a9bd0
inc edi
cmp edi, r12d
je 0x1400a9c02
cmp word [rbx], bp
je 0x1400a9c0b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x1400a9bd0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.1400ad0d0
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400a9c3a
mov ecx, r13d
call fcn.1400ad1f0
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.1400aca20
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400a9c5e
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x1400a9c8d
test ax, ax
jne 0x1400a9ca0
inc edi
cmp edi, edx
je 0x1400a9ca6
test ax, ax
je 0x1400a9c0e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x1400a9c80
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x1400a9c0e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400acb60
Function at 0x1400aa510
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x28
mov ebp, r9d
mov edi, edx
mov rsi, rcx
test r8, r8
je 0x1400aa5fa
movzx r15d, word [r8]
test r15w, r15w
je 0x1400aa5fa
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r14
cmovs edi, r13d
test rcx, rcx
je 0x1400aa57d
cmp word [rcx], r13w
je 0x1400aa57d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x1400aa565
cmp ebx, edi
cmovg ebx, edi
sub edi, ebx
jns 0x1400aa580
mov edi, r13d
jmp 0x1400aa580
mov ebx, r13d
call fcn.1400ad0d0
lea ecx, [rbx + rdi]
mov edx, ebp
mov r12d, eax
call fcn.1400aca20
mov r14, rax
test r12d, r12d
je 0x1400aa5a5
mov ecx, r12d
call fcn.1400ad140
mov rsi, rax
mov r12, qword [rsp + 0x58]
test ebx, ebx
je 0x1400aa5c3
movsxd rcx, edi
movsxd r8, ebx
mov rdx, rsi
lea rcx, [r14 + rcx*2]
add r8, r8
call sub.msvcrt.dll_memmove
test edi, edi
je 0x1400aa5d9
mov edx, edi
mov rdi, r14
movzx eax, r15w
mov ecx, edx
lea r14, [r14 + rdx*2]
rep stosw word [rdi], ax
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
mov word [r14 + rax*2], r13w
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
ret
mov ecx, r9d
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
jmp fcn.1400acb60

Function at 0x1400aa660
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x1400aa6ad
mov ebx, 0x40
mov edx, r8d
mov ecx, ebx
call fcn.1400aca20
mov rdx, rdi
mov rcx, rax
call fcn.140132f8c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400aa690
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400ace80
cmp edx, 1
je 0x1400aa6cb
cmp edx, 0x18
je 0x1400aa6cb
cmp edx, 3
je 0x1400aa6c6
cmp edx, 0x19
je 0x1400aa6c6
cmp edx, 0xb
jne 0x1400aa6ce
movzx edi, cx
jmp 0x1400aa6ce
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.1400aca20
lea rdx, [0x14015e62c]
mov r8d, edi
mov rcx, rax
call fcn.140133800
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400ace80

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14067f9c0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400ab501
mov r8, qword [0x14067f9b8]
mov rcx, qword [0x14067c168]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x14067f9c0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rbx, qword [0x14067f9b0]
jmp 0x1400ab4ed
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400ab4ea
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400ab4d8
lea rcx, [0x1400ab3e4]
mov rdx, rdi
call fcn.1401330fc
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ab518
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x1400ab542
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x14067f9b8]
test rcx, rcx
jne 0x1400ab585
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov rcx, qword [0x14067c168]
movsxd r8, ebx
mov edx, 8
mov dword [0x14067f9c0], eax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x14067f9c0]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rcx, qword [0x14067f9b8]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x14067f9b8], rcx
mov ecx, dword [0x14067f9c0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, qword [0x14067f9b8]
mov rcx, qword [0x14067c168]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ecx, dword [0x14067f9c0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test rdi, rdi
jne 0x1400ab5d9
test rbp, rbp
je 0x1400ab600
lea rcx, [0x14067f9b0]
mov edx, 0x28
call fcn.1400ac1a0
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x1400ab600
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ac250
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_HeapCreate]
mov qword [0x140680680], rax
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1406764b0], eax
call fcn.1400ad530
add rsp, 0x28
ret

Function at 0x1400ac3b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret