joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033064
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, 0x30
mov ecx, dword [0x1403140c0]
movaps xmmword [rax - 0x18], xmm6
mov ebp, edx
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov eax, dword [rax + 0xe8]
cmp eax, 0xc
ja 0x140033181
mov ecx, 0x110c
bt ecx, eax
jae 0x140033181
xorps xmm0, xmm0
comiss xmm0, xmm6
ja 0x1400330c2
movss xmm0, dword [0x1400d48d8]
comiss xmm6, xmm0
jbe 0x1400330c5
movaps xmm6, xmm0
mov rbx, qword [rsi + 0x138]
xor edi, edi
test rbx, rbx
je 0x140033125
movss xmm0, dword [rbx + 8]
ucomiss xmm0, xmm6
jp 0x1400330df
je 0x1400330ec
comiss xmm0, xmm6
ja 0x1400330f1
mov rdi, rbx
mov rbx, qword [rbx]
jmp 0x1400330ce
mov rcx, rbx
jmp 0x140033120
mov rcx, qword [0x140311830]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x140033125
mov qword [rax], rbx
test rdi, rdi
je 0x140033119
mov qword [rdi], rax
jmp 0x140033120
mov qword [rsi + 0x138], rax
test rcx, rcx
jne 0x140033155
mov rcx, qword [0x140311830]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x140033181
and qword [rax], 0
test rdi, rdi
je 0x14003314e
mov qword [rdi], rax
jmp 0x140033155
mov qword [rsi + 0x138], rax
movzx eax, bpl
movss dword [rcx + 8], xmm6
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
sar ebp, 0x18
movzx eax, al
mov dword [rcx + 0x14], eax
movzx eax, bpl
mov dword [rcx + 0x18], eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x14003319c
Capabilities:
Get thread local storage value

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

