joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039510
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140111038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x1400396d9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400996a4
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x40], rax
movaps xmm6, xmmword [0x1400f6c10]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x48
call fcn.140063060
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140068000
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.140091ecc
mov ecx, eax
call fcn.140091f2c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400396ce
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x140137008]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.14009932c
test rax, rax
je 0x140039671
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x1400396dd
add r15, r12
mov rcx, rbx
call fcn.140098b94
test eax, eax
je 0x1400396e1
mov r12, r15
mov rcx, rbx
call fcn.140098bc0
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x140137008]
lea rcx, [rsp + 0x80]
call fcn.140068270
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140080240
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14d, 0xffff
jmp 0x14003960f
xor ebx, ebx
jmp 0x1400396a3
xor ebx, ebx
jmp 0x140039681
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x140137008]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140039634
Function at 0x14003a670
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14003a730
mov eax, dword [rsi]
mov dword [0x1401206c8], eax
test al, 1
jne 0x14003a691
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14012b670]
test rcx, rcx
jne 0x14003a6ab
mov rcx, qword [0x14012b648]
test rcx, rcx
je 0x14003a6cf
jmp 0x14003a6f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14012b670], 0
mov rcx, qword [0x14012b648]
test rcx, rcx
jne 0x14003a6f1
and byte [0x1401206c8], 0xfe
mov ecx, 0x18
call fcn.14007ed64
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14012b648], rax
mov rdx, qword [rsi + 8]
call fcn.14003b340
cmp dword [rsi + 0x14], 0
jne 0x14003a716
mov rcx, qword [0x14012b648]
cmp byte [rcx + 0x17], 0
jns 0x14003a710
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400d6c80
Function at 0x14003c440
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140111038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14012b6f0]
test rdi, rdi
jne 0x14003c4f3
mov ecx, 0x50
call fcn.14007ed64
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14007ed64
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14003c515
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x14012b6f0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14003c541
mov rcx, rax
call fcn.14009e658
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14003c570
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140080240
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400b51b0
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1400b51b0
int3
Function at 0x14003c570
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140111038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.1400372a0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14003c704
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1400fd778]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14003c73b
lea rdx, [0x1400fd7c8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003c729
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140137008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x14003c731
test r12d, r12d
js 0x14003c7a6
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14007ed64
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x14003c74e
mov rdx, qword [r14 + r15]
call fcn.1400bc500
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x14003c672
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003c170
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14003c6c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14003c704
cmp r15, rbx
je 0x14003c6fc
add r15, 0xffffffffffffffe8
jmp 0x14003c6ea
mov rcx, qword [r15]
call fcn.14007eda0
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x14003c6fc
test r15, r15
je 0x14003c77a
cmp byte [r15 + 0x17], 0
jns 0x14003c6de
jmp 0x14003c6d6
mov rcx, rbx
call fcn.14007eda0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140080240
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14003c624
xor r15d, r15d
xor ebx, ebx
jmp 0x14003c69f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14003c621
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400b51b0
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x41
call fcn.1400b51b0
lea rcx, [rsp + 0x30]
call fcn.1400b5120
int3
Function at 0x140042360
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14012b838]
mov ecx, dword [0x140120780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004239b
movzx eax, word [0x14012b808]
cmp eax, 9
jne 0x1400423e3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14012b838]
call fcn.14007edec
cmp dword [0x14012b838], 0xffffffff
jne 0x140042385
xorps xmm0, xmm0
movups xmmword [0x14012b828], xmm0
movups xmmword [0x14012b818], xmm0
movups xmmword [0x14012b808], xmm0
lea rcx, [0x14012b808]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012b838]
call fcn.14007eea0
jmp 0x140042385
test eax, eax
je 0x140042396
cmp eax, 6
jne 0x1400423f3
mov eax, 2
jmp 0x140042396
cmp eax, 0xc
jne 0x1400423ff
mov eax, 3
jmp 0x140042396
mov eax, 4
jmp 0x140042396
Function at 0x140043b20
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 0x140043c15
cmp qword [rsi], 0
jne 0x140043c15
cmp dword [rsi + 0x14], 0
jne 0x140043c15
cmp qword [rsi + 8], 0
jne 0x140043c15
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140043b94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140043bfc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140043b8c
mov qword [rsi], r14
call fcn.140063080
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140043bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140043be4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140043bc6
mov qword [rsi + 8], r14
call fcn.140063080
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.140063080
mov rcx, qword [rsi + 8]
call fcn.14005cb80
mov qword [rsi + 8], 0
jmp 0x140043bb3
call fcn.140063080
mov rcx, qword [rsi]
call fcn.14005cb80
mov qword [rsi], 0
jmp 0x140043b7a
mov rcx, rsi
call fcn.1400dceb0
mov rax, qword [rsi]
jmp 0x140043b5a
Function at 0x140047730
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140111038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400f6c10]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400478ac
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14012bdc0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14009eaac
mov rcx, rbx
call fcn.14009e658
sub r14, rax
lea rdx, [0x1400f97d2]
mov rcx, rbx
mov r8, r14
call fcn.14009eaac
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140082390
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 0x14004780c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14009eaf4
test eax, eax
je 0x1400478d4
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 0x140047847
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14009eaf4
test eax, eax
je 0x1400478d4
xor eax, eax
mov byte [0x14012b9b5], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401013bd]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400478d0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140137008]
test eax, eax
je 0x1400478d0
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14012bfc0], al
mov byte [0x14012b9b4], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140080240
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14004789f
mov al, 1
jmp 0x140047849
Function at 0x140047b80
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 [0x140111038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140047bb3
mov rax, qword [rsi + 8]
test rax, rax
je 0x140047ca7
bt ebx, 8
jae 0x140047bcf
mov eax, ebx
and eax, 0x200
jne 0x140047ca7
cmp edi, 2
lea rax, [0x14012b9c0]
lea rcx, [0x14012bbc0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140047ca7
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 0x140047ca7
cmp byte [0x14012bfc0], 0
setne al
bt ebx, 8
jb 0x140047ca7
shr ebx, 9
and ebx, 1
or bl, al
je 0x140047ca7
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x140047cc6
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 0x140047c94
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14009698c
test eax, eax
je 0x140047cf1
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140047c74
cmp dword [rsp + 0x2c], 0
jne 0x140047ccb
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140080240
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140047c57
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140047cd7
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.1400d1840
jmp 0x140047ca7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140047cff
test ecx, ecx
jne 0x140047c94
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140047d2e
cmp dword [rsp + 0x2c], 2
jne 0x140047d3f
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140047d3f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140047d58
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140047d45
jmp 0x140047d5b
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x140047c9b
Function at 0x14004e220
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 [0x140120720]
cmp ecx, 0xffffffff
je 0x14004e2fa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14004e2fa
mov eax, dword [0x14012d9c0]
mov ecx, dword [0x140120780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004e304
mov rbx, qword [0x14012d9b8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004e34a
mov rax, qword [0x14012c1a0]
inc rax
xor ecx, ecx
lea rdx, [0x14012c1b0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14004e357
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14012d9b0]
inc ecx
mov dword [0x14012d9b0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14012c1a0], 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 0x14004e36c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004e370
jmp 0x14004e24a
lea rcx, [0x14012d9c0]
call fcn.14007edec
cmp dword [0x14012d9c0], 0xffffffff
jne 0x14004e26f
mov ecx, 8
call fcn.14007ed64
mov rbx, rax
mov rcx, rax
call fcn.14005d120
mov qword [0x14012d9b8], rbx
lea rcx, [0x14012d9c0]
call fcn.14007eea0
jmp 0x14004e26f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14004e287
inc rcx
cmp rcx, 0x100
jne 0x14004e29a
jmp 0x14004e2e0
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400801e0
sub rsp, rax
mov rax, qword [0x140111038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140120720]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14004e424
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004e487
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140082390
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007eddc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140081cf0
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.140080240
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140050cf0
test al, al
je 0x14004e48a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14004e462
mov eax, 0xffffffff
lock cmpxchg dword [0x140120720], ecx
je 0x14004e3a8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140120720]
mov dword [rsp + 0x2c], ecx
jmp 0x14004e3a8
lea rcx, [rsp + 0x2c]
call fcn.140050cf0
test al, al
je 0x14004e48d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004e48d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004e43b
int3
int3
int3
Function at 0x14004e4a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140120720]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004e4de
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 0x14004e4d7
call fcn.14004e370
jmp 0x14004e4be

Function at 0x140050cf0
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 0x140050d05
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14005cdd0
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 [0x140111038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14005d100
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14012b5d0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14005ce2e
jnp 0x14005ce94
ucomisd xmm0, xmm6
jne 0x14005ce36
jnp 0x14005ce90
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f83d0]
subpd xmm1, xmmword [0x1400f83e0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400fd398]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140080240
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
xor eax, eax
jmp 0x14005ce68
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 [0x14012b5e0]
mov ecx, dword [0x140120780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005cfa9
mov eax, dword [0x14012b5f0]
mov ecx, dword [0x140120780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005cfe3
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 [0x14012b5e8]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400fd390]
ucomisd xmm2, xmm1
ja 0x14005ce2e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14012b5d8]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400f83d0]
subpd xmm0, xmmword [0x1400f83e0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14012b5d0], xmm0
jmp 0x14005ce2e
lea rcx, [0x14012b5e0]
call fcn.14007edec
cmp dword [0x14012b5e0], 0xffffffff
jne 0x14005cedd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14012b5d8], rdx
lea rcx, [0x14012b5e0]
call fcn.14007eea0
jmp 0x14005cedd
lea rcx, [0x14012b5f0]
call fcn.14007edec
cmp dword [0x14012b5f0], 0xffffffff
jne 0x14005cf02
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14012b5e8], rax
lea rcx, [0x14012b5f0]
call fcn.14007eea0
jmp 0x14005cf02
Function at 0x140067c50
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140111038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012b7f0]
mov ecx, dword [0x140120780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067cb0
mov rsi, qword [0x14012b7e8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140080240
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012b7f0]
call fcn.14007edec
cmp dword [0x14012b7f0], 0xffffffff
jne 0x140067c8c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140082390
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.14007ed64
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012b838]
mov ecx, dword [0x140120780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067d70
lea r8, [0x14012b808]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140042410
mov qword [0x14012b7e8], rsi
lea rcx, [0x14012b7f0]
call fcn.14007eea0
jmp 0x140067c8c
lea rcx, [0x14012b838]
call fcn.14007edec
cmp dword [0x14012b838], 0xffffffff
jne 0x140067d41
xorps xmm0, xmm0
movups xmmword [0x14012b828], xmm0
movups xmmword [0x14012b818], xmm0
movups xmmword [0x14012b808], xmm0
lea rcx, [0x14012b808]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012b838]
call fcn.14007eea0
jmp 0x140067d41