joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007bf0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov ebx, dword [0x14029b018]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x140007cd5
cmp rbx, 1
je 0x140007c33
mov eax, dword [rsi + 0x1518]
test eax, eax
je 0x140007c3a
xor eax, eax
jmp 0x140007cca
mov eax, 1
lock xadd dword [rsi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x140007d21
mov rcx, rsi
int3
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140007c23
int3

Function at 0x140007ff0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140008039
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140008057
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140008031
mov qword [rsi], rdi
call fcn.140071760
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov word [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14000808a
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140071760
mov r14, qword [rsi]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x14000807c
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x14000801f
int3
int3

Function at 0x140008090
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14000814c
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140008119
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400080f4
mov qword [rsi], rdi
call fcn.140071760
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x140008150
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140071760
mov r14, qword [rsi]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x14000813e
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x1400080e2
int3
mov byte [rsi + 8], 1
int3

Function at 0x1400086f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140295ff8]
cmp rsi, 1
jbe 0x140008735
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140008787
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140008787
mov rax, qword [rax + rcx]
test rax, rax
je 0x140008787
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140295ff8]
int3
int3
Function at 0x140009c80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140009cbc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140009cc6
add rdi, rbx
sub rsi, rbx
jne 0x140009c9a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140009cca
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
cmp r8, rax
mov ebx, 0xffffffff
cmovb ebx, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140009d69
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140009d7d
mov rcx, rdi
call r15
cmp eax, 3
jne 0x140009da2
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x140009d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140009d84
cmp eax, 0xffffffff
je 0x140009da8
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [rsp + 0x2c]
jmp 0x140009d82
int3