Function at 0x1400331bc
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1403140c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x118], ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400333a0
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 ecx, dword [0x1403140c0]
mov ebp, r9d
mov ebx, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11d, dword [rax + 0x100]
mov r10d, dword [rax + 0x104]
mov rdi, rax
mov eax, dword [rax + 0xe8]
add esi, r11d
add r14d, r10d
add ebx, r11d
add ebp, r10d
cmp eax, 0xc
ja 0x1400335b6
mov ecx, 0x110c
bt ecx, eax
jae 0x1400335b6
mov r15d, ebx
mov r12d, ebp
mov dword [rdi + 0x1a8], esi
sub r15d, esi
sub r12d, r14d
mov dword [rdi + 0x1ac], r14d
mov ecx, r12d
mov eax, r15d
mov dword [rdi + 0x1b0], ebx
mov dword [rdi + 0x1b4], ebp
imul ecx, r12d
imul eax, r15d
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call sub.msvcrt.dll_sqrtf
movss dword [rdi + 0x1b8], xmm0
cmp r14d, ebp
jne 0x140033475
lea rax, [0x140033300]
lea rcx, [0x1400332cc]
cmp esi, ebx
cmovle rax, rcx
jmp 0x1400335af
cmp esi, ebx
jne 0x14003348c
lea rax, [0x14003336c]
lea rcx, [0x140033334]
cmp r14d, ebp
jmp 0x14003346c
mov ecx, r12d
call sub.msvcrt.dll_abs
mov ecx, r15d
mov ebx, eax
call sub.msvcrt.dll_abs
mov edx, 1
cmp eax, ebx
jl 0x1400334b0
and dword [rdi + 0x1c0], 0
jmp 0x1400334fe
mov eax, dword [rdi + 0x1ac]
mov dword [rdi + 0x1c0], edx
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1a8]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1ac]
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1b0], eax
mov eax, dword [rdi + 0x1b0]
xor dword [rdi + 0x1b4], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1b0], eax
mov ecx, dword [rdi + 0x1a8]
mov eax, dword [rdi + 0x1b0]
cmp ecx, eax
jge 0x140033517
and dword [rdi + 0x1bc], 0
jmp 0x14003355b
xor eax, ecx
mov dword [rdi + 0x1bc], edx
xor dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b0]
xor dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1ac]
xor dword [rdi + 0x1b4], eax
mov eax, dword [rdi + 0x1b4]
xor dword [rdi + 0x1ac], eax
mov eax, dword [rdi + 0x1b4]
sub eax, dword [rdi + 0x1ac]
movd xmm1, eax
mov eax, dword [rdi + 0x1b0]
sub eax, dword [rdi + 0x1a8]
movd xmm0, eax
lea rax, [0x1400331dc]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [rdi + 0x1c4], xmm1
movsd xmm1, qword [0x1400d48e0]
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 0x1400335d8
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, 0x40
mov r15d, ecx
mov ecx, dword [0x1403140c0]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add r15d, dword [rax + 0x100]
add ebp, dword [rax + 0x104]
mov rsi, rax
test edi, edi
jns 0x140033625
add r15d, edi
neg edi
test ebx, ebx
jns 0x14003362d
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x140033647
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov r12d, dword [rsp + 0x88]
lea ecx, [r12 + r12]
cmp ecx, ebx
jle 0x140033661
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsi + 0x118]
cmp edx, dword [rsi + 0x120]
je 0x14003367e
mov rcx, rsi
mov dword [rsi + 0x120], edx
call qword [rsi + pe_nt_image_headers64]
mov dword [rsp + 0x30], r12d
mov r9d, edi
mov r8d, ebp
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
call qword [rsi + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x1400336bc
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 ecx, dword [0x1403140c0]
mov edi, r9d
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rax + 0x118]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x14003370d
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9d, esi
mov rcx, rbx
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x20], edi
call qword [rbx + htons]
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 0x14003377c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1403140c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400337dd
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400337b5
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x140311830]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1403140c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1403140e0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400337e4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1403140c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x14003381a
mov edx, 0x110c
bt edx, ecx
jae 0x14003381a
test rbx, rbx
je 0x14003381a
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140033820
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 [0x1403140c0]
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 0x140033870
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, 0x40
mov r15d, ecx
mov ecx, dword [0x1403140c0]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add r15d, dword [rax + 0x100]
add ebp, dword [rax + 0x104]
mov rsi, rax
test edi, edi
jns 0x1400338bd
add r15d, edi
neg edi
test ebx, ebx
jns 0x1400338c5
add ebp, ebx
neg ebx
mov r14d, dword [rsp + 0x80]
lea eax, [r14 + r14]
cmp eax, edi
jle 0x1400338df
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
mov r12d, dword [rsp + 0x88]
lea ecx, [r12 + r12]
cmp ecx, ebx
jle 0x1400338f9
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov edx, dword [rsp + 0x90]
cmp edx, dword [rsi + 0x120]
je 0x140033917
mov rcx, rsi
mov dword [rsi + 0x120], edx
call qword [rsi + pe_nt_image_headers64]
mov dword [rsp + 0x90], r12d
mov r9d, edi
mov r8d, ebp
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x80], ebx
mov rax, qword [rsi + 0x10]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
jmp rax
Function at 0x140039b70
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, IsNetDrive
mov ecx, esi
call fcn.14003d3f0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400b2c80
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140039ba0
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003d530

