joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b8e20
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.1400bca50
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140152c8c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400b8e50
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400bcbd0

Function at 0x1400b90f0
Capabilities:
Get thread local storage value

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

Function at 0x1400b9350
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 0x1400b94b4
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, [0x1401697bc]
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 0x1400b9480
cmp word [r14 + 2], di
je 0x1400b9480
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x1400b93c0
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x1400b93ed
cmp word [rbx], bp
je 0x1400b93ed
add rbx, 2
jmp 0x1400b93d0
inc edi
cmp edi, r12d
je 0x1400b9402
cmp word [rbx], bp
je 0x1400b940b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x1400b93d0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.1400bce20
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400b943a
mov ecx, r13d
call fcn.1400bcf20
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.1400bca50
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400b945e
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 0x1400b948d
test ax, ax
jne 0x1400b94a0
inc edi
cmp edi, edx
je 0x1400b94a6
test ax, ax
je 0x1400b940e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x1400b9480
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x1400b940e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400bcb90
Function at 0x1400ba110
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 0x1400ba1fa
movzx r15d, word [r8]
test r15w, r15w
je 0x1400ba1fa
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 0x1400ba17d
cmp word [rcx], r13w
je 0x1400ba17d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x1400ba165
cmp ebx, edi
cmovg ebx, edi
sub edi, ebx
jns 0x1400ba180
mov edi, r13d
jmp 0x1400ba180
mov ebx, r13d
call fcn.1400bce20
lea ecx, [rbx + rdi]
mov edx, ebp
mov r12d, eax
call fcn.1400bca50
mov r14, rax
test r12d, r12d
je 0x1400ba1a5
mov ecx, r12d
call fcn.1400bce90
mov rsi, rax
mov r12, qword [rsp + 0x58]
test ebx, ebx
je 0x1400ba1c3
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 0x1400ba1d9
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.1400bcb90

Function at 0x1400ba260
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x1400ba2ad
mov ebx, 0x40
mov edx, r8d
mov ecx, ebx
call fcn.1400bca50
mov rdx, rdi
mov rcx, rax
call fcn.140152cbc
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400ba290
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400bcbd0
cmp edx, 1
je 0x1400ba2cb
cmp edx, 0x18
je 0x1400ba2cb
cmp edx, 3
je 0x1400ba2c6
cmp edx, 0x19
je 0x1400ba2c6
cmp edx, 0xb
jne 0x1400ba2ce
movzx edi, cx
jmp 0x1400ba2ce
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.1400bca50
lea rdx, [0x140181154]
mov r8d, edi
mov rcx, rax
call fcn.140153530
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400bcbd0

Function at 0x1400bae50
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 [0x1406a60e0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400baed1
mov r8, qword [0x1406a60d8]
mov rcx, qword [0x1406a23c8]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1406a60e0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rbx, qword [0x1406a60d0]
jmp 0x1400baebd
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400baeba
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400baea8
lea rcx, [0x1400badb4]
mov rdx, rdi
call fcn.140152e2c
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400baee8
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 0x1400baf12
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x1406a60d8]
test rcx, rcx
jne 0x1400baf55
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov rcx, qword [0x1406a23c8]
movsxd r8, ebx
mov edx, 8
mov dword [0x1406a60e0], eax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1406a60e0]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rcx, qword [0x1406a60d8]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x1406a60d8], rcx
mov ecx, dword [0x1406a60e0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, qword [0x1406a60d8]
mov rcx, qword [0x1406a23c8]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ecx, dword [0x1406a60e0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test rdi, rdi
jne 0x1400bafa9
test rbp, rbp
je 0x1400bafd0
lea rcx, [0x1406a60d0]
mov edx, 0x28
call fcn.1400bbabc
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x1400bafd0
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 0x1400bbb70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1406a6150], 0
jne 0x1400bbb95
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1406a6150], 1
mov dword [0x1406a6154], eax
mov rcx, qword [0x1406a23c8]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1406a6154]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400bbd50
Function at 0x1400bbd50
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
cmp dword [0x1406a6150], 0
mov ebx, ecx
jne 0x1400bbd74
call fcn.1400bbb70
mov ecx, dword [0x1406a6154]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400bbd9c
call fcn.1400bbb70
mov ecx, dword [0x1406a6154]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x1400bbdb0
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x1400bbdf0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400bbe50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1406a6150], 0
mov rbx, rcx
jne 0x1400bbe67
call fcn.1400bbb70
mov ecx, dword [0x1406a6154]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x1400bbe8f
call fcn.1400bbb70
mov ecx, dword [0x1406a6154]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, reloc.WS2_32.dll_recv
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x1400bbf08
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x1400bbfe0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x14069c1c8], 0xffffffff
jne 0x1400bc00f
call fcn.1400bc700
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400bbf90]
call fcn.140152e2c
jmp 0x1400bc040
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
jne 0x1400bc040
call fcn.1400bd2e0
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400bbf90]
call fcn.140152e2c
add rsp, 0x28
ret
Function at 0x1400bc050
Capabilities:
Get thread local storage value

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

