joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010fb0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400629e0]
mov r14d, edx
mov esi, dword [rsp + 0x90]
mov r10, rcx
mov eax, esi
and eax, 0x40000000
mov rbx, qword [rdi + 0x4068]
bts eax, 0x1d
mov r9d, dword [rdi + 0x4a78]
shr eax, 0x1d
mov r15d, eax
bts r15d, 8
test esi, esi
cmovns r15d, eax
mov eax, dword [rbx + 0x14]
and eax, 4
mov dword [rdi + 0x4ab0], r15d
or eax, 0x1000103
bts r9d, 8
or esi, eax
mov dword [rdi + 0x4a78], r9d
cmp qword [rbx + 0x1c0], 0
jne 0x140011053
cmp qword [rdi + 0x4e78], 0
mov eax, 0x268
je 0x140011058
mov eax, 0x238
movss xmm2, dword [rbx + rax]
lea rcx, [rsp + 0x30]
movss xmm3, dword [rbx + rax + 4]
subss xmm3, dword [rbx + 0x11c]
subss xmm2, dword [rbx + 0x118]
mov rdx, qword [r8]
call fcn.14001ad50
movsd xmm0, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
or r9d, 2
movsd qword [rdi + 0x4a98], xmm0
xor edx, edx
mov dword [rdi + 0x4a78], r9d
mov dword [rdi + 0x4a80], 1
mov r9, qword [rbx + 8]
test r10, r10
je 0x1400110cb
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], r10
call fcn.140009240
jmp 0x1400110dc
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
call fcn.140009240
mov rcx, qword [rsp + 0x30]
mov r8d, esi
movss xmm6, dword [rdi + 0x3928]
xor edx, edx
call fcn.1400141c0
mov rsi, qword [rdi + 0x4068]
movzx ebp, al
movss dword [rdi + 0x3928], xmm6
cmp word [rsi + 0xd8], 1
mov dword [rsi + 0x90], r14d
jne 0x140011123
movsd xmm0, qword [rsi + 0x28]
movsd qword [rbx + 0x118], xmm0
mov r9d, r14d
lea rdx, [0x140053441]
not r9d
lea r10, [0x1400545e0]
mov ebx, r9d
mov r8b, 0x23
nop dword [rax]
cmp r8b, 0x23
jne 0x140011153
cmp byte [rdx], r8b
jne 0x140011153
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140011140
not ebx
cmp dword [rdi + 0x40d4], ebx
jne 0x140011183
xor edx, edx
xor ecx, ecx
call fcn.14000d780
cmp dword [rdi + 0x4ba4], r14d
jne 0x1400111d0
bt r15d, 8
jb 0x1400111d0
cmp word [rsi + 0x174], 0
jne 0x1400111a6
cmp byte [rsi + 0x17a], 0
je 0x1400111d0
xor edx, edx
mov rcx, rsi
call fcn.140016a80
xor edx, edx
mov rcx, rsi
call fcn.14001d7b0
mov rdx, rsi
mov ecx, ebx
call fcn.14000d780
mov eax, dword [rdi + 0x4bd8]
mov dword [rdi + 0x4100], eax
movzx eax, bpl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004f540
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x140017590
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
lea r11, [0x1400545e0]
mov rax, qword [rcx + 0x110]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x40bc], ebx
jne 0x140017626
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.140022500
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140017630
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x110]
lea r9, [0x1400545e0]
movss xmm2, dword [rcx + 0x128]
movss xmm3, dword [rcx + 0x12c]
movsxd rcx, dword [rcx + 0x108]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x14001ba90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400629e0]
mov edi, ecx
cmp byte [rbx + 0x4dad], 0
jne 0x14001baf1
cmp byte [rbx + 0x4dae], 0
jne 0x14001baf1
movsx r9d, word [rbx + 0x5f20]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400091c0
test dil, 2
je 0x14001bc1f
jmp 0x14001bb7a
movss xmm1, dword [rbx + 0x39d4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5f20]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005992c]
mulss xmm1, dword [0x140059924]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x108]
addss xmm1, dword [rbx + 0x10c]
mov qword [rbx + 0x4a90], rax
mov dword [rbx + 0x4a7c], 1
movss dword [rbx + 0x4a88], xmm0
movss dword [rbx + 0x4a8c], xmm1
movss xmm0, dword [rbx + 0x3a30]
mulss xmm0, dword [0x1400598a0]
or dword [rbx + 0x4a78], 0x41
movss dword [rbx + 0x4ad8], xmm0
call fcn.1400091c0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001bbd0
lea r11, [0x1400545e0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14001bbb3
cmp byte [r8], r9b
jne 0x14001bbb3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001bba0
not ecx
call fcn.140011410
test rax, rax
je 0x14001bc1f
cmp byte [rax + 0xca], 0
je 0x14001bc1f
mov byte [rax + 0xcf], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd2], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xec], 1
mov edx, 0x10
inc word [rbx + 0x5f20]
movsx r9d, word [rbx + 0x5f20]
call fcn.1400091c0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.1400141c0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004f540
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140020d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6080], 0
lea rbx, [rcx + 0x6088]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140020de7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140020d9a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400235b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140009ea0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6080]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6090]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400629d8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140020def
mov rcx, rbx
call fcn.140009ea0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140021120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400629e0]
xor ebp, ebp
cmp byte [rbx + 0x5fd0], bpl
jne 0x1400211ff
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400211f8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140009640
mov rsi, rax
test rax, rax
je 0x1400211f8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140021184
mov rcx, rax
call fcn.140021350
mov r8, qword [0x1400629e0]
test r8, r8
je 0x1400211ef
movsx rdx, word [r8 + 0x6160]
lea rcx, [r8 + 0x6164]
mov r9d, dword [r8 + 0x3fb0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400211e4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6160], cx
movsx rax, cx
lea rcx, [r8 + 0x6164]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x615c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5fd0], 1
movss xmm0, dword [rbx + 0x5fd4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14002128e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5fd4], xmm0
jb 0x14002128e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140021281
mov rax, qword [0x1400629e0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5fd4], ebp
call fcn.1400215b0
lea rdx, [0x1400540d4]
mov rcx, rdi
mov rsi, rax
call fcn.140009490
mov rdi, rax
test rax, rax
je 0x140021288
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140021288
mov byte [rbx + 0xde], 1
mov dword [rbx + 0x5fd4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400212b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400629e0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140021313
mov qword [rsp], rbx
lea rbx, [0x1400545e0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400212f3
cmp byte [r8], r9b
jne 0x1400212f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400212e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5fe8]
not eax
mov r8, qword [r10 + 0x5ff0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002133f
cmp dword [r8 + 8], eax
je 0x140021346
add r8, 0x48
cmp r8, rcx
jne 0x140021330
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400366f0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400629e0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003690f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003690f
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1400629e0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x1400367c4
movsx rdx, word [r8 + 0x6160]
lea rax, [r8 + 0x6164]
mov r9d, dword [r8 + 0x3fb0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400367b9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6160], cx
movsx rax, cx
lea rax, [rax*8 + 0x6164]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6158]
test rdi, rdi
je 0x1400367e1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400367e4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140059218]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140036827
mov rsi, qword [r8 + 0x90]
jmp 0x14003682a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140036855
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1400629e0]
mov rcx, qword [rax + 0x4b88]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400368cf
inc rbx
cmp rbx, 5
jl 0x1400368b1
jmp 0x1400368fb
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140036911
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004f540
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x1400500b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140050102
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050102
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140050102
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140050102
cmp dword [rcx + 0x84], 0xe
jbe 0x140050102
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140050104
xor al, al
add rsp, 0x28
ret
Function at 0x140002a60
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 eax, dword [0x1400c6a70]
mov rsi, rcx
cmp eax, 2
jne 0x140002b60
call fcn.140004d64
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x140002b60
mov rbx, qword [rax]
jmp 0x140002aa9
cmp qword [rbx + 8], rsi
je 0x140002ab4
add rbx, 0x10
cmp rbx, qword [rax + 8]
jne 0x140002a9f
jmp 0x140002b60
cmp rbx, qword [rax + 8]
je 0x140002b60
movsxd rdx, dword [rbx]
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rdi + 8]
add rbx, 0x10
cmp rbx, rcx
je 0x140002af0
mov eax, dword [rbx]
mov dword [rbx - 0x10], eax
mov rax, qword [rbx + 8]
mov qword [rbx - 8], rax
add rbx, 0x10
cmp rbx, rcx
jne 0x140002ad6
mov rcx, qword [rdi + 8]
lea rax, [rcx - 0x10]
mov qword [rdi + 8], rax
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x140002b60
test rcx, rcx
je 0x140002b44
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x140002b31
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002b70
mov rcx, r8
call fcn.14005cb40
and qword [rdi], 0
and qword [rdi + 8], 0
and qword [rdi + 0x10], 0
mov edx, 0x18
mov rcx, rdi
call fcn.14005cb40
call fcn.140004d64
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140067514
int3

