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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140088450
sub rsp, rax
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140143360]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140052534
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140052572
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14008a5d0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400871dc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140089f20
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.1400884b0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14005dbb0
test al, al
je 0x140052575
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140052578
mov eax, 0xffffffff
lock cmpxchg dword [0x140143360], ecx
je 0x1400524b8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140143360]
mov dword [rsp + 0x2c], ecx
jmp 0x1400524b8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14005dbb0
test al, al
je 0x14005259d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14005259d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14005254b
int3

Function at 0x1400538a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140147f50]
cmp rdi, 1
jbe 0x1400538c9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140076370
lea rcx, [0x140147f50]
call fcn.140048c30
test al, al
je 0x14005390e
xorps xmm0, xmm0
movups xmmword [0x140147f58], xmm0
lea rbx, [0x140147f50]
lea rdi, [0x140147f58]
mov rcx, rdi
xor edx, edx
call fcn.140052690
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140048cd0
jmp 0x1400538b7
mov rdi, qword [0x140147f50]
jmp 0x1400538b7

Function at 0x140054370
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140147fd0]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400543ab
movzx eax, word [0x140147fa0]
cmp eax, 9
jne 0x1400543f3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140147fd0]
call fcn.1400872c0
cmp dword [0x140147fd0], 0xffffffff
jne 0x140054395
xorps xmm0, xmm0
movups xmmword [0x140147fc0], xmm0
movups xmmword [0x140147fb0], xmm0
movups xmmword [0x140147fa0], xmm0
lea rcx, [0x140147fa0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140147fd0]
call fcn.140087358
jmp 0x140054395
test eax, eax
je 0x1400543a6
cmp eax, 6
jne 0x140054403
mov eax, 2
jmp 0x1400543a6
cmp eax, 0xc
jne 0x14005440f
mov eax, 3
jmp 0x1400543a6
mov eax, 4
jmp 0x1400543a6
Function at 0x140054b60
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140054c4c
cmp qword [rsi], 0
jne 0x140054c4c
cmp dword [rsi + 0x14], 0
jne 0x140054c4c
cmp qword [rsi + 8], 0
jne 0x140054c4c
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x140054bcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140054c1e
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140054bc7
mov qword [rsi], rbx
call fcn.14006cbe0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x140054c09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140054c34
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140054c01
mov qword [rsi + 8], rbp
call fcn.14006cbe0
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 rbp
pop rdi
pop rsi
ret
call fcn.14006cbe0
mov rcx, qword [rsi]
call fcn.140071510
mov qword [rsi], 0
jmp 0x140054bb5
call fcn.14006cbe0
mov rcx, qword [rsi + 8]
call fcn.140071510
mov qword [rsi + 8], 0
jmp 0x140054bee
mov rcx, rsi
call fcn.1400e0460
mov rax, qword [rsi]
jmp 0x140054b99

Function at 0x140055a90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.140057a80
test al, al
jne 0x140055b18
call fcn.140057a50
movzx edx, al
mov ecx, esi
call fcn.14004d470
mov eax, dword [0x140148010]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055ae7
movsxd rdx, esi
inc rdx
lea rcx, [0x140148000]
add rsp, 0x20
pop rsi
jmp fcn.140076370
lea rcx, [0x140148010]
call fcn.1400872c0
cmp dword [0x140148010], 0xffffffff
jne 0x140055ad0
lea rcx, [0x140148000]
xor edx, edx
call fcn.140052690
lea rcx, [0x140148010]
call fcn.140087358
jmp 0x140055ad0
mov edx, 3
jmp 0x140055aa8

Function at 0x140055b20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14004d470
mov eax, dword [0x140148010]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055b64
movsxd rdx, esi
inc rdx
lea rcx, [0x140148000]
add rsp, 0x20
pop rsi
jmp fcn.140076370
lea rcx, [0x140148010]
call fcn.1400872c0
cmp dword [0x140148010], 0xffffffff
jne 0x140055b4d
lea rcx, [0x140148000]
xor edx, edx
call fcn.140052690
lea rcx, [0x140148010]
call fcn.140087358
jmp 0x140055b4d
Function at 0x140059040
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 r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140059074
mov rax, qword [r12 + 8]
test rax, rax
je 0x14005916c
mov eax, ebx
not eax
test eax, 0x300
je 0x14005916c
cmp edi, 2
lea rax, [0x14014a3b0]
lea rcx, [0x14014a5b0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14005916c
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x14005916c
cmp byte [0x14014a3a0], 0
setne al
bt ebx, 8
jb 0x14005916c
shr ebx, 9
and ebx, 1
or bl, al
je 0x14005916c
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x1400591c5
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x140059159
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.14009f008
test eax, eax
je 0x14005918b
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14005913b
cmp dword [rsp + 0x2c], 0
jne 0x1400591cd
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400884b0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp ecx, 0x5c
je 0x140059198
test ecx, ecx
jne 0x140059159
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400591f9
cmp dword [rsp + 0x2c], 2
jne 0x14005920a
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14005920a
mov rbx, r12
jmp 0x14005911c
cmp byte [r12 + 0x17], 0
mov rax, r12
jns 0x1400591dc
mov rax, qword [r12]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.1400452d0
jmp 0x14005916c
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x140059223
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x140059210
jmp 0x140059226
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x140059160
Function at 0x14005d960
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14014d8e0], 0
jne 0x14005d99d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14005d990
mov dword [rdi], eax
mov dword [0x14014d8e8], eax
mov qword [0x14014d8e0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

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

Function at 0x14005e860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14014d928]
cmp rdi, 1
jbe 0x14005e889
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140076370
lea rcx, [0x14014d928]
call fcn.140048c30
test al, al
je 0x14005e8ce
xorps xmm0, xmm0
movups xmmword [0x14014d930], xmm0
lea rbx, [0x14014d928]
lea rdi, [0x14014d930]
mov rcx, rdi
xor edx, edx
call fcn.140052690
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140048cd0
jmp 0x14005e877
mov rdi, qword [0x14014d928]
jmp 0x14005e877
Function at 0x1400655e0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
push rbx
mov r8, rcx
xor ebx, ebx
xor eax, eax
xor ecx, ecx
xchg rbx, rsi
cpuid
xchg rbx, rsi
test eax, eax
jle 0x1400656f2
mov esi, eax
mov eax, 1
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r9d, ecx
mov r10d, edx
mov r11d, eax
cmp esi, 7
jb 0x14006562d
mov eax, 7
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
and ebx, 0x20
mov dword [r8], r11d
mov eax, r11d
and eax, 0xf
mov dword [r8 + 8], eax
shr r11d, 0xc
and r11d, 3
mov dword [r8 + 4], r11d
mov eax, r10d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r10d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r10d, 0x1a
and r10b, 1
mov byte [r8 + 0xe], r10b
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 + 0x19], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140065729
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 ebx, ebx
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov eax, 0x80000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp eax, 0x80000006
jle 0x14006572d
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
shr edx, 8
and dl, 1
mov byte [r8 + 0x18], dl
test dl, dl
je 0x140065733
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1400656c5
mov dl, byte [r8 + 0x18]
jmp 0x140065721
cmp byte [r8 + 0x19], 0
je 0x140065725
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp ebx, 0x7263694d
jne 0x140065725
cmp ecx, 0x666f736f
jne 0x140065725
cmp edx, 0x76482074
jne 0x140065725
mov byte [r8 + 0x18], 1
jmp 0x140065725

Function at 0x140065ce0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140065d1c
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 0x140065d26
add rdi, rbx
sub rsi, rbx
jne 0x140065cfa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400711c0
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 0x140071207
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140071221
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400711ff
mov qword [rsi], rdi
call fcn.14006cbe0
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 0x140071237
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14006cbe0
mov rcx, qword [rsi]
call fcn.140071510
mov qword [rsi], 0
jmp 0x1400711ed
int3
Function at 0x140071a40
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 [0x140134028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400714f0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140146158]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140071a9d
jnp 0x140071b02
ucomisd xmm0, xmm6
jne 0x140071aa9
jnp 0x140071c18
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x14011dab0]
subpd xmm1, xmmword [0x14011dac0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x14011dd18]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400884b0
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 [0x140146168]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071c1f
mov eax, dword [0x140146178]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071c59
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 [0x140146170]
cvtsi2sd xmm1, rbp
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x14011dd10]
ucomisd xmm2, xmm1
ja 0x140071a9d
shl r15, 0x20
or r14, r15
sub r14, qword [0x140146160]
movq xmm0, r14
punpckldq xmm0, xmmword [0x14011dab0]
subpd xmm0, xmmword [0x14011dac0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140146158], xmm0
jmp 0x140071a9d
xor eax, eax
jmp 0x140071adb
lea rcx, [0x140146168]
call fcn.1400872c0
cmp dword [0x140146168], 0xffffffff
jne 0x140071b4c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140146160], rdx
lea rcx, [0x140146168]
call fcn.140087358
jmp 0x140071b4c
lea rcx, [0x140146178]
call fcn.1400872c0
cmp dword [0x140146178], 0xffffffff
jne 0x140071b71
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140146170], rax
lea rcx, [0x140146178]
call fcn.140087358
jmp 0x140071b71
Function at 0x140076330
Capabilities:
Get thread local storage value

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