Function at 0x1400bc0b0
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 [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x338]
dec rax
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x338], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x338]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax*8 + 0x18]
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 0x1400bc120
Capabilities:
Get thread local storage value

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

Function at 0x1400bc190
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x338]
dec rax
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x338], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x338]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x20]
mov rax, qword [rdx + rax*8 + 0x18]
mov qword [rcx + 0x10], 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 0x1400bc200
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x338]
dec rax
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x338], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x338]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x20]
add rcx, qword [rdx + rax*8 + 0x18]
mov rax, rcx
add rsp, 0x38
ret
Function at 0x1400bc290
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
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 0x1400bc2f6
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x1406a74c0]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x1400bc321
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 [0x1406a74c0]
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.1400bcf50
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400bc4e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
add rsp, 0x38
ret

Function at 0x1400bc620
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 [0x14069c1c8]
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 0x1400bc670
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
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 0x1400bc700
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 [0x1406a74c0], rax
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x14069c1c8], eax
call fcn.1400bd2e0
add rsp, 0x28
ret
Function at 0x1400bca50
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1400bca80
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 0x1400bcaf2
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 [0x1406a74c0]
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x1400bcb50
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x1400bcb50
cmp dword [rsp + 0x20], 0x100000
jge 0x1400bcb13
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 [0x1406a74c0]
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 0x1400bcb90
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
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
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x1400bcbd0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
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
Function at 0x1400bce20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x1400bce7b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x1400bce7b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x1400bce7d
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400bce90
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x1400bcf20
Capabilities:
Get thread local storage value

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

Function at 0x1400bd2e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x340
xor edx, edx
mov rcx, qword [0x1406a74c0]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
mov rcx, qword [0x1406a74c0]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x338], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x14069c1c8]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
add rsp, 0x38
ret

Function at 0x1400bd530
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rsi, rcx
xor r11d, r11d
lea rdi, [rcx + 0x33b8c]
nop dword [rax]
xor r9d, r9d
mov r10d, r11d
lea eax, [r9 + 1]
lea ebx, [rax + 3]
nop dword [rax]
mov ecx, eax
mov r8d, r10d
add eax, eax
movzx edx, word [rsi + rcx*2 + 0x34234]
and r8d, 1
shr r10d, 1
mov ecx, r8d
shr rdx, 4
or eax, r8d
neg ecx
sar rcx, 4
and ecx, 0x7f
xor rdx, rcx
add r9d, dword [rsi + rdx*4 + 0x324dc]
dec ebx
jne 0x1400bd560
inc r11d
mov dword [rdi], r9d
add rdi, 4
cmp r11d, 0x10
jb 0x1400bd550
mov rdi, qword [rsp + 0x18]
mov dword [rsi + 0x33bcc], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret