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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1409c8a8c]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x140089839
mov edx, edi
mov dword [rax + 0x120], edi
mov rcx, rax
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov rcx, rbx
mov rax, qword [rbx + 0x78]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
jmp rax

Function at 0x140089874
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov ecx, dword [0x1409c8a8c]
mov ebp, edx
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov eax, dword [rax + 0xe8]
cmp eax, 0xc
ja 0x140089980
mov ecx, 0x110c
bt ecx, eax
jae 0x140089980
xorps xmm6, xmm6
comiss xmm6, xmm7
ja 0x1400898d5
movss xmm6, dword [0x140179108]
minss xmm6, xmm7
mov rbx, qword [rsi + 0x138]
xor edi, edi
test rbx, rbx
je 0x140089904
movss xmm0, dword [rbx + 8]
ucomiss xmm0, xmm6
jp 0x1400898ef
je 0x1400898fc
comiss xmm0, xmm6
ja 0x14008992d
mov rdi, rbx
mov rbx, qword [rbx]
jmp 0x1400898de
mov rcx, rbx
test rbx, rbx
jne 0x140089954
mov rcx, qword [0x1409c6768]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x140089980
and qword [rax], 0
test rdi, rdi
je 0x14008994d
mov qword [rdi], rax
jmp 0x140089954
mov rcx, qword [0x1409c6768]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x140089904
mov qword [rax], rbx
jmp 0x140089923
mov qword [rsi + 0x138], rax
movzx eax, bpl
mov dword [rcx + 0xc], eax
mov eax, ebp
sar eax, 8
movzx eax, al
mov dword [rcx + 0x10], eax
mov eax, ebp
sar eax, 0x10
movzx eax, al
sar ebp, 0x18
mov dword [rcx + 0x14], eax
movzx eax, bpl
mov dword [rcx + 0x18], eax
movss dword [rcx + 8], xmm6
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret

Function at 0x1400899ac
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1409c8a8c], eax
add rsp, 0x28
ret

Function at 0x1400899c4
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 esi, r8d
mov ecx, dword [0x1409c8a8c]
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9d, esi
mov rcx, rax
mov r8d, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
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 0x140089a14
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov ebx, edx
mov ecx, dword [0x1409c8a8c]
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 0x140089a8c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, ecx
mov ebp, r9d
mov ecx, dword [0x1409c8a8c]
mov esi, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15d, esi
mov r14, rax
mov r11d, dword [rax + 0x100]
mov edx, dword [rax + 0x104]
add r11d, ebx
add edx, edi
mov edi, ebp
test esi, esi
lea r12d, [r11 + rsi]
cmovns r12d, r11d
lea r13d, [rdx + rbp]
neg r15d
test esi, esi
cmovns r15d, esi
mov esi, dword [rsp + 0x90]
test ebp, ebp
cmovns r13d, edx
neg edi
test ebp, ebp
lea eax, [rsi + rsi]
cmovns edi, ebp
cmp eax, r15d
jle 0x140089b15
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov ebx, dword [rsp + 0x98]
lea ecx, [rbx + rbx]
cmp ecx, edi
jle 0x140089b2c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [rsp + 0xa0]
cmp edx, dword [r14 + 0x120]
je 0x140089b4d
mov rcx, r14
mov dword [r14 + 0x120], edx
call qword [r14 + 0x80]
mov dword [rsp + 0xa0], ebx
mov r9d, r15d
mov dword [rsp + 0x98], esi
mov r8d, r13d
mov edx, r12d
mov dword [rsp + 0x90], edi
mov rcx, r14
mov rax, qword [r14 + 0x10]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp rax
Function at 0x140089b94
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, ecx
mov ebp, r9d
mov ecx, dword [0x1409c8a8c]
mov esi, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15d, esi
mov r14, rax
mov r11d, dword [rax + 0x100]
mov edx, dword [rax + 0x104]
add r11d, ebx
add edx, edi
mov edi, ebp
test esi, esi
lea r12d, [r11 + rsi]
cmovns r12d, r11d
lea r13d, [rdx + rbp]
neg r15d
test esi, esi
cmovns r15d, esi
mov esi, dword [rsp + 0x90]
test ebp, ebp
cmovns r13d, edx
neg edi
test ebp, ebp
lea eax, [rsi + rsi]
cmovns edi, ebp
cmp eax, r15d
jle 0x140089c1d
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov ebx, dword [rsp + 0x98]
lea ecx, [rbx + rbx]
cmp ecx, edi
jle 0x140089c34
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [r14 + 0x118]
cmp edx, dword [r14 + 0x120]
je 0x140089c55
mov rcx, r14
mov dword [r14 + 0x120], edx
call qword [r14 + 0x80]
mov dword [rsp + 0x30], ebx
mov r9d, r15d
mov dword [rsp + 0x28], esi
mov r8d, r13d
mov edx, r12d
mov dword [rsp + 0x20], edi
mov rcx, r14
call qword [r14 + SafeArrayGetElemsize]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140089c90
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 0x140089d05
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov rdi, rax
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x140089d05
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140089cdd
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1409c6768]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1409c8a8c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1409c8a90], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1409c8a8c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140089d75
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140089d4d
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1409c6768]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1409c8a8c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1409c8a90], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140089d7c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1409c8a8c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc0]
Function at 0x140089da4
Capabilities:
Get thread local storage value

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

