joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047cb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r12d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x140047d61
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140047d61
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140047d61
mov rcx, qword [0x140398ad8]
lea rdx, [rsi - 1]
call fcn.1400606ac
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x140047d61
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x140047d51
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140047d5f
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140047d61
jmp 0x140047d3e
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x140047e31
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140047e31
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140047e31
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140047e31
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140047e31
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x140047e31
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.140016464
test eax, eax
je 0x140047e01
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.140016464
test eax, eax
jne 0x140047e1c
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140047e98
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.14001b940
test eax, eax
je 0x140047e98
test r14, r14
je 0x140047e73
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140047e66
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140047e66
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140047e73
mov edx, 1
mov rcx, r14
call fcn.140047eb4
test rdi, rdi
je 0x140047e8d
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140047e98
test rbx, rbx
je 0x140047e98
mov rax, qword [rbx + 0x10]
jmp 0x140047e9a
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x14004c834
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 0x14004c8a9
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 0x14004c8a9
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14004c881
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x140391b98]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140398ba0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140398b98], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14004c8b8
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140398ba0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x14004c8dc
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 [0x140398ba0]
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 0x14004c95c
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 [0x140398ba0]
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 0x14004c9ac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140398ba0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14004ca0d
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14004c9e5
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x140391b98]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140398ba0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140398b98], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14004ca14
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 [0x140398ba0]
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 0x14004ca63
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 0x14004caa4
Capabilities:
Get thread local storage value

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

Function at 0x14004cac8
Capabilities:
Get thread local storage value

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

Function at 0x14004caf0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov ecx, dword [0x140398ba0]
mov edi, r9d
movaps xmmword [rax - 0x18], xmm6
mov rsi, r8
movaps xmmword [rax - 0x28], xmm7
movaps xmm6, xmm1
movaps xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x14004cb3c
mov edx, edi
mov dword [rax + 0x120], edi
mov rcx, rax
call qword [rax + 0x80]
mov edx, dword [rbx + 0x11c]
cmp edx, dword [rbx + 0x124]
je 0x14004cb55
mov rcx, rbx
mov dword [rbx + 0x124], edx
call qword [rbx]
movd xmm2, dword [rbx + 0x104]
mov r9, rsi
movd xmm1, dword [rbx + 0x100]
mov rcx, rbx
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm1, xmm1
addsd xmm2, xmm6
addsd xmm1, xmm7
mov rax, qword [rbx + 0x60]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
jmp rax
Function at 0x14004cb9c
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 [0x140398ba0]
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 0x14004cc25
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 0x14004cc3c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [rsp + 0xa0]
cmp edx, dword [r14 + 0x120]
je 0x14004cc5d
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 0x14004cca4
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 ebx, r8d
mov ecx, dword [0x140398ba0]
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rsi
mov rcx, rax
mov r9d, dword [rax + 0x104]
mov r8d, dword [rax + 0x100]
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 0x14004ccf4
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, 0x30
mov rbp, rcx
mov ebx, r9d
mov ecx, dword [0x140398ba0]
mov edi, r8d
mov esi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test ebx, ebx
jle 0x14004cd53
mov r10d, dword [rsp + 0x60]
test r10d, r10d
jle 0x14004cd53
mov r9d, dword [rax + 0x104]
mov rdx, rbp
mov r8d, dword [rax + 0x100]
add r9d, edi
mov dword [rsp + 0x28], r10d
add r8d, esi
mov rcx, rax
mov dword [rsp + 0x20], ebx
call qword [rax + 0x50]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004cd68
Capabilities:
Allocate thread local storage

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

Function at 0x14004cd98
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140398ba0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rax, dword [rax + 0x10c]
add rsp, 0x28
ret
Function at 0x14004cdb4
Capabilities:
Get thread local storage value

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

