joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400268f0
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
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov esi, ecx
mov ebp, r9d
mov ecx, dword [0x14022987c]
mov ebx, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov r11d, dword [rax + 0x100]
add esi, r11d
mov r10d, dword [rax + 0x104]
add ebx, r11d
mov eax, dword [rax + 0xe8]
add r14d, r10d
add ebp, r10d
cmp eax, 0xc
ja 0x140026ae0
mov ecx, 0x110c
bt ecx, eax
jae 0x140026ae0
mov r15d, ebx
mov dword [rdi + 0x1a8], esi
sub r15d, esi
mov dword [rdi + 0x1ac], r14d
mov eax, r15d
mov dword [rdi + 0x1b0], ebx
imul eax, r15d
mov r12d, ebp
sub r12d, r14d
mov dword [rdi + 0x1b4], ebp
mov ecx, r12d
imul ecx, r12d
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call fcn.14006a138
movss dword [rdi + 0x1b8], xmm0
cmp r14d, ebp
jne 0x1400269c5
lea rax, [0x140026728]
cmp esi, ebx
lea rcx, [0x14002675c]
cmovg rax, rcx
jmp 0x140026ad9
cmp esi, ebx
jne 0x1400269dc
lea rax, [0x140026790]
cmp r14d, ebp
lea rcx, [0x1400267c8]
jmp 0x1400269bc
mov ecx, r15d
call fcn.14006a1d8
mov ecx, r12d
mov ebx, eax
call fcn.14006a1d8
mov r10d, 1
cmp ebx, eax
jl 0x140026a0e
and dword [rdi + 0x1c0], 0
mov ecx, dword [rdi + 0x1b4]
mov r8d, dword [rdi + 0x1ac]
jmp 0x140026a47
mov eax, dword [rdi + 0x1ac]
mov r8d, dword [rdi + 0x1a8]
mov ecx, dword [rdi + 0x1b0]
mov dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
mov dword [rdi + 0x1b4], ecx
mov dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1c0], r10d
mov dword [rdi + 0x1ac], r8d
mov r9d, dword [rdi + 0x1a8]
mov edx, dword [rdi + 0x1b0]
cmp r9d, edx
jge 0x140026a62
and dword [rdi + 0x1bc], 0
jmp 0x140026a97
mov r8d, dword [rdi + 0x1b4]
mov eax, r9d
mov ecx, dword [rdi + 0x1ac]
mov r9d, edx
mov dword [rdi + 0x1a8], edx
mov edx, eax
mov dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1bc], r10d
mov dword [rdi + 0x1b4], ecx
mov dword [rdi + 0x1ac], r8d
sub ecx, r8d
lea rax, [0x1400267fc]
sub edx, r9d
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [rdi + 0x1c4], xmm1
movsd xmm1, qword [0x140123150]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [rdi + 0x1c8], xmm0
mov qword [rdi + 0x128], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140026b00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14022987c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rax, dword [rax + 0x10c]
add rsp, 0x28
ret

Function at 0x140026b1c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14022987c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rax, dword [rax + 0x108]
add rsp, 0x28
ret
Function at 0x140026b38
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 [0x14022987c]
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 0x140026b88
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 [0x14022987c]
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 0x140026c04
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x14022987c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov eax, dword [rax + 0xe8]
cmp eax, 0xc
ja 0x140026c60
mov ecx, 0x110c
bt ecx, eax
jae 0x140026c60
mov r8, qword [rdi + 0x138]
test r8, r8
je 0x140026c58
mov rcx, qword [0x140224818]
xor edx, edx
mov rbx, qword [r8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, rbx
test rbx, rbx
jne 0x140026c3e
and qword [rdi + 0x138], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140026c6c
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 [0x14022987c]
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 0x140026cf5
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 0x140026d0c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [rsp + 0xa0]
cmp edx, dword [r14 + 0x120]
je 0x140026d2d
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 0x140026d74
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 [0x14022987c]
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 0x140026dfd
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 0x140026e14
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [r14 + 0x118]
cmp edx, dword [r14 + 0x120]
je 0x140026e35
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 + reloc.WS2_32.dll_recv]
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 0x140026e70
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 0x140026ee5
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 0x140026ee5
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140026ebd
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x140224818]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14022987c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140229880], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x14022987c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140026f55
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140026f2d
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x140224818]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14022987c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140229880], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140026f5c
Capabilities:
Get thread local storage value

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

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

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

Disassembly:
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
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140027b0f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x140224818]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140027b06
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140027af4
cmp dword [rsp + 0x78], edi
jne 0x140027af4
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.140026fac
mov rbx, rax
mov rcx, qword [0x140224818]
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
xor r8d, r8d
jmp 0x140027a4c