Function at 0x140002b78
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, 0x30
mov ebx, edx
mov rdi, rcx
call fcn.140002a60
lea r9, [0x140002c30]
mov r8d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetTimer]
mov rsi, rax
call fcn.140004d64
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140002bef
lea ecx, [rax + 0x18]
call fcn.14000d0e4
mov rbx, rax
test rax, rax
je 0x140002bdd
and qword [rax], 0
and qword [rax + 8], 0
and qword [rax + 0x10], 0
jmp 0x140002bdf
xor ebx, ebx
call fcn.140004d64
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [rbx + 8]
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], rdi
cmp rdx, qword [rbx + 0x10]
je 0x140002c12
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rdx], xmm0
add qword [rbx + 8], 0x10
jmp 0x140002c1f
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.140005248
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140003010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, rax
call fcn.140004cec
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140003090
lea ecx, [rax + 0x10]
call fcn.14000d0e4
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000307e
and qword [rax], 0
and qword [rax + 8], 0
mov ecx, 0x30
call fcn.14000d0e4
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
jmp 0x140003080
xor ebx, ebx
call fcn.140004cec
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rdx, rcx
jmp 0x1400030ae
cmp qword [rax + 0x20], rdi
jae 0x1400030a8
mov rax, qword [rax + 0x10]
jmp 0x1400030ae
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14000309c
cmp byte [rcx + 0x19], 0
jne 0x1400030c9
cmp rdi, qword [rcx + 0x20]
jb 0x1400030c9
cmp rcx, rdx
je 0x1400030c9
xor al, al
jmp 0x1400030f0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140005144
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetCapture]
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140003100
Capabilities:
Get thread local storage value
Set 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 r14
sub rsp, 0x20
mov eax, dword [0x1400c6a80]
mov bpl, dl
mov rsi, rcx
cmp eax, 2
jne 0x140003265
call fcn.140004cec
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140003265
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x10]
mov r8, qword [rdi]
mov rcx, r8
mov rdx, qword [r8 + 8]
jmp 0x140003170
cmp qword [rdx + 0x20], rax
jae 0x14000316a
mov rdx, qword [rdx + 0x10]
jmp 0x140003170
mov rcx, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x19], bl
je 0x14000315e
cmp byte [rcx + 0x19], bl
jne 0x140003265
cmp rax, qword [rcx + 0x20]
jb 0x140003265
cmp rcx, r8
je 0x140003265
cmp qword [rcx + 0x28], rsi
jne 0x140003265
mov r8, qword [rcx + 0x10]
mov rdx, rcx
cmp byte [r8 + 0x19], bl
je 0x1400031c2
mov rax, qword [rcx + 8]
jmp 0x1400031bb
cmp rcx, qword [rax + 0x10]
jne 0x1400031d6
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bl
je 0x1400031ae
jmp 0x1400031d6
mov r8, qword [r8]
cmp byte [r8 + 0x19], bl
jne 0x1400031d6
mov rax, qword [r8]
mov r8, rax
cmp byte [rax + 0x19], bl
je 0x1400031cb
mov rcx, rdi
call fcn.140005448
mov r14d, 0x30
mov rcx, rax
mov edx, r14d
call fcn.14005cb40
cmp qword [rdi + 8], rbx
jne 0x14000324a
mov rcx, qword [rdi]
mov rsi, qword [rcx + 8]
cmp byte [rsi + 0x19], bl
jne 0x140003226
mov r8, qword [rsi + 0x10]
mov rdx, rdi
mov rcx, rdi
call fcn.1400058ac
mov rcx, rsi
mov rdx, r14
mov rsi, qword [rsi]
call fcn.14005cb40
cmp byte [rsi + 0x19], bl
je 0x140003201
mov rcx, qword [rdi]
mov rdx, r14
call fcn.14005cb40
mov edx, 0x10
mov rcx, rdi
call fcn.14005cb40
call fcn.140004cec
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test bpl, bpl
je 0x140003256
mov ebx, 1
jmp 0x140003261
call qword [sym.imp.USER32.dll_ReleaseCapture]
test eax, eax
setne bl
mov al, bl
jmp 0x140003267
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140003284
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1400c6a80]
mov rbx, rcx
cmp eax, 2
jne 0x1400032e8
call fcn.140004cec
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x1400032e8
mov rdx, qword [rax]
mov rcx, rdx
mov rax, qword [rdx + 8]
jmp 0x1400032cb
cmp qword [rax + 0x20], rbx
jae 0x1400032c5
mov rax, qword [rax + 0x10]
jmp 0x1400032cb
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r8b
je 0x1400032b9
cmp byte [rcx + 0x19], r8b
jne 0x1400032e8
cmp rbx, qword [rcx + 0x20]
jb 0x1400032e8
cmp rcx, rdx
je 0x1400032e8
mov rax, qword [rcx + 0x28]
jmp 0x1400032ea
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140004cec
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1400c6a80]
cmp eax, 2
je 0x140004d57
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x1400c6a80], ecx
jne 0x140004d4c
mov ecx, 4
call fcn.14000d0e4
mov qword [rsp + 0x30], rax
mov rbx, rax
test rax, rax
je 0x140004d2f
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x140004d31
xor ebx, ebx
mov qword [0x1400c6a88], rbx
mov dword [0x1400c6a80], 2
jmp 0x140004d57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1400c6a80]
cmp eax, 2
jne 0x140004d44
mov rax, qword [0x1400c6a88]
add rsp, 0x20
pop rbx
ret

Function at 0x140004d64
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1400c6a70]
cmp eax, 2
je 0x140004dcf
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x1400c6a70], ecx
jne 0x140004dc4
mov ecx, 4
call fcn.14000d0e4
mov qword [rsp + 0x30], rax
mov rbx, rax
test rax, rax
je 0x140004da7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x140004da9
xor ebx, ebx
mov qword [0x1400c6a78], rbx
mov dword [0x1400c6a70], 2
jmp 0x140004dcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1400c6a70]
cmp eax, 2
jne 0x140004dbc
mov rax, qword [0x1400c6a78]
add rsp, 0x20
pop rbx
ret