Function at 0x14008c720
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
mov rbx, rcx
test rcx, rcx
je 0x14008c7f2
mov qword [rsp + 0x40], rbp
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
nop
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x14008c750
mov eax, 1
xor r15d, r15d
sub eax, esi
mov ebp, r15d
add ecx, eax
cmovns ebp, ecx
mov rcx, rbx
call fcn.1400c1370
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.14009a720
mov rdi, rax
test r14d, r14d
je 0x14008c793
mov ecx, r14d
call fcn.1400c13b0
mov rbx, rax
mov r14, qword [rsp + 0x48]
mov ecx, ebp
test rbx, rbx
je 0x14008c7d7
cmp esi, 1
jle 0x14008c7b5
cmp word [rbx], r15w
je 0x14008c7b5
add rbx, 2
dec esi
cmp esi, 1
jg 0x14008c7a4
movzx eax, word [rbx]
test ax, ax
je 0x14008c7d7
sub rbx, rdi
test ecx, ecx
je 0x14008c7d7
mov word [rdi], ax
dec ecx
movzx eax, word [rbx + rdi + 2]
add rdi, 2
test ax, ax
jne 0x14008c7c0
call fcn.14009b510
mov rbp, qword [rsp + 0x40]
mov word [rdi], r15w
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov ecx, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp fcn.1400a6520

Function at 0x14008c800
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x30
mov ebp, r9d
mov rbx, rcx
test r8, r8
je 0x14008c8f9
movzx r12d, word [r8]
test r12w, r12w
je 0x14008c8f9
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x28], r14
mov eax, r13d
mov qword [rsp + 0x20], r15
cmovns eax, edx
test rcx, rcx
je 0x14008c879
cmp word [rcx], r13w
je 0x14008c879
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14008c860
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x14008c87e
mov edi, r13d
mov esi, eax
call fcn.1400c1370
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.14009a720
mov r14, rax
test r15d, r15d
je 0x14008c8a3
mov ecx, r15d
call fcn.1400c13b0
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x14008c8bd
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.1400b6ce0
test esi, esi
je 0x14008c8d2
mov rdi, r14
mov edx, esi
mov rax, r12
mov ecx, esi
rep stosw word [rdi], ax
lea r14, [r14 + rdx*2]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov word [r14 + r15*2], r13w
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
mov ecx, ebp
add rsp, 0x30
pop r12
pop rbp
pop rbx
jmp fcn.1400a6520
Function at 0x14008d0d0
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.14009a720
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14010f178
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14008d103
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14009b510

Function at 0x14008d130
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0xd
jne 0x14008d180
mov edi, 0x40
mov edx, r8d
mov ecx, edi
call fcn.14009a720
mov rdx, rbx
mov rcx, rax
call fcn.14010f104
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14008d163
sub edi, ecx
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14009b510
cmp edx, 1
je 0x14008d19e
cmp edx, 0x18
je 0x14008d19e
cmp edx, 3
je 0x14008d199
cmp edx, 0x19
je 0x14008d199
cmp edx, 0xb
jne 0x14008d1a1
movzx ebx, bx
jmp 0x14008d1a1
movzx ebx, bl
mov edi, 0x20
mov edx, r8d
mov ecx, edi
call fcn.14009a720
mov r8d, ebx
lea rdx, [0x1401a20b8]
mov rcx, rax
call fcn.140085258
sub edi, eax
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14009b510
Function at 0x14008d210
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor ebp, ebp
mov r13d, r9d
mov r15d, edx
mov r12d, ebp
cmp edx, 1
jl 0x14008d37b
test rcx, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, ebp
mov qword [rsp + 0x20], r14
lea r14, [0x1401a2330]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x14008d30a
cmp word [r14 + 2], di
je 0x14008d30a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x14008d280
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.14010f0d8
test eax, eax
je 0x14008d2ae
cmp word [rbx], r12w
je 0x14008d2ae
add rbx, 2
jmp 0x14008d290
inc edi
cmp edi, r15d
je 0x14008d2c4
cmp word [rbx], r12w
je 0x14008d2cd
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x14008d290
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.1400c1370
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x14008d340
mov ecx, r13d
call fcn.14010f1b0
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.1400b6ce0
mov edx, r13d
mov ecx, r12d
call fcn.14009a720
mov rdi, rax
jmp 0x14008d35c
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x14008d323
test ax, ax
je 0x14008d323
add rbx, 2
jmp 0x14008d310
inc edi
cmp edi, r15d
je 0x14008d335
test ax, ax
je 0x14008d2cf
lea rsi, [rbx + 2]
jmp 0x14008d30a
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x14008d2cf
mov edx, r13d
mov ecx, r12d
call fcn.14009a720
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.14009b4c4
mov rsi, qword [rsp + 0x58]
mov word [rdi + rbx*2], bp
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov ecx, r13d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400a6520

