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

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140125308]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140052c10
lea rsi, [0x140125300]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140087640
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140125308]
call fcn.140086270
cmp dword [0x140125308], 0xffffffff
jne 0x140052bec
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140089770
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
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.14008611c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140125350]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140052cd0
lea r8, [0x140125320]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140052df0
mov qword [0x140125300], rsi
lea rcx, [0x140125308]
call fcn.140086308
jmp 0x140052bec
lea rcx, [0x140125350]
call fcn.140086270
cmp dword [0x140125350], 0xffffffff
jne 0x140052ca1
xorps xmm0, xmm0
movups xmmword [0x140125340], xmm0
movups xmmword [0x140125330], xmm0
movups xmmword [0x140125320], xmm0
lea rcx, [0x140125320]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140125350]
call fcn.140086308
jmp 0x140052ca1

Function at 0x140052d40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140125350]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140052d7c
movzx ecx, word [0x140125320]
cmp cx, 9
jne 0x140052dc4
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140125350]
call fcn.140086270
cmp dword [0x140125350], 0xffffffff
jne 0x140052d65
xorps xmm0, xmm0
movups xmmword [0x140125340], xmm0
movups xmmword [0x140125330], xmm0
movups xmmword [0x140125320], xmm0
lea rcx, [0x140125320]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140125350]
call fcn.140086308
jmp 0x140052d65
xor eax, eax
test cx, cx
je 0x140052d77
cmp cx, 6
jne 0x140052dd8
mov eax, 2
jmp 0x140052d77
cmp cx, 0xc
jne 0x140052de5
mov eax, 3
jmp 0x140052d77
mov eax, 4
jmp 0x140052d77
Function at 0x1400535c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140114038]
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 0x140053633
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140053633
cmp dword [rsp + 0x38], 4
jne 0x140053633
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140087640
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400875e0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140089770
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 0x140053703
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140053707
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140033160
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140087640
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400536e4
cmp eax, 2
jne 0x140053756
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140089770
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14005374f
lea rdx, [rsp + 0x40]
jmp 0x1400536da
mov edi, 0xea
jmp 0x1400536e4
mov edi, 0x3f4
jmp 0x1400536e4

Function at 0x140053820
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14011d6a8]
cmp ecx, 0xffffffff
je 0x140053845
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 0x140053840
Function at 0x140053850
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 [0x14011d6a8]
cmp ecx, 0xffffffff
je 0x14005392e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14005392e
mov eax, dword [0x140126b68]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053938
mov rbx, qword [0x140126b60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005397e
mov rax, qword [0x140125358]
inc rax
xor ecx, ecx
lea rdx, [0x140125360]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14005398b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140125358], 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 0x1400539a0
cmp eax, 0x100
jge 0x1400539a3
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400539b0
jmp 0x14005387e
lea rcx, [0x140126b68]
call fcn.140086270
cmp dword [0x140126b68], 0xffffffff
jne 0x1400538a3
mov ecx, 8
call fcn.14008611c
mov rbx, rax
mov rcx, rax
call fcn.140070e30
mov qword [0x140126b60], rbx
lea rcx, [0x140126b68]
call fcn.140086308
jmp 0x1400538a3
mov rcx, rbx
call fcn.140070e40
jmp 0x1400538bb
inc rcx
cmp rcx, 0x100
jne 0x1400538ce
jmp 0x140053902
int3
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400875e0
sub rsp, rax
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14011d6a8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140053a64
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140053aa2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140089770
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14008618c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400890c0
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.140087640
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140059b20
test al, al
je 0x140053aa5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140053aa8
mov eax, 0xffffffff
lock cmpxchg dword [0x14011d6a8], ecx
je 0x1400539e8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14011d6a8]
mov dword [rsp + 0x2c], ecx
jmp 0x1400539e8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140059b20
test al, al
je 0x140053acd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140053acd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140053a7b
int3
Function at 0x140054df0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140126b90]
cmp rdi, 1
jbe 0x140054e19
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007a3f0
lea rcx, [0x140126b90]
call fcn.140037b40
test al, al
je 0x140054e5f
mov qword [0x140126b98], 0
lea rbx, [0x140126b90]
lea rdi, [0x140126b98]
mov rcx, rdi
xor edx, edx
call fcn.140053bc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140037be0
jmp 0x140054e07
mov rdi, qword [0x140126b90]
jmp 0x140054e07

Function at 0x1400583b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140058410
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140058419
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140087640
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400583f9
int3
mov rcx, qword [rcx + 8]
jmp 0x1400583b0

Function at 0x140058420
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 [0x140114038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
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 0x1400584c3
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400584b2
cmp eax, 0xffffffff
je 0x1400584d7
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140087640
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 0x140058461
mov eax, dword [rsp + 0x2c]
jmp 0x140058492
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140058494
int3

Function at 0x140058960
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140058880
test rax, rax
jne 0x14005899f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400589bb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140087640
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140069cb0
test al, al
jne 0x1400589cd
xor esi, esi
jmp 0x14005899f
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.1400d4d70
lea rcx, [rsp + 0x40]
lea rdx, [0x140103f41]
mov r8d, 0xc
call fcn.1400b97e0
mov rcx, rsi
call fcn.1400d4df0
jmp 0x1400589c9
Function at 0x140058ea0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140058410
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140058419
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140087640
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400583f9
int3
mov rcx, qword [rcx + 8]
jmp 0x1400583b0

Function at 0x140059b20
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 0x140059b35
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14005a900
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140126d78]
cmp rdi, 1
jbe 0x14005a929
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007a3f0
lea rcx, [0x140126d78]
call fcn.140037b40
test al, al
je 0x14005a96f
mov qword [0x140126d80], 0
lea rbx, [0x140126d78]
lea rdi, [0x140126d80]
mov rcx, rdi
xor edx, edx
call fcn.140053bc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140037be0
jmp 0x14005a917
mov rdi, qword [0x140126d78]
jmp 0x14005a917
Function at 0x14006d9e0
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 0x14006da27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006da41
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006da1f
mov qword [rsi], rdi
call fcn.140077690
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 0x14006da57
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140077690
mov rcx, qword [rsi]
call fcn.140077a40
mov qword [rsi], 0
jmp 0x14006da0d
int3

