joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140086060
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x140897a88]
call fcn.14008f870
mov rbx, rax
test rax, rax
je 0x1400860b3
cmp qword [rax + 8], 0
je 0x140086092
cmp dword [rax + 0x1c], 0
jne 0x140086092
mov rcx, rax
call fcn.140085720
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400860c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov byte [rsp + 0x48], 0
mov rcx, qword [0x140897a88]
call fcn.14008f870
test rax, rax
je 0x14008611e
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x140086101
mov r8d, 1
mov rcx, rax
call fcn.1401053a0
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140086130
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x140897a88]
call fcn.14008f870
test rax, rax
je 0x140086198
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14008617e
mov r8, rbx
mov rcx, rax
call fcn.1401053a0
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140086390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x140086408
test r8d, r8d
je 0x140086408
mov rdx, rcx
mov rcx, qword [0x140897a88]
call fcn.14008f870
test rax, rax
je 0x140086404
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400863f1
mov rcx, rax
call fcn.140105ad0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140086420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, r8d
mov rdx, rcx
mov rcx, qword [0x140897a88]
call fcn.14008f870
test rax, rax
je 0x14008645c
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140086470
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140086470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x140086567
cmp word [rdx], si
je 0x140086567
test r8d, r8d
jne 0x14008649e
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x1400864fe
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400864b0
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x1400864db
call fcn.140105ad0
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.140105be0
mov rdi, rax
test rax, rax
je 0x140086562
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x14008653d
mov rcx, rbx
call fcn.140105ad0
mov dword [rsp + 0x48], eax
jmp 0x140086550
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140895788]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x140086580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov edi, r8d
mov rdx, rcx
mov rcx, qword [0x140897a88]
call fcn.14008f870
mov rbx, rax
test rax, rax
je 0x1400865db
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.140086470
mov r8d, edi
lea rdx, [0x1401a131c]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140086470
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400865f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x140897a88]
call fcn.14008f870
mov rbx, rax
test rax, rax
je 0x140086640
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140086470
mov r8d, dword [rbx + 0x20]
lea rdx, [0x1401a131c]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140086470
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x140897a90]
jne 0x1400866a6
mov rax, qword [0x140898170]
add rsp, 0x28
ret
mov rcx, qword [0x140898190]
add rsp, 0x28
jmp fcn.14008cc38
Function at 0x140086f10
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x140086f69
mov r8, qword [r8 + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140086f30
mov ecx, eax
call fcn.1400994a0
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
nop dword [rax]
movzx edx, word [rcx]
lea rcx, [rcx + 2]
mov word [rax], dx
lea rax, [rax + 2]
test dx, dx
jne 0x140086f50
add rsp, 0x20
pop rbx
ret
mov ecx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400a52a0

Function at 0x140087b50
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x68
mov qword [rax + 0x10], rsi
mov rsi, rcx
mov qword [rax + 0x18], r12
mov ecx, edx
mov qword [rax - 0x18], r13
mov r12d, r9d
mov qword [rax - 0x20], r14
xor r13d, r13d
mov qword [rax - 0x28], r15
mov ebx, r13d
mov r15d, edx
mov qword [rax - 0x30], r13
mov r14d, r8d
call fcn.140106a50
mov rdi, rax
test rax, rax
je 0x140087cbb
test rsi, rsi
je 0x140087cbb
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140087cb3
mov rcx, qword [0x140895788]
xor edx, edx
mov r8d, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140087caa
mov ecx, r14d
call qword [rdi + 8]
mov rbx, rax
test rax, rax
je 0x140087c98
xor edx, edx
mov rcx, rax
call qword [rdi + SafeArrayGetElemsize]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.14010a840
mov rax, qword [rsp + 0x48]
test rax, rax
jle 0x140087c50
xor r9d, r9d
lea r8, [rsp + 0x4c]
mov edx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x100000
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [rdi + SafeArrayPutElement]
cmp dword [rsp + 0x40], 0x100000
je 0x140087c50
mov rcx, rbx
call qword [rdi + 0x20]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.14010aa30
mov rcx, qword [0x140895788]
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 + 0x80]
mov edx, r12d
mov rcx, rbx
call fcn.14010a790
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
test rbx, rbx
je 0x140087cf0
mov rcx, rbx
call qword [rdi + 0x28]
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x1400881f4
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, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x140897aac]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x140088243
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rcx, rbx
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax

Function at 0x140088284
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, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x140897aac]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov edx, dword [rax + 0x118]
cmp edx, dword [rax + 0x120]
je 0x1400882d5
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140088310
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140897aac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x140088346
mov edx, 0x110c
bt edx, ecx
jae 0x140088346
test rbx, rbx
je 0x140088346
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14008834c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ebx, r8d
mov ecx, dword [0x140897aac]
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
mov r10, qword [rax + 0x58]
lea r9d, [rcx + rbx]
mov rcx, rax
lea r8d, [rdx + rdi]
mov rdx, rsi
test r10, r10
je 0x14008839f
mov dword [rsp + 0x20], 0xff
call r10
jmp 0x1400883a2
call qword [rax + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14008862c
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 [0x140897aac]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x140088679
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 0x1400886b4
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 [0x140897aac]
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 0x1400887c0
mov ecx, 0x110c
bt ecx, eax
jae 0x1400887c0
xorps xmm6, xmm6
comiss xmm6, xmm7
ja 0x140088715
movss xmm6, dword [0x140178108]
minss xmm6, xmm7
mov rbx, qword [rsi + 0x138]
xor edi, edi
test rbx, rbx
je 0x140088744
movss xmm0, dword [rbx + 8]
ucomiss xmm0, xmm6
jp 0x14008872f
je 0x14008873c
comiss xmm0, xmm6
ja 0x14008876d
mov rdi, rbx
mov rbx, qword [rbx]
jmp 0x14008871e
mov rcx, rbx
test rbx, rbx
jne 0x140088794
mov rcx, qword [0x140895788]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x1400887c0
and qword [rax], 0
test rdi, rdi
je 0x14008878d
mov qword [rdi], rax
jmp 0x140088794
mov rcx, qword [0x140895788]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x140088744
mov qword [rax], rbx
jmp 0x140088763
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 0x1400887ec
Capabilities:
Allocate thread local storage

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

Function at 0x140088804
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 [0x140897aac]
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 0x140088854
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 [0x140897aac]
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 0x1400888cc
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 [0x140897aac]
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 0x140088955
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 0x14008896c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [rsp + 0xa0]
cmp edx, dword [r14 + 0x120]
je 0x14008898d
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 0x1400889d4
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 [0x140897aac]
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 0x140088a5d
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 0x140088a74
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [r14 + 0x118]
cmp edx, dword [r14 + 0x120]
je 0x140088a95
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 0x140088ad0
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 0x140088b45
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 0x140088b45
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140088b1d
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x140895788]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140897aac]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140897ab0], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140897aac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140088bb5
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140088b8d
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x140895788]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140897aac]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140897ab0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140088bbc
Capabilities:
Get thread local storage value

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

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

Function at 0x14008b4a0
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 0x14008b572
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 0x14008b4d0
mov eax, 1
xor r15d, r15d
sub eax, esi
mov ebp, r15d
add ecx, eax
cmovns ebp, ecx
mov rcx, rbx
call fcn.1400c00f0
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.1400994a0
mov rdi, rax
test r14d, r14d
je 0x14008b513
mov ecx, r14d
call fcn.1400c0130
mov rbx, rax
mov r14, qword [rsp + 0x48]
mov ecx, ebp
test rbx, rbx
je 0x14008b557
cmp esi, 1
jle 0x14008b535
cmp word [rbx], r15w
je 0x14008b535
add rbx, 2
dec esi
cmp esi, 1
jg 0x14008b524
movzx eax, word [rbx]
test ax, ax
je 0x14008b557
sub rbx, rdi
test ecx, ecx
je 0x14008b557
mov word [rdi], ax
dec ecx
movzx eax, word [rbx + rdi + 2]
add rdi, 2
test ax, ax
jne 0x14008b540
call fcn.14009a290
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.1400a52a0

Function at 0x14008b580
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 0x14008b679
movzx r12d, word [r8]
test r12w, r12w
je 0x14008b679
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 0x14008b5f9
cmp word [rcx], r13w
je 0x14008b5f9
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14008b5e0
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x14008b5fe
mov edi, r13d
mov esi, eax
call fcn.1400c00f0
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.1400994a0
mov r14, rax
test r15d, r15d
je 0x14008b623
mov ecx, r15d
call fcn.1400c0130
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x14008b63d
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.1400b5a60
test esi, esi
je 0x14008b652
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.1400a52a0
Function at 0x14008be50
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.1400994a0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14010de48
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14008be83
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14009a290

Function at 0x14008beb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0xd
jne 0x14008bf00
mov edi, 0x40
mov edx, r8d
mov ecx, edi
call fcn.1400994a0
mov rdx, rbx
mov rcx, rax
call fcn.14010ddd4
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14008bee3
sub edi, ecx
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14009a290
cmp edx, 1
je 0x14008bf1e
cmp edx, 0x18
je 0x14008bf1e
cmp edx, 3
je 0x14008bf19
cmp edx, 0x19
je 0x14008bf19
cmp edx, 0xb
jne 0x14008bf21
movzx ebx, bx
jmp 0x14008bf21
movzx ebx, bl
mov edi, 0x20
mov edx, r8d
mov ecx, edi
call fcn.1400994a0
mov r8d, ebx
lea rdx, [0x1401a10b8]
mov rcx, rax
call fcn.140084098
sub edi, eax
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14009a290