Function at 0x14000bd40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovb eax, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000bd94
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x14000bd9b
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14000efe4
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
jne 0x14000f03d
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400ccfe0
nop
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 0x30], 0
je 0x14000f122
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.14013b0ed
test rax, rax
jne 0x14000f0cf
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14000f219
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x14000f122
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x20a
mov r9d, 2
int3
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x14000f122
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x203
mov r9d, 2
int3
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0xffffffff
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
jne 0x14000f1cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
lea rcx, str.Microsoft.Crashpad.UnlockFileExFailedWithHR
int3
lea rcx, [rsi + 0x38]
int3
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rsp + 0xcc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x14000f80b
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1401384e7
test al, al
je 0x14000f65c
test rbx, rbx
je 0x14000f122
movabs rcx, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm0
cmp rdi, rcx
ja 0x14000f820
imul rdi, rdi, 0x38
mov rcx, rdi
int3
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x14000f122
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x216
mov r9d, 2
int3
int3
int3
Function at 0x1400183a0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400183cf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400183d2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140018420
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400183f5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400183f8
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001842f
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x140018474
cmp byte [rdi + 8], 0
jne 0x140018460
mov rcx, qword [rdi]
jmp 0x140018469
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
jne 0x140018442
mov rcx, qword [rdi]
jmp 0x14001844b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140018474
mov esi, dword [rsp + 0x24]
jmp 0x140018474
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
int3
Function at 0x14001e566
Capabilities:
Allocate or change rwx memory
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov r12, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
jne 0x14001e5c2
xor ebp, ebp
cmp qword [r12 + 0x18], 0
jne 0x14001e621
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [0x1402152f0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x140279890]
lea r8, str.NtMapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1401ff1e2
lea rax, [0x140215530]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1401ff1e2
mov rax, qword [r12]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, qword [r12 + 0x18]
shl rdi, 6
lea rbx, [rdi + 0x60]
cmp rbx, 0x10001
jae 0x14001e7f5
mov r15, rax
lea rbp, [rsp + 0x48]
mov dword [rbp], 0xaaaaaaaa
mov esi, 0xffa0
sub rsi, rdi
mov rcx, rbp
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
movzx eax, word [rsp + 0x48]
mov dword [rsp + 0x48], eax
cmp rsi, rax
jb 0x14001e678
mov ebp, eax
mov ecx, 0x800
mov eax, 0x1000
mov edx, 0x800
mov rsi, rax
shr rdx, 1
mov rax, rcx
cmp rcx, rbx
mov rcx, rdx
jae 0x14001e6a4
neg esi
and ebp, esi
mov eax, ebp
and eax, 0xf000
add r15, rax
add rdi, 0x105f
and rdi, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov rdx, r15
mov r8, rdi
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x14001e7f8
mov rdi, rax
and ebp, 0xfff
add rdi, rbp
movaps xmm0, xmmword [0x140257270]
lea rbp, [rsp + 0x48]
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp], rbx
mov dword [rbp + 0x18], 0
mov qword [rbp + 8], 0x20
lea rcx, [0x14029bef0]
mov r8d, 0xd8
xor edx, edx
call fcn.1400cf750
mov rcx, r12
mov rdx, rdi
mov r8, rbx
mov r9, rbp
call fcn.1401ff7b2
mov ebp, eax
test eax, eax
jne 0x14001e59e
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x14001e59e
cmp qword [rsp + 0x40], 0x20
jne 0x14001e59e
lea rax, [rsp + 0x3c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r12]
lea rdx, str.g_originals
lea r8, [0x14029bef0]
mov r9d, 0xd8
int3
int3
int3
Function at 0x140059f20
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140295f00], 0
jne 0x14005a154
mov rcx, qword [0x140295ef8]
test rcx, rcx
je 0x14005a01f
test byte [0x140291088], 1
je 0x14005a154
cmp byte [rcx + 0x17], 0
jns 0x140059f77
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140295f00], rax
inc rax
cmp rax, 1
ja 0x14005a154
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400cf750
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005a152
cmp eax, 0x104
ja 0x14005a152
mov rcx, qword [0x140295ef8]
lea rdx, [rsp + 0x40]
int3
movabs r14, 0x7fffffffffffffef
mov ecx, 0x18
int3
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14006105c
Capabilities:
Read pipe
Write pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x190
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rbx, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400610aa
mov rcx, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
cmp rax, 0xffffffffffffffff
jne 0x14006114f
call r12
cmp eax, 0xe7
jne 0x140061244
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400610f0
mov rcx, qword [rdi]
mov edx, 0xffffffff
call r13
test eax, eax
jne 0x14006109e
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x14006129b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x6b
mov r9d, 2
int3
mov rsi, rax
lea rdx, [rsp + 0x44]
mov dword [rdx], 2
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x1400612a2
lea rax, [rsp + 0x40]
mov dword [rax], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xc
mov rcx, rsi
mov rdx, r15
mov r8d, 0x24
mov r9, r14
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x1400612f2
mov dil, 1
cmp dword [rsp + 0x40], 0xc
je 0x14006134b
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x140061349
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x86
mov r9d, 2
int3
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x14006129b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x66
mov r9d, 2
int3
xor edi, edi
jmp 0x140061353
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x140061349
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x74
mov r9d, 2
int3
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x140061349
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x82
mov r9d, 2
int3
xor edi, edi
mov rcx, rsi
call fcn.140008583
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140066f20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, r8
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov r13b, byte [0x140291ac0]
test r13b, 0x19
jne 0x14006711f
xor r14d, r14d
mov r15, r12
cmp qword [rsi + 0x38], 0
jne 0x140067066
mov eax, dword [0x140295ff0]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067099
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140066fd9
movsxd rcx, dword [0x140295fe8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140295fec]
jne 0x140066fd9
mov rax, qword [rax + rcx]
test rax, rax
je 0x140066fd9
mov rcx, qword [rax + 0x10]
mov qword [rsi + 0x60], rcx
mov eax, dword [rax + 8]
mov dword [rsi + 0x58], eax
mov eax, dword [0x140295fe0]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400670dc
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140067066
movsxd rcx, dword [0x140295fd8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140295fdc]
jne 0x140067066
mov rax, qword [rax + rcx]
test rax, rax
je 0x140067066
cmp dword [rax + 0x68], 0xf00dbaad
je 0x1400671f1
mov rcx, qword [rax + 0x20]
mov qword [rsi + 0x38], rcx
movups xmm0, xmmword [rax + 0x38]
mov rcx, qword [rax + 0x48]
mov qword [rsi + 0x50], rcx
movups xmmword [rsi + 0x40], xmm0
cmp byte [rax + 0x6c], 0
jne 0x140067095
cmp qword [rax + 0x50], 0
setne al
mov byte [rsi + 0x6c], al
test r13b, 0x19
jne 0x1400671d4
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ccfe0
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov al, 1
jmp 0x140067063
lea rcx, [0x140295ff0]
int3
lea rcx, [0x140295fe0]
int3
mov rbx, r9
mov rdi, rdx
mov eax, dword [rsi + 0x68]
shl rax, 0x20
mov r14d, ecx
or r14, rax
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rsp + 0x54], eax
lea r15, [rsp + 0x58]
mov qword [r15], r12
mov rcx, r15
int3
cmp byte [r14], 0
je 0x140067070
mov rcx, r14
mov rdx, r12
mov r8, r15
call fcn.140079550
jmp 0x140067070
cmp qword [rax + 8], 0
je 0x140067203
cmp qword [rax + 0x10], 0
jne 0x14006703d
cmp qword [rax + 0x20], 0
jne 0x14006703d
jmp 0x140067066
Function at 0x140067220
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
movapd xmmword [rsp + 0x120], xmm10
movapd xmmword [rsp + 0x110], xmm9
movaps xmmword [rsp + 0x100], xmm8
movaps xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
test byte [0x140291180], 0x19
jne 0x140067a0c
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x140067e96
mov rcx, qword [rsi + 0x48]
mov rdx, rsi
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1402910e8]
lea r14, [0x14005a590]
cmp rax, r14
jne 0x140067da1
lea rbx, [rsp + 0xb0]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140067b51
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140067b73
mov rcx, qword [0x1402979e0]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
mov qword [rsp + 0x90], rax
lea rbp, [rsp + 0x90]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 8
mov qword [rsp + 0x40], 0
lea rdx, [0x140291180]
lea r8, str.WorkerThread_born
mov cl, 0x49
xor r9d, r9d
call fcn.14006a790
test byte [0x140291180], 0x19
je 0x14006728c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1402910e8]
cmp rax, r14
jne 0x140067db0
lea rbx, [rsp + 0xb0]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140067c26
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140067c48
mov rcx, qword [0x1402979e0]
cqo
idiv rcx
imul rbx, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbx
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140291180]
lea r8, str.WorkerThread_active
mov cl, 0x42
xor r9d, r9d
call fcn.14006a790
jmp 0x14006728c
lea rcx, [rsp + 0x90]
call rax
jmp 0x140067b7b
lea rcx, [rsp + 0x90]
call rax
jmp 0x140067c50
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140067299
Function at 0x140072110
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140295ff8]
cmp rdi, 1
jbe 0x14007216d
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140072156
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140072165
lock sub dword [rcx + 8], 1
je 0x1400721c2
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140295ff8]
int3
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14009a4a0

Function at 0x140072460
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
test rdx, rdx
je 0x140072476
lock inc dword [rdx + 8]
mov qword [rsi + 8], rdx
mov rdi, qword [0x140295ff8]
cmp rdi, 1
jbe 0x140072505
lea rbx, [rsi + 8]
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007259b
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [0x140297820]
cmp rdi, 1
jbe 0x140072552
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400725ae
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140295ff8]
int3
lea rcx, [0x140297820]
int3
test rbx, rbx
je 0x1400724ba
call fcn.140008460
jmp 0x1400724a1
test rsi, rsi
je 0x1400724fa
call fcn.140008460
jmp 0x1400724e1

Function at 0x140073180
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14029b0b0]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400731e2
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007321e
movsxd rcx, dword [0x14029b0a8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14029b0ac]
jne 0x14007321e
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b0b0]
int3
xor eax, eax
jmp 0x1400731d6