joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054020
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400983d0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400540b5
mov eax, eax
inc rax
cmp rax, 1
je 0x1400540b5
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140054081
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400540a2
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400ad578
test eax, eax
je 0x140054194
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140054116
mov eax, eax
inc rax
cmp rax, 1
je 0x140054116
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400540e2
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140054103
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400ad578
test eax, eax
je 0x1400541be
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140054173
mov eax, eax
inc rax
cmp rax, 1
je 0x140054173
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140054143
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140054164
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400ad578
test eax, eax
je 0x1400541e8
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140096290
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x1400541a0
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140054175
mov rcx, rsi
mov rdx, r14
call fcn.1400df650
cmp word [rax], 0x5c
jne 0x1400540b5
jmp 0x140054175
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x1400541ca
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140054175
mov rcx, rsi
mov rdx, r14
call fcn.1400df650
cmp word [rax], 0x5c
jne 0x140054116
jmp 0x140054175
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x1400541f4
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140054175
mov rcx, rsi
mov rdx, r14
call fcn.1400df650
cmp word [rax], 0x5c
jne 0x140054173
jmp 0x140054175
Function at 0x140054a10
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140054c29
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14014b530], rax
jne 0x140054c2c
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.14007abb0
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140054beb
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x140054b84
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140054b7d
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140054bf8
mov edx, ecx
and edx, 0x1fc000
je 0x140054bf8
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14007d560
mov ecx, dword [0x14015a940]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140157854]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140096290
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140054ade
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140087df0
test rax, rax
je 0x140054c2f
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x140054af8
mov rcx, rbx
call fcn.14007e1c0
jmp 0x140054a8e
movaps xmm0, xmmword [0x14012e710]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400ebe00
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.1400ee570
int3
int3
xor edi, edi
jmp 0x140054b22
Function at 0x140056c20
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14015aa38]
mov ecx, dword [0x140157854]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140056c80
lea rsi, [0x14015aa30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140096290
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14015aa38]
call fcn.140094ea0
cmp dword [0x14015aa38], 0xffffffff
jne 0x140056c5c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400983d0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
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.140094d44
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14015aa80]
mov ecx, dword [0x140157854]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140056d40
lea r8, [0x14015aa50]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140056e40
mov qword [0x14015aa30], rsi
lea rcx, [0x14015aa38]
call fcn.140094f38
jmp 0x140056c5c
lea rcx, [0x14015aa80]
call fcn.140094ea0
cmp dword [0x14015aa80], 0xffffffff
jne 0x140056d11
xorps xmm0, xmm0
movups xmmword [0x14015aa70], xmm0
movups xmmword [0x14015aa60], xmm0
movups xmmword [0x14015aa50], xmm0
lea rcx, [0x14015aa50]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14015aa80]
call fcn.140094f38
jmp 0x140056d11