Function at 0x14004cdd0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edx, 8
mov rcx, qword [0x140391b98]
mov r8d, 0x258
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140398ba0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140398b98], rdi
or eax, 0xffffffff
and dword [rdi + 0x11c], 0
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
call fcn.140050598
mov rbx, qword [rsp + 0x30]
lea rax, [0x14004dfb8]
mov qword [rdi + 0xb0], rax
lea rax, [0x14004e01c]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14004d9ec]
mov qword [rdi + 0x20], rax
lea rax, [0x14004d7a4]
mov qword [rdi + 0x60], rax
lea rax, [0x14004e0d0]
mov qword [rdi + 0xc8], rax
lea rax, [0x14004e070]
mov qword [rdi + 0xc0], rax
lea rax, [0x14004d308]
mov qword [rdi + 0x68], rax
lea rax, [0x14004d2ac]
mov qword [rdi + 0x48], rax
lea rax, [0x14004d2d8]
mov qword [rdi + 0x50], rax
lea rax, [0x14004d15c]
mov qword [rdi + 0x58], rax
lea rax, [0x14004dd90]
mov qword [rdi + 0x88], rax
lea rax, [0x14004cf00]
mov qword [rdi + 0xd0], rax
lea rax, [0x14004e360]
mov qword [rdi + 0xd8], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140054144
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r11d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rdi, dword [rcx + 0x160]
mov r15, rdx
mov rbx, rcx
test r11d, r11d
je 0x140054203
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
lea r10d, [rax + rax*2]
mov eax, edi
imul eax, r9d
movsxd r12, r10d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [rbx + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [rbx + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x1400541e9
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 3]
xor byte [rcx], al
add rcx, rdi
sub r9, 1
jne 0x1400541cc
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x140054198
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x140055508
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r10d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rbx, dword [rcx + 0x160]
mov r15, rdx
mov r11, rcx
test r10d, r10d
je 0x1400555c8
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
shl eax, 2
movsxd r12, eax
mov eax, ebx
imul eax, r9d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [r11 + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [r11 + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x1400555ad
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
xor byte [rcx], al
add rcx, rbx
sub r9, 1
jne 0x140055590
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x14005555b
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x14005f9d0
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.140061580
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14008b978
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14005fa03
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140061630
Function at 0x14005fa30
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 0x14005fb9b
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, [0x1400afc20]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x14005fb2a
cmp word [r14 + 2], di
je 0x14005fb2a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x14005faa0
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.140016464
test eax, eax
je 0x14005face
cmp word [rbx], r12w
je 0x14005face
add rbx, 2
jmp 0x14005fab0
inc edi
cmp edi, r15d
je 0x14005fae4
cmp word [rbx], r12w
je 0x14005faed
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x14005fab0
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.140061690
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x14005fb60
mov ecx, r13d
call fcn.140061700
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.14001f620
mov edx, r13d
mov ecx, r12d
call fcn.140061580
mov rdi, rax
jmp 0x14005fb7c
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x14005fb43
test ax, ax
je 0x14005fb43
add rbx, 2
jmp 0x14005fb30
inc edi
cmp edi, r15d
je 0x14005fb55
test ax, ax
je 0x14005faef
lea rsi, [rbx + 2]
jmp 0x14005fb2a
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x14005faef
mov edx, r13d
mov ecx, r12d
call fcn.140061580
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.140092e2c
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.140061660
Function at 0x14005fd90
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 0x14005fe89
movzx r12d, word [r8]
test r12w, r12w
je 0x14005fe89
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 0x14005fe09
cmp word [rcx], r13w
je 0x14005fe09
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x14005fdf0
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x14005fe0e
mov edi, r13d
mov esi, eax
call fcn.140061690
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.140061580
mov r14, rax
test r15d, r15d
je 0x14005fe33
mov ecx, r15d
call fcn.1400616d0
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x14005fe4d
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.14001f620
test esi, esi
je 0x14005fe62
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.140061660

Function at 0x1400604a4
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 [0x140398050]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140060525
mov r8, qword [0x140398048]
lea edx, [rax + 8]
mov rcx, qword [0x140391b98]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140398050]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140398040]
jmp 0x140060511
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14006050e
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400604fc
mov rdx, rdi
lea rcx, [0x140060428]
call fcn.14008c16c
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14006053c
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 0x140060566
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x140398048]
test rbx, rbx
jne 0x1400605ac
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140391b98]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x140398050], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140398050]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140398048]
jmp 0x1400605af
movsxd rdi, edi
mov ecx, dword [0x140398050]
lea rax, [rdi + rbx]
mov qword [0x140398048], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140398048]
mov edx, 8
mov rcx, qword [0x140391b98]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140398050]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x1400605fe
test rbp, rbp
je 0x140060625
mov edx, 0x28
lea rcx, [0x140398040]
call fcn.14006116c
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140060625
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 0x1400611b0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140391878]
cmp ecx, 0xffffffff
jne 0x1400611c6
call fcn.140061550
jmp 0x1400611d6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400611f5
call fcn.140061830
mov ecx, dword [0x140391878]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140061200]
add rsp, 0x28
jmp fcn.14008c16c
add rsp, 0x28
ret

Function at 0x140061240
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 [0x140391878]
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 0x140061290
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140391878]
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 0x1400612c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140391878]
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