Function at 0x140076370
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140143360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400763ae
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 0x1400763a7
call fcn.140052480
jmp 0x14007638e

Function at 0x140076f30
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140147f88]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140076f90
mov rsi, qword [0x140147f80]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400884b0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140147f88]
call fcn.1400872c0
cmp dword [0x140147f88], 0xffffffff
jne 0x140076f6c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008a5d0
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.140087164
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140147fd0]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140077050
lea r8, [0x140147fa0]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140054420
mov qword [0x140147f80], rsi
lea rcx, [0x140147f88]
call fcn.140087358
jmp 0x140076f6c
lea rcx, [0x140147fd0]
call fcn.1400872c0
cmp dword [0x140147fd0], 0xffffffff
jne 0x140077021
xorps xmm0, xmm0
movups xmmword [0x140147fc0], xmm0
movups xmmword [0x140147fb0], xmm0
movups xmmword [0x140147fa0], xmm0
lea rcx, [0x140147fa0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140147fd0]
call fcn.140087358
jmp 0x140077021
Function at 0x1400770a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140147f88]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140077101
mov rax, qword [0x140147f80]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400884b0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140147f88]
call fcn.1400872c0
cmp dword [0x140147f88], 0xffffffff
jne 0x1400770dc
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008a5d0
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.140087164
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140147fd0]
mov ecx, dword [0x1401434ec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400771c1
lea r8, [0x140147fa0]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140054420
mov qword [0x140147f80], rsi
lea rcx, [0x140147f88]
call fcn.140087358
jmp 0x1400770dc
lea rcx, [0x140147fd0]
call fcn.1400872c0
cmp dword [0x140147fd0], 0xffffffff
jne 0x140077192
xorps xmm0, xmm0
movups xmmword [0x140147fc0], xmm0
movups xmmword [0x140147fb0], xmm0
movups xmmword [0x140147fa0], xmm0
lea rcx, [0x140147fa0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140147fd0]
call fcn.140087358
jmp 0x140077192
Function at 0x140079ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x140079fbb
test rax, rax
jne 0x140079fac
cmp dword [rsi + 0x50], 0
jne 0x140079fac
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x140079ffb
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.140069e00
cmp rax, 0xffffffffffffffff
jne 0x140079fe9
cmp dword [rsi + 0x58], 1
je 0x140079fc4
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x14007a001
nop dword [rax]
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140069e00
cmp rax, 0xffffffffffffffff
jne 0x14007a001
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x140079f91
inc rax
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x140079f60
jmp 0x14007a001
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x140079f82
movabs rdx, 0x100003600
bt rdx, rcx
jae 0x140079f82
jmp 0x14007a001
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400e41c0
mov rax, qword [rsi + 0x40]
jmp 0x140079ef6
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x140079f49
movabs rcx, 0x100003600
bt rcx, rax
jae 0x140079f49
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x140079f23
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14007a870
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14014b6b0]
cmp rsi, 1
jbe 0x14007a893
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140076370
lea rcx, [0x14014b6b0]
call fcn.140048c30
test al, al
je 0x14007a8d8
xorps xmm0, xmm0
movups xmmword [0x14014b6b8], xmm0
lea rdi, [0x14014b6b0]
lea rsi, [0x14014b6b8]
mov rcx, rsi
xor edx, edx
call fcn.140052690
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140048cd0
jmp 0x14007a883
mov rsi, qword [0x14014b6b0]
jmp 0x14007a883

Function at 0x140083340
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 0x1400833d7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400833c1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14008339e
mov qword [rsi], rdi
call fcn.14006cbe0
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 0x1400833db
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14006cbe0
mov rcx, qword [rsi]
call fcn.140071510
mov qword [rsi], 0
jmp 0x14008338c
mov byte [rsi + 8], 1
int3