Function at 0x14008deb8
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 [0x1409c8c20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14008df39
mov r8, qword [0x1409c8c18]
lea edx, [rax + 8]
mov rcx, qword [0x1409c6768]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1409c8c20]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1409c8c10]
jmp 0x14008df25
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14008df22
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14008df10
mov rdx, rdi
lea rcx, [0x14008e054]
call fcn.14010f304
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008df50
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 edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x14008df7a
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1409c8c18]
test rbx, rbx
jne 0x14008dfc0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1409c6768]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1409c8c20], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1409c8c20]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1409c8c18]
jmp 0x14008dfc3
movsxd rdi, edi
mov ecx, dword [0x1409c8c20]
lea rax, [rdi + rbx]
mov qword [0x1409c8c18], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1409c8c18]
mov edx, 8
mov rcx, qword [0x1409c6768]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1409c8c20]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x14008e012
test rbp, rbp
je 0x14008e039
mov edx, 0x28
lea rcx, [0x1409c8c10]
call fcn.14009b250
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14008e039
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14008e190
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
movsxd rbx, edx
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x1409c8c28]
xor edx, edx
mov rsi, rax
mov rax, qword [r14]
mov r8d, dword [rsi + 0x10]
sub r8d, ebx
movsxd rdi, r8d
lea r9, [rdi + 0xa]
test rax, rax
jne 0x14008e1e4
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14008e1ed
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [r14], rax
mov rcx, rax
mov rdx, qword [rsi]
shr rdi, 1
add rdx, rbx
mov r8d, edi
call fcn.14010f0a0
mov rdi, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x14008e260
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1409c4e48]
cmp ecx, 0xffffffff
jne 0x14008e276
call fcn.14008e480
jmp 0x14008e286
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14008e2a5
call fcn.14010f540
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14008e220]
add rsp, 0x28
jmp fcn.14010f304
add rsp, 0x28
ret

Function at 0x14008e460
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret
Function at 0x14008e480
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1409c8c28], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1409c4e48], eax
add rsp, 0x28
jmp fcn.14010f540

Function at 0x14008e4b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret

Function at 0x14008e4e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1409c4e48]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008e530
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret

Function at 0x14008e560
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rdx, qword [rax + rcx*8 + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rax]
add rax, rdx
add rsp, 0x28
ret

Function at 0x14008e5a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
add rax, qword [rdx]
add rsp, 0x28
ret

Function at 0x14008e5d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1409c4e48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov qword [rax + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
Function at 0x14009a720
Capabilities:
Get 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
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x14009a750
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x14009a771
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x14009a783
mov eax, 0x100000
cmp r8, rax
jle 0x14009a7a0
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1409c8c28]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009b320
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14009b39c
movsxd rdx, ecx
lea rcx, [0x14009b424]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1409c8cd8]
test rbx, rbx
je 0x14009b40f
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14009b392
cmp byte [rbx + 0x20], 0
je 0x14009b392
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14009b358
jmp 0x14009b40f
mov rbx, qword [0x1409c8cd8]
test rbx, rbx
je 0x14009b40f
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14009b407
cmp byte [rbx + 0x21], 0
je 0x14009b3cb
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14009b3f7
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1409c8cd8]
call fcn.14009b294
mov rbx, rsi
test rsi, rsi
jne 0x14009b3a8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14009b510
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret
Function at 0x1400a6520
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret
Function at 0x1400c1370
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x1400c13a4
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x1400c13a4
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400c13b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1409c4e48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret