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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140122038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008e650
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 0x140047205
mov eax, eax
inc rax
cmp rax, 1
je 0x140047205
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400471d1
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400471f2
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a38b8
test eax, eax
je 0x14004733e
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 0x140047266
mov eax, eax
inc rax
cmp rax, 1
je 0x140047266
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140047232
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140047253
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a38b8
test eax, eax
je 0x14004730f
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 0x1400472c3
mov eax, eax
inc rax
cmp rax, 1
je 0x1400472c3
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140047293
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400472b4
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a38b8
test eax, eax
je 0x1400472e4
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008c510
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400472f1
and eax, 0x7f
jmp 0x1400472f5
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400472c5
mov rcx, rsi
mov rdx, r14
call fcn.1400ccc80
cmp word [rax], 0x5c
jne 0x1400472c3
jmp 0x1400472c5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14004731c
and eax, 0x7f
jmp 0x140047320
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400472c5
mov rcx, rsi
mov rdx, r14
call fcn.1400ccc80
cmp word [rax], 0x5c
jne 0x140047266
jmp 0x1400472c5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14004734b
and eax, 0x7f
jmp 0x14004734f
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400472c5
mov rcx, rsi
mov rdx, r14
call fcn.1400ccc80
cmp word [rax], 0x5c
jne 0x140047205
jmp 0x1400472c5
Function at 0x140049720
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013c910]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004975b
movzx eax, word [0x14013c8e0]
cmp eax, 9
jne 0x1400497a3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14013c910]
call fcn.14008b010
cmp dword [0x14013c910], 0xffffffff
jne 0x140049745
xorps xmm0, xmm0
movups xmmword [0x14013c900], xmm0
movups xmmword [0x14013c8f0], xmm0
movups xmmword [0x14013c8e0], xmm0
lea rcx, [0x14013c8e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013c910]
call fcn.14008b0a8
jmp 0x140049745
test eax, eax
je 0x140049756
cmp eax, 6
jne 0x1400497b3
mov eax, 2
jmp 0x140049756
cmp eax, 0xc
jne 0x1400497bf
mov eax, 3
jmp 0x140049756
mov eax, 4
jmp 0x140049756
Function at 0x14004aec0
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 0x14004afb5
cmp qword [rsi], 0
jne 0x14004afb5
cmp dword [rsi + 0x14], 0
jne 0x14004afb5
cmp qword [rsi + 8], 0
jne 0x14004afb5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14004af34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004af9c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14004af2c
mov qword [rsi], r14
call fcn.140074770
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14004af6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14004af84
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14004af66
mov qword [rsi + 8], r14
call fcn.140074770
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.140074770
mov rcx, qword [rsi + 8]
call fcn.140068640
mov qword [rsi + 8], 0
jmp 0x14004af53
call fcn.140074770
mov rcx, qword [rsi]
call fcn.140068640
mov qword [rsi], 0
jmp 0x14004af1a
mov rcx, rsi
call fcn.1400eec10
mov rax, qword [rsi]
jmp 0x14004aefa
Function at 0x14004eb30
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140122038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x140107160]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14004ecac
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14013cf10]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400abdbc
mov rcx, rbx
call fcn.1400ab968
sub r14, rax
lea rdx, [0x140109cce]
mov rcx, rbx
mov r8, r14
call fcn.1400abdbc
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14008e650
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 0x14004ec0c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400abe04
test eax, eax
je 0x14004ecd4
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 0x14004ec47
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400abe04
test eax, eax
je 0x14004ecd4
xor eax, eax
mov byte [0x14013cb09], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140111f30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004ecd0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140148008]
test eax, eax
je 0x14004ecd0
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14013d110], al
mov byte [0x14013cb08], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008c510
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14004ec9f
mov al, 1
jmp 0x14004ec49
Function at 0x14004ef80
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 [0x140122038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14004efb3
mov rax, qword [rsi + 8]
test rax, rax
je 0x14004f0a7
bt ebx, 8
jae 0x14004efcf
mov eax, ebx
and eax, 0x200
jne 0x14004f0a7
cmp edi, 2
lea rax, [0x14013cb10]
lea rcx, [0x14013cd10]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14004f0a7
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 0x14004f0a7
cmp byte [0x14013d110], 0
setne al
bt ebx, 8
jb 0x14004f0a7
shr ebx, 9
and ebx, 1
or bl, al
je 0x14004f0a7
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x14004f0c6
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 0x14004f094
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400a38b8
test eax, eax
je 0x14004f0f1
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x14004f074
cmp dword [rsp + 0x2c], 0
jne 0x14004f0cb
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008c510
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 0x14004f057
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14004f0d7
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.1400e1740
jmp 0x14004f0a7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14004f0ff
test ecx, ecx
jne 0x14004f094
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14004f12e
cmp dword [rsp + 0x2c], 2
jne 0x14004f13f
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14004f13f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x14004f158
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14004f145
jmp 0x14004f15b
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x14004f09b
Function at 0x140053850
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 [0x140131700]
cmp ecx, 0xffffffff
je 0x14005392a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14005392a
mov eax, dword [0x14013e9b0]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053934
mov rbx, qword [0x14013e9a8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005397a
mov rax, qword [0x14013d198]
inc rax
xor ecx, ecx
lea rdx, [0x14013d1a0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140053987
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14013e9a0]
inc ecx
mov dword [0x14013e9a0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14013d198], 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 0x14005399c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400539a0
jmp 0x14005387a
lea rcx, [0x14013e9b0]
call fcn.14008b010
cmp dword [0x14013e9b0], 0xffffffff
jne 0x14005389f
mov ecx, 8
call fcn.14008aeb4
mov rbx, rax
mov rcx, rax
call fcn.140068be0
mov qword [0x14013e9a8], rbx
lea rcx, [0x14013e9b0]
call fcn.14008b0a8
jmp 0x14005389f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400538b7
inc rcx
cmp rcx, 0x100
jne 0x1400538ca
jmp 0x140053910
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14008c4b0
sub rsp, rax
mov rax, qword [0x140122038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140131700]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140053a54
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140053ab7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14008e650
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14008af2c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14008dfa0
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.14008c510
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140055b30
test al, al
je 0x140053aba
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140053a92
mov eax, 0xffffffff
lock cmpxchg dword [0x140131700], ecx
je 0x1400539d8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140131700]
mov dword [rsp + 0x2c], ecx
jmp 0x1400539d8
lea rcx, [rsp + 0x2c]
call fcn.140055b30
test al, al
je 0x140053abd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140053abd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140053a6b
int3
int3
int3
Function at 0x140053ad0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140131700]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140053b0e
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 0x140053b07
call fcn.1400539a0
jmp 0x140053aee

Function at 0x140055b30
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 0x140055b45
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140067ed0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x140067f3b
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x140067f69
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.14008aeb4
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x140067f34
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x140067f10
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x140067f95
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008aef0
jmp 0x140067f0b
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x140067f52
mov rcx, rdi
call fcn.140063850
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x140067f69
mov rax, rdi
shr rax, 0x3d
je 0x140067eef
call fcn.1400c0180
cmp rdi, rbx
jae 0x140067f2c
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x140068097
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14006809c
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140068011
cmp rcx, rdi
jb 0x140068018
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x140068018
lea rax, [rdi - 1]
and rcx, rax
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140067f2c
lea r11, [rdi - 1]
jmp 0x14006807e
mov qword [rdx + rax*8], r8
jmp 0x14006806c
and rax, r11
cmp rax, rcx
je 0x140068069
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
je 0x140068031
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x140067f2c
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140068037
cmp rax, rdi
jb 0x14006803a
xor edx, edx
div rdi
mov rax, rdx
jmp 0x14006803a
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400befc0
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1400fa288]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x14006814f
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x14006814f
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x14006815a
mov rcx, rax
call fcn.140063850
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x140067f2c
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400e4ed0
Function at 0x140068890
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 [0x140122038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140068bc0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14013c5d0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400688ee
jnp 0x140068954
ucomisd xmm0, xmm6
jne 0x1400688f6
jnp 0x140068950
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140108bb0]
subpd xmm1, xmmword [0x140108bc0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x14010d888]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008c510
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 0x140068928
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 [0x14013c5e0]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140068a69
mov eax, dword [0x14013c5f0]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140068aa3
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 [0x14013c5e8]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x14010d880]
ucomisd xmm2, xmm1
ja 0x1400688ee
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14013c5d8]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140108bb0]
subpd xmm0, xmmword [0x140108bc0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14013c5d0], xmm0
jmp 0x1400688ee
lea rcx, [0x14013c5e0]
call fcn.14008b010
cmp dword [0x14013c5e0], 0xffffffff
jne 0x14006899d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14013c5d8], rdx
lea rcx, [0x14013c5e0]
call fcn.14008b0a8
jmp 0x14006899d
lea rcx, [0x14013c5f0]
call fcn.14008b010
cmp dword [0x14013c5f0], 0xffffffff
jne 0x1400689c2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14013c5e8], rax
lea rcx, [0x14013c5f0]
call fcn.14008b0a8
jmp 0x1400689c2
Function at 0x140078b60
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140122038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013c8c8]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140078bc0
mov rsi, qword [0x14013c8c0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008c510
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013c8c8]
call fcn.14008b010
cmp dword [0x14013c8c8], 0xffffffff
jne 0x140078b9c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008e650
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.14008aeb4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013c910]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140078c80
lea r8, [0x14013c8e0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400497d0
mov qword [0x14013c8c0], rsi
lea rcx, [0x14013c8c8]
call fcn.14008b0a8
jmp 0x140078b9c
lea rcx, [0x14013c910]
call fcn.14008b010
cmp dword [0x14013c910], 0xffffffff
jne 0x140078c51
xorps xmm0, xmm0
movups xmmword [0x14013c900], xmm0
movups xmmword [0x14013c8f0], xmm0
movups xmmword [0x14013c8e0], xmm0
lea rcx, [0x14013c8e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013c910]
call fcn.14008b0a8
jmp 0x140078c51
Function at 0x140078cd0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140122038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013c8c8]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140078d31
mov rax, qword [0x14013c8c0]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008c510
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013c8c8]
call fcn.14008b010
cmp dword [0x14013c8c8], 0xffffffff
jne 0x140078d0c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008e650
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.14008aeb4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013c910]
mov ecx, dword [0x140131798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140078df1
lea r8, [0x14013c8e0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400497d0
mov qword [0x14013c8c0], rsi
lea rcx, [0x14013c8c8]
call fcn.14008b0a8
jmp 0x140078d0c
lea rcx, [0x14013c910]
call fcn.14008b010
cmp dword [0x14013c910], 0xffffffff
jne 0x140078dc2
xorps xmm0, xmm0
movups xmmword [0x14013c900], xmm0
movups xmmword [0x14013c8f0], xmm0
movups xmmword [0x14013c8e0], xmm0
lea rcx, [0x14013c8e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013c910]
call fcn.14008b0a8
jmp 0x140078dc2

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007e0cb
xor ecx, ecx
lea r9, [0x1401119b0]
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 0x14007e0b0
ret
Function at 0x14007fb10
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 r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14007fbaa
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14007fb94
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14007fb71
mov qword [rsi], rdi
call fcn.140074770
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14007fbae
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140074770
mov rcx, qword [rsi]
call fcn.140068640
mov qword [rsi], 0
jmp 0x14007fb5f
mov byte [rsi + 8], 0
int3

Function at 0x1400862f0
Capabilities:
Get thread local storage value

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