joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800021d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor r8d, r8d
mov rdi, rcx
cmp byte [rcx], r8b
sete r8b
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 8], rax
test rax, rax
jne 0x180002261
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ebx, 0xa
mov ebp, 0x3e8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
cmp byte [rdi], r8b
sete r8b
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 8], rax
test rax, rax
jne 0x180002261
add ebx, ebx
cmp ebx, ebp
cmova ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
jae 0x180002276
jmp 0x18000221f
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call fcn.18000142c
int3

Function at 0x180004fe0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 4]
mov rbx, rcx
cmp eax, 2
je 0x180005089
cmp byte [0x18002791c], 0
mov esi, 1
je 0x18000503d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov ecx, dword [0x180028b08]
mov eax, dword [rbx + 4]
cmp eax, 2
je 0x180005089
pause
sub ecx, esi
test ecx, ecx
jg 0x180005020
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x64
jb 0x180005014
xor eax, eax
lock cmpxchg dword [rbx + 4], esi
cmp eax, 2
je 0x180005089
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x18000507d
test eax, eax
jne 0x18000506e
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], sil
call fcn.1800021d4
mov qword [rbx + 0x10], rax
mov rcx, rax
jmp 0x18000507d
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000506e
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800052e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x180027910]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
mov r8, qword [rax + 0x28]
mov edx, dword [r8 + 0x1c]
test edx, edx
je 0x180005316
lea ecx, [rdx - 1]
mov eax, edx
lock cmpxchg dword [r8 + 0x1c], ecx
jne 0x1800052f9
mov ebx, dword [r8 + 0x18]
sub ebx, edx
jmp 0x180005321
or ebx, 0xffffffff
mov rcx, r9
call fcn.180005bd4
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800054b0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rdi
sub rsp, 0x38
mov ecx, dword [0x180027910]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rsp + 0x50]
mov rdi, rax
mov rbx, qword [rax + 0x28]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], ecx
cmp dword [rbx + 0x28], 0
jle 0x180005520
mov ecx, 2
xchg dword [rbx + 0x2c], ecx
cmp ecx, 1
jne 0x180005520
jmp 0x18000550b
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
cmp qword [rbx + 0x38], 0
je 0x180005505
mov rcx, qword [rbx + 0x38]
mov byte [rbx + 0x30], 1
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call fcn.180005bd4
call sym.VCOMP140D.DLL_qvcomp_barrier
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x180005534
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x180027910]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdi, qword [rax + 0x28]
test rcx, rcx
jne 0x180005573
lea rcx, [rdi + 0x28]
call fcn.180004fe0
mov rcx, qword [rdi + 0x18]
mov edx, dword [rdi + 0x20]
mov qword [rbx + 0x10], rcx
mov dword [rbx + 8], edx
jmp 0x180005576
mov edx, dword [rax + 8]
add rcx, 8
mov qword [rbx + 0x10], rcx
sub edx, 1
mov rdi, qword [rcx - 8]
mov dword [rbx + 8], edx
jne 0x180005591
and qword [rbx + 0x10], 0
xor ecx, ecx
test rcx, rcx
jne 0x18000559e
mov rcx, rbx
call fcn.180005bd4
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800055f8
Capabilities:
Get thread local storage value

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

Function at 0x180005614
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x180027910]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
xor eax, eax
test rcx, rcx
je 0x180005630
mov eax, dword [rcx]
add rsp, 0x28
ret

Function at 0x180005688
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x180027910]
cmp ecx, 0xffffffff
je 0x1800056ab
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800056ab
mov rax, qword [rax + 0x20]
mov eax, dword [rax + 4]
jmp 0x1800056b0
mov eax, 1
add rsp, 0x28
ret