Function at 0x140056d90
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14015aa80]
mov ecx, dword [0x140157854]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140056dcb
movzx eax, word [0x14015aa50]
cmp eax, 9
jne 0x140056e13
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14015aa80]
call fcn.140094ea0
cmp dword [0x14015aa80], 0xffffffff
jne 0x140056db5
xorps xmm0, xmm0
movups xmmword [0x14015aa70], xmm0
movups xmmword [0x14015aa60], xmm0
movups xmmword [0x14015aa50], xmm0
lea rcx, [0x14015aa50]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14015aa80]
call fcn.140094f38
jmp 0x140056db5
test eax, eax
je 0x140056dc6
cmp eax, 6
jne 0x140056e23
mov eax, 2
jmp 0x140056dc6
cmp eax, 0xc
jne 0x140056e2f
mov eax, 3
jmp 0x140056dc6
mov eax, 4
jmp 0x140056dc6
Function at 0x140058650
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14005873e
cmp qword [rsi], 0
jne 0x14005873e
cmp dword [rsi + 0x14], 0
jne 0x14005873e
cmp qword [rsi + 8], 0
jne 0x14005873e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400586c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140058710
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400586b8
mov qword [rsi], r14
call fcn.14007ae40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400586fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140058726
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400586f2
mov qword [rsi + 8], r14
call fcn.14007ae40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14007ae40
mov rcx, qword [rsi]
call fcn.1400723b0
mov qword [rsi], 0
jmp 0x1400586a6
call fcn.14007ae40
mov rcx, qword [rsi + 8]
call fcn.1400723b0
mov qword [rsi + 8], 0
jmp 0x1400586df
mov rcx, rsi
call fcn.1400f2a00
mov rax, qword [rsi]
jmp 0x14005868a
Function at 0x14005dcc0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14012e710]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14005de3c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14015fd80]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400b9d84
mov rcx, rbx
call fcn.1400b9930
sub r14, rax
lea rdx, [0x14012f5ec]
mov rcx, rbx
mov r8, r14
call fcn.1400b9d84
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400983d0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005dd9c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400b9dcc
test eax, eax
je 0x14005de60
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005ddd7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400b9dcc
test eax, eax
je 0x14005de60
xor eax, eax
mov byte [0x14015f979], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140137f60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005de67
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x14016c008]
test eax, eax
je 0x14005de67
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14015ff80], al
mov byte [0x14015f978], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140096290
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x14005ddd9
xor eax, eax
jmp 0x14005de2f
Function at 0x14005e110
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14005e143
mov rax, qword [rsi + 8]
test rax, rax
je 0x14005e23f
bt ebx, 8
jae 0x14005e15f
mov eax, ebx
and eax, 0x200
jne 0x14005e23f
cmp edi, 2
lea rax, [0x14015f980]
lea rcx, [0x14015fb80]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14005e23f
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14005e23f
cmp byte [0x14015ff80], 0
setne al
bt ebx, 8
jb 0x14005e23f
shr ebx, 9
and ebx, 1
or bl, al
je 0x14005e23f
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x14005e29b
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x14005e22c
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400ad578
test eax, eax
je 0x14005e25e
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x14005e20c
cmp dword [rsp + 0x2c], 0
jne 0x14005e2a3
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140096290
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14005e26c
test ecx, ecx
jne 0x14005e22c
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14005e2cc
cmp dword [rsp + 0x2c], 2
jne 0x14005e2dd
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14005e2dd
mov r14, rsi
jmp 0x14005e1ef
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14005e2af
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400e5310
jmp 0x14005e23f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x14005e2f6
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14005e2e3
jmp 0x14005e2f9
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x14005e233
Function at 0x14005eb30
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14015ff88], 0
jne 0x14005eb6d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14005eb60
mov dword [rdi], eax
mov dword [0x14015ff90], eax
mov qword [0x14015ff88], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140065ba0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140157770]
cmp ecx, 0xffffffff
je 0x140065bc2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140065bc7
call fcn.140065ce0
mov eax, dword [0x140162500]
mov ecx, dword [0x140157854]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065c77
mov rbx, qword [0x1401624f8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140065cbd
mov rax, qword [0x140160ce8]
inc rax
xor ecx, ecx
lea rdx, [0x140160cf0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140065cca
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1401624f0]
inc ecx
mov dword [0x1401624f0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140160ce8], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140065cdc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140162500]
call fcn.140094ea0
cmp dword [0x140162500], 0xffffffff
jne 0x140065bec
mov ecx, 8
call fcn.140094d44
mov rbx, rax
mov rcx, rax
call fcn.1400728b0
mov qword [0x1401624f8], rbx
lea rcx, [0x140162500]
call fcn.140094f38
jmp 0x140065bec
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140065c04
inc rcx
cmp rcx, 0x100
jne 0x140065c17
jmp 0x140065c5d
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140096230
sub rsp, rax
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140157770]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140065d94
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140065dd2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400983d0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140094dbc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140097d20
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.140096290
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140068580
test al, al
je 0x140065dd5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140065dd8
mov eax, 0xffffffff
lock cmpxchg dword [0x140157770], ecx
je 0x140065d18
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140157770]
mov dword [rsp + 0x2c], ecx
jmp 0x140065d18
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140068580
test al, al
je 0x140065dfd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140065dfd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140065dab
int3
Function at 0x140065e10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140157770]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140065e4e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140065e47
call fcn.140065ce0
jmp 0x140065e2e

Function at 0x140065f60
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140066082
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x1400660b8
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x1400660c0
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400660c4
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x1400660ca
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x140065fbc
xor eax, eax
jmp 0x140066051
mov dl, byte [r8 + 0x19]
jmp 0x1400660b1
cmp byte [r8 + 0x1a], 0
je 0x1400660b5
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400660b5
cmp ecx, 0x666f736f
jne 0x1400660b5
cmp edx, 0x76482074
jne 0x1400660b5
mov byte [r8 + 0x19], 1
jmp 0x1400660b5

Function at 0x140068580
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 0x140068595
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400685e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14006861c
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 0x140068626
add rdi, rbx
sub rsi, rbx
jne 0x1400685fa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140072540
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140072880
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14015a708]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14007259e
jnp 0x140072604
ucomisd xmm0, xmm6
jne 0x1400725aa
jnp 0x140072719
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401330d0]
subpd xmm1, xmmword [0x1401330e0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401330f0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140096290
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
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 edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x14015a718]
mov ecx, dword [0x140157854]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140072720
mov eax, dword [0x14015a728]
mov ecx, dword [0x140157854]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007275a
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x14015a720]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401330c8]
ucomisd xmm2, xmm1
ja 0x14007259e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14015a710]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1401330d0]
subpd xmm0, xmmword [0x1401330e0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14015a708], xmm0
jmp 0x14007259e
xor eax, eax
jmp 0x1400725dc
lea rcx, [0x14015a718]
call fcn.140094ea0
cmp dword [0x14015a718], 0xffffffff
jne 0x14007264d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14015a710], rdx
lea rcx, [0x14015a718]
call fcn.140094f38
jmp 0x14007264d
lea rcx, [0x14015a728]
call fcn.140094ea0
cmp dword [0x14015a728], 0xffffffff
jne 0x140072672
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14015a720], rax
lea rcx, [0x14015a728]
call fcn.140094f38
jmp 0x140072672