Function at 0x14006dab0
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 0x14006db47
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006db31
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006db0e
mov qword [rsi], rdi
call fcn.140077690
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 0x14006db4b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140077690
mov rcx, qword [rsi]
call fcn.140077a40
mov qword [rsi], 0
jmp 0x14006dafc
mov byte [rsi + 8], 1
int3

Function at 0x140076f20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140076f5c
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 0x140076f66
add rdi, rbx
sub rsi, rbx
jne 0x140076f3a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400772f0
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 [0x140114038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14006e000
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1401245f0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14007734d
jnp 0x1400773b2
ucomisd xmm0, xmm6
jne 0x140077359
jnp 0x1400774dc
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400fade0]
subpd xmm1, xmmword [0x1400fadf0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140100220]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140087640
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 [0x140124600]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400774e3
mov eax, dword [0x140124610]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007751d
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 [0x140124608]
movq xmm1, rbp
punpckldq xmm1, xmmword [0x1400fade0]
subpd xmm1, xmmword [0x1400fadf0]
haddpd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140100218]
ucomisd xmm2, xmm1
ja 0x14007734d
shl r15, 0x20
or r14, r15
sub r14, qword [0x1401245f8]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1400fade0]
subpd xmm0, xmmword [0x1400fadf0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1401245f0], xmm0
jmp 0x14007734d
xor eax, eax
jmp 0x14007738b
lea rcx, [0x140124600]
call fcn.140086270
cmp dword [0x140124600], 0xffffffff
jne 0x1400773fc
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401245f8], rdx
lea rcx, [0x140124600]
call fcn.140086308
jmp 0x1400773fc
lea rcx, [0x140124610]
call fcn.140086270
cmp dword [0x140124610], 0xffffffff
jne 0x140077421
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140124608], rax
lea rcx, [0x140124610]
call fcn.140086308
jmp 0x140077421
Function at 0x140079d30
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140114038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140125308]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140079d91
mov rax, qword [0x140125300]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140087640
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140125308]
call fcn.140086270
cmp dword [0x140125308], 0xffffffff
jne 0x140079d6c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140089770
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
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.14008611c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140125350]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140079e51
lea r8, [0x140125320]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140052df0
mov qword [0x140125300], rsi
lea rcx, [0x140125308]
call fcn.140086308
jmp 0x140079d6c
lea rcx, [0x140125350]
call fcn.140086270
cmp dword [0x140125350], 0xffffffff
jne 0x140079e22
xorps xmm0, xmm0
movups xmmword [0x140125340], xmm0
movups xmmword [0x140125330], xmm0
movups xmmword [0x140125320], xmm0
lea rcx, [0x140125320]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140125350]
call fcn.140086308
jmp 0x140079e22

Function at 0x14007a3b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14011d6a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007a3e4
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14007a3e4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14007a3de

Function at 0x14007a3f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14011d6a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007a42e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14007a427
call fcn.1400539b0
jmp 0x14007a40e

Function at 0x14007b320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007b34b
xor ecx, ecx
lea r9, [0x1401033d0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14007b330
ret
Function at 0x14007c4d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x14007c5b3
test rax, rax
jne 0x14007c5a2
cmp dword [rsi + 0x50], 0
jne 0x14007c5a2
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x14007c5f3
lea rdi, [rsi + 0x20]
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140067070
cmp rax, 0xffffffffffffffff
jne 0x14007c5e1
cmp dword [rsi + 0x58], 1
je 0x14007c5bc
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x14007c5f9
movabs r14, 0x100003600
nop dword [rax]
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140067070
cmp rax, 0xffffffffffffffff
jne 0x14007c5f9
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x14007c591
inc rax
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x14007c560
jmp 0x14007c5f9
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x14007c582
bt r14, rcx
jae 0x14007c582
jmp 0x14007c5f9
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400e47b0
mov rax, qword [rsi + 0x40]
jmp 0x14007c4e8
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x14007c53f
movabs rcx, 0x100003600
bt rcx, rax
jae 0x14007c53f
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x14007c515
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14007db90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140126d50]
cmp rsi, 1
jbe 0x14007dbb3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007a3f0
lea rcx, [0x140126d50]
call fcn.140037b40
test al, al
je 0x14007dbf9
mov qword [0x140126d58], 0
lea rdi, [0x140126d50]
lea rsi, [0x140126d58]
mov rcx, rsi
xor edx, edx
call fcn.140053bc0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140037be0
jmp 0x14007dba3
mov rsi, qword [0x140126d50]
jmp 0x14007dba3

Function at 0x140082940
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140126d98]
mov ecx, dword [0x14011d780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140082975
lea rcx, [0x140126d90]
add rsp, 0x28
jmp fcn.14007a3b0
lea rcx, [0x140126d98]
call fcn.140086270
cmp dword [0x140126d98], 0xffffffff
jne 0x140082965
mov qword [0x140126d90], 0
lea rcx, [0x140126d90]
xor edx, edx
call fcn.140053bc0
lea rcx, [0x140126d98]
call fcn.140086308
jmp 0x140082965