Function at 0x1800056cc
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x180027910]
xor ebx, ebx
cmp ecx, 0xffffffff
je 0x1800056ec
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800056ec
mov ebx, dword [rax]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800056fc
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x180027910]
xor ebx, ebx
cmp ecx, 0xffffffff
je 0x180005721
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180005721
mov rax, qword [rax + 0x20]
movzx ebx, byte [rax]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180005bd4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x28]
or eax, 0xffffffff
mov byte [rcx + 0x30], 0
lock xadd dword [rbx + 8], eax
mov rdi, qword [rbx]
sub eax, 1
jne 0x180005c44
mov rcx, qword [rdi + 0x18]
call fcn.1800196e8
mov rcx, rbx
call qword [rdi + 0x18]
mov ecx, dword [0x180027910]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x20]
mov rdi, qword [rdx + 0x28]
mov rax, qword [rdi + 0x10]
mov qword [rdx + 0x28], rax
lea rax, [rdx + 0x30]
cmp rdi, rax
je 0x180005c53
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
jmp 0x180005c53
mov rcx, qword [rdi + 0x10]
call fcn.1800196e8
mov rcx, rbx
call qword [rdi + 0x10]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x180027910]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
mov rbx, rax
test rax, rax
jne 0x180005d1e
lea ecx, [rax + 0x48]
call fcn.180001ac0
mov rbx, rax
test rax, rax
je 0x180005d0c
lea ecx, [rdi + 0x50]
call fcn.180001ac0
test rax, rax
je 0x180005ce1
lea rcx, [rax + 0x30]
mov byte [rax], dil
lea r8d, [rdi + 1]
mov qword [rax + 4], r8
lea rdx, [0x1800231f0]
mov qword [rax + 0x28], rcx
mov qword [rcx], rdx
lea rdx, [0x1800231d0]
mov dword [rcx + 8], r8d
mov qword [rcx], rdx
mov qword [rcx + 0x10], rdi
mov qword [rax + 0x48], rdi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], edi
jmp 0x180005ce4
mov rax, rdi
mov qword [rbx], rdi
mov dword [rbx + 8], edi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rax
mov byte [rbx + 0x30], dil
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov rax, qword [rax + 0x28]
mov qword [rbx + 0x28], rax
jmp 0x180005d0f
mov rbx, rdi
mov ecx, dword [0x180027910]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180005d2c
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 r15d, ecx
mov r12b, r8b
mov ecx, dword [0x180027910]
mov r14, rdx
cmp ecx, 0xffffffff
je 0x180005e25
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x180005e25
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x180005e25
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x180005e03
lea rcx, [rbp + 0x2f]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x180005dce
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x180023500]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x180005dd0
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x180005de6
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x180005e03
test rdi, rdi
je 0x180005e03
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
mov byte [rax + rcx + 0x28], r12b
mov rcx, rsi
call fcn.180005bd4
jmp 0x180005e33
mov r8b, r12b
mov rdx, r14
mov ecx, r15d
call fcn.180006998
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 0x180005e54
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 r15d, ecx
movzx r12d, r8w
mov ecx, dword [0x180027910]
mov r14, rdx
cmp ecx, 0xffffffff
je 0x180005f53
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x180005f53
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x180005f53
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x180005f30
lea rcx, [rbp*2 + 0x2e]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x180005efb
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x1800234e0]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x180005efd
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x180005f13
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x180005f30
test rdi, rdi
je 0x180005f30
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
mov word [rcx + rax*2 + 0x28], r12w
mov rcx, rsi
call fcn.180005bd4
jmp 0x180005f62
movzx r8d, r12w
mov rdx, r14
mov ecx, r15d
call fcn.180006b84
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 0x180005f84
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 r15d, ecx
mov r12d, r8d
mov ecx, dword [0x180027910]
mov r14, rdx
cmp ecx, 0xffffffff
je 0x180006081
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x180006081
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x180006081
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x18000605f
lea rcx, [rbp*4 + 0x2c]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x18000602a
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x180023480]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x18000602c
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x180006042
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x18000605f
test rdi, rdi
je 0x18000605f
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
mov dword [rcx + rax*4 + 0x28], r12d
mov rcx, rsi
call fcn.180005bd4
jmp 0x18000608f
mov r8d, r12d
mov rdx, r14
mov ecx, r15d
call fcn.180006d90
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 0x1800060b0
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 r15d, ecx
mov r12, r8
mov ecx, dword [0x180027910]
mov r14, rdx
cmp ecx, 0xffffffff
je 0x1800061ad
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x1800061ad
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x1800061ad
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x18000618b
lea rcx, [rbp*8 + 0x28]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x180006156
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x180023460]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x180006158
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x18000616e
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x18000618b
test rdi, rdi
je 0x18000618b
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
mov qword [rcx + rax*8 + 0x28], r12
mov rcx, rsi
call fcn.180005bd4
jmp 0x1800061bb
mov r8, r12
mov rdx, r14
mov ecx, r15d
call fcn.180006f4c
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 0x1800061dc
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 r15d, ecx
mov r12b, r8b
mov ecx, dword [0x180027910]
mov r14, rdx
cmp ecx, 0xffffffff
je 0x1800062d5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x1800062d5
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x1800062d5
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1800062b3
lea rcx, [rbp + 0x2f]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x18000627e
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x1800234c0]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x180006280
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x180006296
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x1800062b3
test rdi, rdi
je 0x1800062b3
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
mov byte [rax + rcx + 0x28], r12b
mov rcx, rsi
call fcn.180005bd4
jmp 0x1800062e3
mov r8b, r12b
mov rdx, r14
mov ecx, r15d
call fcn.180007124
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 0x180006304
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 r15d, ecx
movzx r12d, r8w
mov ecx, dword [0x180027910]
mov r14, rdx
cmp ecx, 0xffffffff
je 0x180006403
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x180006403
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x180006403
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1800063e0
lea rcx, [rbp*2 + 0x2e]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x1800063ab
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x1800234a0]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x1800063ad
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1800063c3
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x1800063e0
test rdi, rdi
je 0x1800063e0
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
mov word [rcx + rax*2 + 0x28], r12w
mov rcx, rsi
call fcn.180005bd4
jmp 0x180006412
movzx r8d, r12w
mov rdx, r14
mov ecx, r15d
call fcn.180007310
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 0x180006434
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
push r14
push r15
sub rsp, 0x30
mov r15d, ecx
movaps xmmword [rax - 0x28], xmm6
mov ecx, dword [0x180027910]
movaps xmm6, xmm2
mov r14, rdx
cmp ecx, 0xffffffff
je 0x180006531
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x180006531
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x180006531
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x18000650e
lea rcx, [rbp*4 + 0x2c]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x1800064d9
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x180023540]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x1800064db
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1800064f1
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x18000650e
test rdi, rdi
je 0x18000650e
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
movss dword [rcx + rax*4 + 0x28], xmm6
mov rcx, rsi
call fcn.180005bd4
jmp 0x18000653f
movaps xmm2, xmm6
mov rdx, r14
mov ecx, r15d
call fcn.18000668c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180006560
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
push r14
push r15
sub rsp, 0x30
mov r15d, ecx
movaps xmmword [rax - 0x28], xmm6
mov ecx, dword [0x180027910]
movaps xmm6, xmm2
mov r14, rdx
cmp ecx, 0xffffffff
je 0x18000665d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x18000665d
mov rdx, qword [rax + 0x20]
movsxd rbp, dword [rdx + 4]
cmp ebp, 1
je 0x18000665d
mov rbx, qword [rax + 0x28]
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x18000663a
lea rcx, [rbp*8 + 0x28]
call fcn.180001ac0
mov rdi, rax
test rax, rax
je 0x180006605
lea rax, [0x1800231f0]
mov dword [rdi + 0x18], r15d
mov qword [rdi], rax
lea rax, [0x180023520]
mov dword [rdi + 8], ebp
mov qword [rdi], rax
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x1c], ebp
mov qword [rdi + 0x20], r14
jmp 0x180006607
xor edi, edi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x18000661d
lock cmpxchg qword [rbx + 0x10], rdi
sete dl
test dl, dl
jne 0x18000663a
test rdi, rdi
je 0x18000663a
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800196e8
mov edx, 1
mov rcx, rdi
call rbx
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [rsi]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], 1
movsd qword [rcx + rax*8 + 0x28], xmm6
mov rcx, rsi
call fcn.180005bd4
jmp 0x18000666b
movaps xmm2, xmm6
mov rdx, r14
mov ecx, r15d
call fcn.1800066ec
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp edx, 1
jne 0x18000757d
call fcn.180007640
jmp 0x18000762f
test edx, edx
jne 0x1800075db
cmp byte [0x180028af8], dl
jne 0x18000762f
mov rdi, qword [0x180028b20]
test rdi, rdi
je 0x1800075c2
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
test rbx, rbx
jne 0x180007599
mov ecx, dword [0x180027910]
mov qword [0x180028b20], 0
call qword [sym.imp.KERNEL32.dll_TlsFree]
jmp 0x18000762f
cmp edx, 3
jne 0x18000762f
mov ecx, dword [0x180027910]
cmp ecx, 0xffffffff
je 0x18000762f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x18000762f
mov ecx, dword [0x180027910]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [0x180028af0]
mov qword [rbx + 0x18], rcx
mov rax, rcx
lock cmpxchg qword [0x180028af0], rbx
cmp rcx, rax
jne 0x18000760b
mov rbx, rdx
test rdx, rdx
jne 0x180007607
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180007640
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [rsp + 0x20]
mov dword [0x180027910], eax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x40]
test eax, eax
mov ecx, dword [0x180027918]
cmovne ecx, eax
mov dword [0x180027918], ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
lea rcx, [rsp + 0x78]
mov qword [0x180028b10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800076b5
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1800076b5
movsd xmm1, qword [0x180023068]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mov byte [0x18002791d], 1
divsd xmm1, xmm0
jmp 0x1800076f7
lea r8, [rsp + 0x68]
mov byte [0x18002791d], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
test eax, eax
je 0x1800076ef
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1800076ef
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x180023078]
jmp 0x1800076f7
movsd xmm1, qword [0x180023060]
movsd qword [0x180028b18], xmm1
call fcn.18000770c
add rsp, 0x58
ret