Function at 0x140039e30
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 0x140039f94
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, [0x1400d15ec]
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 0x140039f60
cmp word [r14 + 2], di
je 0x140039f60
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140039ea0
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x140039ecd
cmp word [rbx], bp
je 0x140039ecd
add rbx, 2
jmp 0x140039eb0
inc edi
cmp edi, r12d
je 0x140039ee2
cmp word [rbx], bp
je 0x140039eeb
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140039eb0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.14003d780
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x140039f1a
mov ecx, r13d
call fcn.14003d860
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.14003d3f0
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x140039f3e
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 0x140039f6d
test ax, ax
jne 0x140039f80
inc edi
cmp edi, edx
je 0x140039f86
test ax, ax
je 0x140039eee
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140039f60
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x140039eee
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.14003d820
Function at 0x14003abb0
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 0x14003ac9a
movzx r15d, word [r8]
test r15w, r15w
je 0x14003ac9a
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 0x14003ac1d
cmp word [rcx], r13w
je 0x14003ac1d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x14003ac05
cmp ebx, edi
cmovg ebx, edi
sub edi, ebx
jns 0x14003ac20
mov edi, r13d
jmp 0x14003ac20
mov ebx, r13d
call fcn.14003d780
lea ecx, [rbx + rdi]
mov edx, ebp
mov r12d, eax
call fcn.14003d3f0
mov r14, rax
test r12d, r12d
je 0x14003ac45
mov ecx, r12d
call fcn.14003d7f0
mov rsi, rax
mov r12, qword [rsp + 0x58]
test ebx, ebx
je 0x14003ac63
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 0x14003ac79
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.14003d820

Function at 0x14003ad00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x14003ad4d
mov ebx, IsNetDrive
mov edx, r8d
mov ecx, ebx
call fcn.14003d3f0
mov rdx, rdi
mov rcx, rax
call fcn.1400b2cb0
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14003ad30
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003d530
cmp edx, 1
je 0x14003ad6b
cmp edx, 0x18
je 0x14003ad6b
cmp edx, 3
je 0x14003ad66
cmp edx, 0x19
je 0x14003ad66
cmp edx, 0xb
jne 0x14003ad6e
movzx edi, cx
jmp 0x14003ad6e
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.14003d3f0
lea rdx, [0x1400d4988]
mov r8d, edi
mov rcx, rax
call fcn.1400b3660
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003d530

Function at 0x14003be08
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 [0x140313aa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003be89
mov r8, qword [0x140313a98]
mov rcx, qword [0x140311830]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140313aa0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140313a90]
jmp 0x14003be75
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14003be72
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003be60
lea rcx, [0x14003bd6c]
mov rdx, rdi
call fcn.1400b2e20
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003bea0
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 0x14003beca
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x140313a98]
test rcx, rcx
jne 0x14003bf0d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140311830]
movsxd r8, ebx
mov edx, 8
mov dword [0x140313aa0], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140313aa0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140313a98]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x140313a98], rcx
mov ecx, dword [0x140313aa0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140313a98]
mov rcx, qword [0x140311830]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140313aa0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
jne 0x14003bf61
test rbp, rbp
je 0x14003bf88
lea rcx, [0x140313a90]
mov edx, 0x28
call fcn.14003cb74
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x14003bf88
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 0x14003cc20
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 [0x140314400], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14030c180], eax
call fcn.14003dc20
add rsp, 0x28
ret

Function at 0x14003cd80
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 [0x14030c180]
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
Function at 0x14003ce40
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x14003cea6
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x140314400]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x14003ced1
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140314400]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
add rcx, qword [rdx]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.14003d890
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x14003cf20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x14003cf50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x14003d030
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x14030c180], 0xffffffff
jne 0x14003d05f
call fcn.14003cc20
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14003cfe0]
call fcn.1400b2e20
jmp 0x14003d090
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003d090
call fcn.14003dc20
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14003cfe0]
call fcn.1400b2e20
add rsp, 0x28
ret

Function at 0x14003d110
Capabilities:
Get thread local storage value

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

Function at 0x14003d170
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
add rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret
Function at 0x14003d1a0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x14003d3f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x14003d420
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x14003d492
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140314400]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x14003d4f0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x14003d4f0
cmp dword [rsp + 0x20], 0x100000
jge 0x14003d4b3
mov dword [rsp + 0x20], 0x100000
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140314400]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14003d530
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14030c180]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret