joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045560
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x140116fe8]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400455c2
lea rsi, [0x140116fe0]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140116fe8]
call fcn.14007b8a0
cmp dword [0x140116fe8], 0xffffffff
jne 0x14004559d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007eec0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14007b74c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140117020]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140045682
lea r8, [0x140116ff0]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r9d, edi
call fcn.140045800
mov qword [0x140116fe0], rsi
lea rcx, [0x140116fe8]
call fcn.14007b938
jmp 0x14004559d
lea rcx, [0x140117020]
call fcn.14007b8a0
cmp dword [0x140117020], 0xffffffff
jne 0x140045653
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x140117010], xmm2
movups xmmword [0x140117000], xmm1
movups xmmword [0x140116ff0], xmm0
lea rcx, [0x140117020]
call fcn.14007b938
jmp 0x140045653

Function at 0x140045710
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140117020]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004576c
movzx eax, word [0x140116ff0]
cmp ax, 9
jne 0x1400457ce
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140117020]
call fcn.14007b8a0
cmp dword [0x140117020], 0xffffffff
jne 0x140045745
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x140117010], xmm2
movups xmmword [0x140117000], xmm1
movups xmmword [0x140116ff0], xmm0
lea rcx, [0x140117020]
call fcn.14007b938
jmp 0x140045745
xor esi, esi
test ax, ax
je 0x140045757
cmp ax, 6
jne 0x1400457e5
mov esi, 2
jmp 0x140045757
cmp ax, 0xc
jne 0x1400457f5
mov esi, 3
jmp 0x140045757
mov esi, 4
jmp 0x140045757
Function at 0x140045e00
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140045e73
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140045e73
cmp dword [rsp + 0x38], 4
jne 0x140045e73
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140045e90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14007c590
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14007eec0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140045f43
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140045f47
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.1400266d0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140045f24
cmp eax, 2
jne 0x140045f8c
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14007eec0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x140045f93
lea rdx, [rsp + 0x40]
jmp 0x140045f1a
mov edi, 0x3f4
jmp 0x140045f24
mov edi, 0xea
jmp 0x140045f24

Function at 0x140046130
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140111508]
cmp ecx, 0xffffffff
je 0x140046155
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x140046150
Function at 0x140046160
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x140111508]
cmp ecx, 0xffffffff
je 0x14004623e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14004623e
mov eax, dword [0x140118848]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140046248
mov rbx, qword [0x140118840]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004628e
mov rax, qword [0x140117038]
inc rax
xor ecx, ecx
lea rdx, [0x140117040]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14004629b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140117038], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x1400462b0
cmp eax, 0x100
jge 0x1400462b3
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400462c0
jmp 0x14004618e
lea rcx, [0x140118848]
call fcn.14007b8a0
cmp dword [0x140118848], 0xffffffff
jne 0x1400461b3
mov ecx, 8
call fcn.14007b74c
mov rbx, rax
mov rcx, rax
call fcn.140061420
mov qword [0x140118840], rbx
lea rcx, [0x140118848]
call fcn.14007b938
jmp 0x1400461b3
mov rcx, rbx
call fcn.140061430
jmp 0x1400461cb
inc rcx
cmp rcx, 0x100
jne 0x1400461de
jmp 0x140046212
int3
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14007c590
sub rsp, rax
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140111508]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140046374
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400463b2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14007eec0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007b7bc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14007eab0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14007c600
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14004f210
test al, al
je 0x1400463b5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400463b8
mov eax, 0xffffffff
lock cmpxchg dword [0x140111508], ecx
je 0x1400462f8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140111508]
mov dword [rsp + 0x2c], ecx
jmp 0x1400462f8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14004f210
test al, al
je 0x1400463dd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400463dd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004638b
int3
Function at 0x140047650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140118860]
cmp rdi, 1
jbe 0x140047679
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14006d8f0
lea rcx, [0x140118860]
call fcn.140046050
test al, al
je 0x1400476bf
mov qword [0x140118868], 0
lea rbx, [0x140118860]
lea rdi, [0x140118868]
mov rcx, rdi
xor edx, edx
call fcn.1400464d0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400460f0
jmp 0x140047667
mov rdi, qword [0x140118860]
jmp 0x140047667

Function at 0x14004c260
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov esi, dword [0x140118b20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebp, ebp
jne 0x14004c372
cmp rsi, 1
je 0x14004c36e
mov eax, dword [rdi + 0x1518]
test eax, eax
jne 0x14004c36e
mov eax, 1
lock xadd dword [rdi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x14004c37f
mov rcx, rdi
call fcn.14004c680
lock dec dword [rdi + 0x1518]
mov rdi, rax
inc qword [rax + 0x5a0]
cmp word [0x140111550], bx
jb 0x14004c360
movzx edx, bx
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
jne 0x14004c382
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.140071d60
mov rax, qword [rbx]
test rax, rax
je 0x14004c36e
mov rcx, qword [rax]
test rcx, rcx
je 0x14004c38b
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x14004c38f
bswap rcx
prefetcht0 byte [rcx]
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
xor eax, eax
jmp 0x14004c355
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004c293
int3
inc qword [rdi + 0x5a8]
jmp 0x14004c320
xor ecx, ecx
jmp 0x14004c33a
call fcn.1400a8610
int3
Function at 0x14004c680
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14004c7af
mov rsi, rcx
mov byte [rsp + 0x3f], 0xaa
lea rbx, [rcx + 0x858]
lea r14, [rcx + 8]
mov edi, 1
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x14004c6f9
jmp 0x14004c7a0
pause
dec eax
jne 0x14004c6d4
add ebp, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebp, 0x3e8
jl 0x14004c6c5
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbx]
mov rdi, qword [rax]
test rdi, rdi
je 0x14004c75a
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14004c789
xor ecx, ecx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.140071bb0
mov ecx, dword [0x140118b20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c600
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r9d, 0x610
mov rcx, rbx
mov rdx, rsi
mov r8d, 2
call fcn.140054d10
mov rdi, rax
jmp 0x14004c71a
mov rdx, rcx
not rdx
cmp qword [rdi + 8], rdx
jne 0x14004c7b2
bswap rcx
prefetcht0 byte [rcx]
jmp 0x14004c713
mov eax, edi
test edi, edi
jg 0x14004c6d4
jmp 0x14004c6dc
int3
call fcn.1400a8610
int3

Function at 0x14004c7c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x140118b20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x14004c7f7
cmp rsi, 2
jb 0x14004c801
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400721e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004c7e3
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14004df50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14010e038]
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 0x14004dfb8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004dfc1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004dfa1
int3
mov rcx, qword [rcx + 8]
jmp 0x14004df50
Function at 0x14004dfd0
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 [0x14010e038]
xor rax, rsp
mov ecx, 0xffffffff
cmp r8, rcx
mov ebx, 0xffffffff
cmovb ebx, r8d
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14004e078
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14004e067
cmp eax, 0xffffffff
je 0x14004e08c
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x14004e016
mov eax, dword [rsp + 0x2c]
jmp 0x14004e047
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004e049
int3

Function at 0x14004e540
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14004e460
test rax, rax
jne 0x14004e57f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14004e59b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x14004e5f1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400c2020
lea rcx, [rsp + 0x40]
lea rdx, [0x1400fc989]
mov r8d, 0xc
call fcn.1400556b0
mov rcx, rsi
call fcn.1400c20a0
xor esi, esi
jmp 0x14004e57f

Function at 0x14004ea80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14010e038]
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 0x14004dfb8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004dfc1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004dfa1
int3
mov rcx, qword [rcx + 8]
jmp 0x14004df50

Function at 0x14004f210
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14004f225
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14004f9a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140118c58]
cmp rdi, 1
jbe 0x14004f9c9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14006d8f0
lea rcx, [0x140118c58]
call fcn.140046050
test al, al
je 0x14004fa0f
mov qword [0x140118c60], 0
lea rbx, [0x140118c58]
lea rdi, [0x140118c60]
mov rcx, rdi
xor edx, edx
call fcn.1400464d0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400460f0
jmp 0x14004f9b7
mov rdi, qword [0x140118c58]
jmp 0x14004f9b7

Function at 0x140052a20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14011a1f0], 0
jne 0x140052a5d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140052a50
mov dword [rdi], eax
mov dword [0x14011a1f8], eax
mov qword [0x14011a1f0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400605d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140060617
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140060631
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006060f
mov qword [rsi], rdi
call fcn.1400682a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140060647
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400682a0
mov rcx, qword [rsi]
call fcn.140068910
mov qword [rsi], 0
jmp 0x1400605fd
int3

Function at 0x1400606a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
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 0x140060737
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140060721
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400606fe
mov qword [rsi], rdi
call fcn.1400682a0
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 0x14006073b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400682a0
mov rcx, qword [rsi]
call fcn.140068910
mov qword [rsi], 0
jmp 0x1400606ec
mov byte [rsi + 8], 1
int3
Function at 0x140067f00
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140068c80
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140114da0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140067f5d
jnp 0x140067fc2
ucomisd xmm0, xmm6
jne 0x140067f69
jnp 0x1400680ec
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f09c0]
subpd xmm1, xmmword [0x1400f09d0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400f6c10]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140114db0]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400680f3
mov eax, dword [0x140114dc0]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006812d
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x140114db8]
movq xmm1, rbp
punpckldq xmm1, xmmword [0x1400f09c0]
subpd xmm1, xmmword [0x1400f09d0]
haddpd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400f6c08]
ucomisd xmm2, xmm1
ja 0x140067f5d
shl r15, 0x20
or r14, r15
sub r14, qword [0x140114da8]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1400f09c0]
subpd xmm0, xmmword [0x1400f09d0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140114da0], xmm0
jmp 0x140067f5d
xor eax, eax
jmp 0x140067f9b
lea rcx, [0x140114db0]
call fcn.14007b8a0
cmp dword [0x140114db0], 0xffffffff
jne 0x14006800c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140114da8], rdx
lea rcx, [0x140114db0]
call fcn.14007b938
jmp 0x14006800c
lea rcx, [0x140114dc0]
call fcn.14007b8a0
cmp dword [0x140114dc0], 0xffffffff
jne 0x140068031
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140114db8], rax
lea rcx, [0x140114dc0]
call fcn.14007b938
jmp 0x140068031