joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035b10
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 [0x140113038]
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.140030840
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140035ca4
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1400fe748]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140035cdb
lea rdx, [0x1400fe798]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140035cc9
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140139008]
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 0x140035cd1
test r12d, r12d
js 0x140035d46
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14007cc84
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 0x140035cee
mov rdx, qword [r14 + r15]
call fcn.1400bdf90
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x140035c12
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140035710
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140035c66
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140035ca4
cmp r15, rbx
je 0x140035c9c
add r15, 0xffffffffffffffe8
jmp 0x140035c8a
mov rcx, qword [r15]
call fcn.14007ccc0
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x140035c9c
test r15, r15
je 0x140035d1a
cmp byte [r15 + 0x17], 0
jns 0x140035c7e
jmp 0x140035c76
mov rcx, rbx
call fcn.14007ccc0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007e2e0
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 0x140035bc4
xor r15d, r15d
xor ebx, ebx
jmp 0x140035c3f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140035bc1
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.1400b3240
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.1400b3240
lea rcx, [rsp + 0x30]
call fcn.1400b31b0
int3
Function at 0x140038590
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140113038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140080420
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 0x140038625
mov eax, eax
inc rax
cmp rax, 1
je 0x140038625
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400385f1
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140038612
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.140094a1c
test eax, eax
je 0x14003875e
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 0x140038686
mov eax, eax
inc rax
cmp rax, 1
je 0x140038686
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140038652
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140038673
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.140094a1c
test eax, eax
je 0x14003872f
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 0x1400386e3
mov eax, eax
inc rax
cmp rax, 1
je 0x1400386e3
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400386b3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400386d4
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.140094a1c
test eax, eax
je 0x140038704
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14007e2e0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140038711
and eax, 0x7f
jmp 0x140038715
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400386e5
mov rcx, rsi
mov rdx, r14
call fcn.1400be610
cmp word [rax], 0x5c
jne 0x1400386e3
jmp 0x1400386e5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003873c
and eax, 0x7f
jmp 0x140038740
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400386e5
mov rcx, rsi
mov rdx, r14
call fcn.1400be610
cmp word [rax], 0x5c
jne 0x140038686
jmp 0x1400386e5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003876b
and eax, 0x7f
jmp 0x14003876f
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400386e5
mov rcx, rsi
mov rdx, r14
call fcn.1400be610
cmp word [rax], 0x5c
jne 0x140038625
jmp 0x1400386e5
Function at 0x14003bbc0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14012d870]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003bbfb
movzx eax, word [0x14012d840]
cmp eax, 9
jne 0x14003bc43
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14012d870]
call fcn.14007cde0
cmp dword [0x14012d870], 0xffffffff
jne 0x14003bbe5
xorps xmm0, xmm0
movups xmmword [0x14012d860], xmm0
movups xmmword [0x14012d850], xmm0
movups xmmword [0x14012d840], xmm0
lea rcx, [0x14012d840]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012d870]
call fcn.14007ce78
jmp 0x14003bbe5
test eax, eax
je 0x14003bbf6
cmp eax, 6
jne 0x14003bc53
mov eax, 2
jmp 0x14003bbf6
cmp eax, 0xc
jne 0x14003bc5f
mov eax, 3
jmp 0x14003bbf6
mov eax, 4
jmp 0x14003bbf6
Function at 0x14003d390
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 0x14003d485
cmp qword [rsi], 0
jne 0x14003d485
cmp dword [rsi + 0x14], 0
jne 0x14003d485
cmp qword [rsi + 8], 0
jne 0x14003d485
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14003d404
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003d46c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003d3fc
mov qword [rsi], r14
call fcn.140060fd0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14003d43e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14003d454
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003d436
mov qword [rsi + 8], r14
call fcn.140060fd0
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.140060fd0
mov rcx, qword [rsi + 8]
call fcn.14005aac0
mov qword [rsi + 8], 0
jmp 0x14003d423
call fcn.140060fd0
mov rcx, qword [rsi]
call fcn.14005aac0
mov qword [rsi], 0
jmp 0x14003d3ea
mov rcx, rsi
call fcn.1400de2e0
mov rax, qword [rsi]
jmp 0x14003d3ca
Function at 0x140041070
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140113038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400f7c50]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400411ec
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14012ddf0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14009cb3c
mov rcx, rbx
call fcn.14009c6e8
sub r14, rax
lea rdx, [0x1400fa7c2]
mov rcx, rbx
mov r8, r14
call fcn.14009cb3c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140080420
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 0x14004114c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14009cb84
test eax, eax
je 0x140041214
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 0x140041187
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14009cb84
test eax, eax
je 0x140041214
xor eax, eax
mov byte [0x14012d9e5], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401023d6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140041210
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140139008]
test eax, eax
je 0x140041210
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14012dff0], al
mov byte [0x14012d9e4], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e2e0
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x1400411df
mov al, 1
jmp 0x140041189
Function at 0x1400414c0
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 [0x140113038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400414f3
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400415e7
bt ebx, 8
jae 0x14004150f
mov eax, ebx
and eax, 0x200
jne 0x1400415e7
cmp edi, 2
lea rax, [0x14012d9f0]
lea rcx, [0x14012dbf0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400415e7
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 0x1400415e7
cmp byte [0x14012dff0], 0
setne al
bt ebx, 8
jb 0x1400415e7
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400415e7
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x140041606
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 0x1400415d4
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.140094a1c
test eax, eax
je 0x140041631
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1400415b4
cmp dword [rsp + 0x2c], 0
jne 0x14004160b
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007e2e0
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 0x140041597
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140041617
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.1400d30b0
jmp 0x1400415e7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14004163f
test ecx, ecx
jne 0x1400415d4
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14004166e
cmp dword [rsp + 0x2c], 2
jne 0x14004167f
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14004167f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140041698
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140041685
jmp 0x14004169b
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x1400415db
Function at 0x140047a30
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 [0x140122720]
cmp ecx, 0xffffffff
je 0x140047b0a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140047b0a
mov eax, dword [0x14012f9f0]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047b14
mov rbx, qword [0x14012f9e8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140047b5a
mov rax, qword [0x14012e1d0]
inc rax
xor ecx, ecx
lea rdx, [0x14012e1e0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140047b67
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14012f9e0]
inc ecx
mov dword [0x14012f9e0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14012e1d0], 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 0x140047b7c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140047b80
jmp 0x140047a5a
lea rcx, [0x14012f9f0]
call fcn.14007cde0
cmp dword [0x14012f9f0], 0xffffffff
jne 0x140047a7f
mov ecx, 8
call fcn.14007cc84
mov rbx, rax
mov rcx, rax
call fcn.14005b060
mov qword [0x14012f9e8], rbx
lea rcx, [0x14012f9f0]
call fcn.14007ce78
jmp 0x140047a7f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140047a97
inc rcx
cmp rcx, 0x100
jne 0x140047aaa
jmp 0x140047af0
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14007e280
sub rsp, rax
mov rax, qword [0x140113038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140122720]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140047c34
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140047c97
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140080420
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007ccfc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14007fd70
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.14007e2e0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14004a320
test al, al
je 0x140047c9a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140047c72
mov eax, 0xffffffff
lock cmpxchg dword [0x140122720], ecx
je 0x140047bb8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140122720]
mov dword [rsp + 0x2c], ecx
jmp 0x140047bb8
lea rcx, [rsp + 0x2c]
call fcn.14004a320
test al, al
je 0x140047c9d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140047c9d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140047c4b
int3
int3
int3
Function at 0x140047cb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140122720]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140047cee
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 0x140047ce7
call fcn.140047b80
jmp 0x140047cce

Function at 0x14004a320
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 0x14004a335
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14005ad10
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 [0x140113038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14005b040
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14012d610]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14005ad6e
jnp 0x14005add4
ucomisd xmm0, xmm6
jne 0x14005ad76
jnp 0x14005add0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f93e0]
subpd xmm1, xmmword [0x1400f93f0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400fe358]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007e2e0
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 0x14005ada8
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 [0x14012d620]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005aee9
mov eax, dword [0x14012d630]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005af23
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 [0x14012d628]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400fe350]
ucomisd xmm2, xmm1
ja 0x14005ad6e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14012d618]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400f93e0]
subpd xmm0, xmmword [0x1400f93f0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14012d610], xmm0
jmp 0x14005ad6e
lea rcx, [0x14012d620]
call fcn.14007cde0
cmp dword [0x14012d620], 0xffffffff
jne 0x14005ae1d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14012d618], rdx
lea rcx, [0x14012d620]
call fcn.14007ce78
jmp 0x14005ae1d
lea rcx, [0x14012d630]
call fcn.14007cde0
cmp dword [0x14012d630], 0xffffffff
jne 0x14005ae42
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14012d628], rax
lea rcx, [0x14012d630]
call fcn.14007ce78
jmp 0x14005ae42
Function at 0x140065ba0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140113038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012d828]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065c00
mov rsi, qword [0x14012d820]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007e2e0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012d828]
call fcn.14007cde0
cmp dword [0x14012d828], 0xffffffff
jne 0x140065bdc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140080420
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.14007cc84
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012d870]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065cc0
lea r8, [0x14012d840]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14003bc70
mov qword [0x14012d820], rsi
lea rcx, [0x14012d828]
call fcn.14007ce78
jmp 0x140065bdc
lea rcx, [0x14012d870]
call fcn.14007cde0
cmp dword [0x14012d870], 0xffffffff
jne 0x140065c91
xorps xmm0, xmm0
movups xmmword [0x14012d860], xmm0
movups xmmword [0x14012d850], xmm0
movups xmmword [0x14012d840], xmm0
lea rcx, [0x14012d840]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012d870]
call fcn.14007ce78
jmp 0x140065c91
Function at 0x140065d10
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140113038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012d828]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065d71
mov rax, qword [0x14012d820]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007e2e0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012d828]
call fcn.14007cde0
cmp dword [0x14012d828], 0xffffffff
jne 0x140065d4c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140080420
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.14007cc84
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012d870]
mov ecx, dword [0x1401227b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065e31
lea r8, [0x14012d840]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14003bc70
mov qword [0x14012d820], rsi
lea rcx, [0x14012d828]
call fcn.14007ce78
jmp 0x140065d4c
lea rcx, [0x14012d870]
call fcn.14007cde0
cmp dword [0x14012d870], 0xffffffff
jne 0x140065e02
xorps xmm0, xmm0
movups xmmword [0x14012d860], xmm0
movups xmmword [0x14012d850], xmm0
movups xmmword [0x14012d840], xmm0
lea rcx, [0x14012d840]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012d870]
call fcn.14007ce78
jmp 0x140065e02
Function at 0x14006e140
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 0x14006e1da
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006e1c4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006e1a1
mov qword [rsi], rdi
call fcn.140060fd0
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 0x14006e1de
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140060fd0
mov rcx, qword [rsi]
call fcn.14005aac0
mov qword [rsi], 0
jmp 0x14006e18f
mov byte [rsi + 8], 0
int3

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400725fb
xor ecx, ecx
lea r9, [0x140104d90]
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 0x1400725e0
ret

Function at 0x140078530
Capabilities:
Get thread local storage value

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