Function at 0x14002a390
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14d, r9d
mov rsi, r8
mov rbx, rcx
test r8, r8
je 0x14002a48f
cmp word [r8], 0
je 0x14002a48f
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r15
mov eax, r13d
cmovns eax, edx
test rcx, rcx
je 0x14002a409
cmp word [rcx], r13w
je 0x14002a409
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14002a3f0
cmp edi, eax
mov ebp, r13d
cmovg edi, eax
sub eax, edi
cmovns ebp, eax
jmp 0x14002a40e
mov edi, r13d
mov ebp, eax
call fcn.1400453a0
movzx r12d, word [rsi]
lea ecx, [rdi + rbp]
mov edx, r14d
mov r15d, eax
call fcn.1400383e0
mov rsi, rax
test r15d, r15d
je 0x14002a438
mov ecx, r15d
call fcn.1400453e0
mov rbx, rax
mov r15, qword [rsp + 0x20]
test edi, edi
movsxd rax, edi
lea rdi, [rax + rax]
jle 0x14002a456
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.14002ce50
add rsi, rdi
test ebp, ebp
je 0x14002a46e
mov rdi, rsi
mov edx, ebp
mov rax, r12
mov ecx, ebp
rep stosw word [rdi], ax
lea rsi, [rsi + rdx*2]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov word [rsi], r13w
mov r13, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov ecx, r14d
add rsp, 0x30
pop r14
pop rsi
pop rbx
jmp fcn.14003a0b0
Function at 0x14002a620
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 0x14002a6f2
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 0x14002a650
mov eax, 1
xor r15d, r15d
sub eax, esi
mov ebp, r15d
add ecx, eax
cmovns ebp, ecx
mov rcx, rbx
call fcn.1400453a0
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.1400383e0
mov rdi, rax
test r14d, r14d
je 0x14002a693
mov ecx, r14d
call fcn.1400453e0
mov rbx, rax
mov r14, qword [rsp + 0x48]
mov ecx, ebp
test rbx, rbx
je 0x14002a6d7
cmp esi, 1
jle 0x14002a6b5
cmp word [rbx], r15w
je 0x14002a6b5
add rbx, 2
dec esi
cmp esi, 1
jg 0x14002a6a4
movzx eax, word [rbx]
test ax, ax
je 0x14002a6d7
sub rbx, rdi
test ecx, ecx
je 0x14002a6d7
mov word [rdi], ax
dec ecx
movzx eax, word [rbx + rdi + 2]
add rdi, 2
test ax, ax
jne 0x14002a6c0
call fcn.140039560
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.14003a0b0

Function at 0x14002a700
Capabilities:
Get thread local storage value

Disassembly:
mov r9d, r8d
lea r8, [0x14013840c]
jmp fcn.14002a710

Function at 0x14002a710
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 0x14002a809
movzx r12d, word [r8]
test r12w, r12w
je 0x14002a809
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 0x14002a789
cmp word [rcx], r13w
je 0x14002a789
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14002a770
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x14002a78e
mov edi, r13d
mov esi, eax
call fcn.1400453a0
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.1400383e0
mov r14, rax
test r15d, r15d
je 0x14002a7b3
mov ecx, r15d
call fcn.1400453e0
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x14002a7cd
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.14002ce50
test esi, esi
je 0x14002a7e2
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.14003a0b0
Function at 0x14002b1e0
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.1400383e0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14006c47c
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14002b213
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140039560

Function at 0x14002b7c0
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 0x14002b92b
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, [0x14013841c]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x14002b8ba
cmp word [r14 + 2], di
je 0x14002b8ba
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x14002b830
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.1400627d4
test eax, eax
je 0x14002b85e
cmp word [rbx], r12w
je 0x14002b85e
add rbx, 2
jmp 0x14002b840
inc edi
cmp edi, r15d
je 0x14002b874
cmp word [rbx], r12w
je 0x14002b87d
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x14002b840
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.1400453a0
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x14002b8f0
mov ecx, r13d
call fcn.14006c4b0
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.14002ce50
mov edx, r13d
mov ecx, r12d
call fcn.1400383e0
mov rdi, rax
jmp 0x14002b90c
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x14002b8d3
test ax, ax
je 0x14002b8d3
add rbx, 2
jmp 0x14002b8c0
inc edi
cmp edi, r15d
je 0x14002b8e5
test ax, ax
je 0x14002b87f
lea rsi, [rbx + 2]
jmp 0x14002b8ba
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x14002b87f
mov edx, r13d
mov ecx, r12d
call fcn.1400383e0
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.14003950c
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.14003a0b0
Function at 0x14002c6f4
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 [0x140229a28]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14002c775
mov r8, qword [0x140229a20]
lea edx, [rax + 8]
mov rcx, qword [0x140224818]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140229a28]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140229a18]
jmp 0x14002c761
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14002c75e
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002c74c
mov rdx, rdi
lea rcx, [0x14002c890]
call fcn.14006c5d4
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14002c78c
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 0x14002c7b6
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x140229a20]
test rbx, rbx
jne 0x14002c7fc
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140224818]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x140229a28], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140229a28]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140229a20]
jmp 0x14002c7ff
movsxd rdi, edi
mov ecx, dword [0x140229a28]
lea rax, [rdi + rbx]
mov qword [0x140229a20], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140229a20]
mov edx, 8
mov rcx, qword [0x140224818]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140229a28]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x14002c84e
test rbp, rbp
je 0x14002c875
mov edx, 0x28
lea rcx, [0x140229a18]
call fcn.1400391f8
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14002c875
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 0x14002c910
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 [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x140229a30]
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 0x14002c964
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14002c96d
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.14006c3d0
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 0x14002c9e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140223a04]
cmp ecx, 0xffffffff
jne 0x14002c9f6
call fcn.14002cc00
jmp 0x14002ca06
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14002ca25
call fcn.14006c810
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14002c9a0]
add rsp, 0x28
jmp fcn.14006c5d4
add rsp, 0x28
ret

Function at 0x14002cc00
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 [0x140229a30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140223a04], eax
add rsp, 0x28
jmp fcn.14006c810

Function at 0x14002cc60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rax, qword [rax]
add rsp, 0x28
ret

Function at 0x14002cc80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x10]
add rcx, qword [rax]
mov rax, rcx
add rsp, 0x28
ret

Function at 0x14002cca0
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 [0x140223a04]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002cce0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x14002cd00
Capabilities:
Get thread local storage value

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