joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046aa0
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 [0x140123038]
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.14003d6d0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140046c34
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x14010ef88]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140046c6b
lea rdx, [0x14010efd8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046c59
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140149008]
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 0x140046c61
test r12d, r12d
js 0x140046cd6
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14008cf74
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 0x140046c7e
mov rdx, qword [r14 + r15]
call fcn.1400cdcf0
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x140046ba2
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400466a0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140046bf6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140046c34
cmp r15, rbx
je 0x140046c2c
add r15, 0xffffffffffffffe8
jmp 0x140046c1a
mov rcx, qword [r15]
call fcn.14008cfc4
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x140046c2c
test r15, r15
je 0x140046caa
cmp byte [r15 + 0x17], 0
jns 0x140046c0e
jmp 0x140046c06
mov rcx, rbx
call fcn.14008cfc4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008e640
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 0x140046b54
xor r15d, r15d
xor ebx, ebx
jmp 0x140046bcf
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140046b51
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.1400c3c20
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.1400c3c20
lea rcx, [rsp + 0x30]
call fcn.1400c3b90
int3
Function at 0x140049520
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140123038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140090780
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 0x1400495b5
mov eax, eax
inc rax
cmp rax, 1
je 0x1400495b5
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140049581
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400495a2
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a59e8
test eax, eax
je 0x1400496ee
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 0x140049616
mov eax, eax
inc rax
cmp rax, 1
je 0x140049616
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400495e2
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140049603
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a59e8
test eax, eax
je 0x1400496bf
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 0x140049673
mov eax, eax
inc rax
cmp rax, 1
je 0x140049673
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140049643
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140049664
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a59e8
test eax, eax
je 0x140049694
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008e640
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400496a1
and eax, 0x7f
jmp 0x1400496a5
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140049675
mov rcx, rsi
mov rdx, r14
call fcn.1400ce700
cmp word [rax], 0x5c
jne 0x140049673
jmp 0x140049675
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400496cc
and eax, 0x7f
jmp 0x1400496d0
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140049675
mov rcx, rsi
mov rdx, r14
call fcn.1400ce700
cmp word [rax], 0x5c
jne 0x140049616
jmp 0x140049675
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400496fb
and eax, 0x7f
jmp 0x1400496ff
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140049675
mov rcx, rsi
mov rdx, r14
call fcn.1400ce700
cmp word [rax], 0x5c
jne 0x1400495b5
jmp 0x140049675
Function at 0x14004bbd0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013da18]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004bc0b
movzx eax, word [0x14013d9e8]
cmp eax, 9
jne 0x14004bc53
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14013da18]
call fcn.14008d0f0
cmp dword [0x14013da18], 0xffffffff
jne 0x14004bbf5
xorps xmm0, xmm0
movups xmmword [0x14013da08], xmm0
movups xmmword [0x14013d9f8], xmm0
movups xmmword [0x14013d9e8], xmm0
lea rcx, [0x14013d9e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013da18]
call fcn.14008d188
jmp 0x14004bbf5
test eax, eax
je 0x14004bc06
cmp eax, 6
jne 0x14004bc63
mov eax, 2
jmp 0x14004bc06
cmp eax, 0xc
jne 0x14004bc6f
mov eax, 3
jmp 0x14004bc06
mov eax, 4
jmp 0x14004bc06
Function at 0x14004d370
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 0x14004d465
cmp qword [rsi], 0
jne 0x14004d465
cmp dword [rsi + 0x14], 0
jne 0x14004d465
cmp qword [rsi + 8], 0
jne 0x14004d465
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14004d3e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004d44c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14004d3dc
mov qword [rsi], r14
call fcn.140076760
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14004d41e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14004d434
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14004d416
mov qword [rsi + 8], r14
call fcn.140076760
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.140076760
mov rcx, qword [rsi + 8]
call fcn.14006ac80
mov qword [rsi + 8], 0
jmp 0x14004d403
call fcn.140076760
mov rcx, qword [rsi]
call fcn.14006ac80
mov qword [rsi], 0
jmp 0x14004d3ca
mov rcx, rsi
call fcn.1400f0290
mov rax, qword [rsi]
jmp 0x14004d3aa
Function at 0x140050fd0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140123038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x140108160]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14005114c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14013e010]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400adeec
mov rcx, rbx
call fcn.1400ada98
sub r14, rax
lea rdx, [0x14010acce]
mov rcx, rbx
mov r8, r14
call fcn.1400adeec
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140090780
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 0x1400510ac
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400adf34
test eax, eax
je 0x140051174
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 0x1400510e7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400adf34
test eax, eax
je 0x140051174
xor eax, eax
mov byte [0x14013dc09], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011317c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140051170
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140149008]
test eax, eax
je 0x140051170
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14013e210], al
mov byte [0x14013dc08], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008e640
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14005113f
mov al, 1
jmp 0x1400510e9
Function at 0x140051420
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 [0x140123038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140051453
mov rax, qword [rsi + 8]
test rax, rax
je 0x140051547
bt ebx, 8
jae 0x14005146f
mov eax, ebx
and eax, 0x200
jne 0x140051547
cmp edi, 2
lea rax, [0x14013dc10]
lea rcx, [0x14013de10]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140051547
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 0x140051547
cmp byte [0x14013e210], 0
setne al
bt ebx, 8
jb 0x140051547
shr ebx, 9
and ebx, 1
or bl, al
je 0x140051547
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x140051566
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 0x140051534
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400a59e8
test eax, eax
je 0x140051591
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140051514
cmp dword [rsp + 0x2c], 0
jne 0x14005156b
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008e640
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 0x1400514f7
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140051577
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.1400e31c0
jmp 0x140051547
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14005159f
test ecx, ecx
jne 0x140051534
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400515ce
cmp dword [rsp + 0x2c], 2
jne 0x1400515df
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x1400515df
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x1400515f8
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1400515e5
jmp 0x1400515fb
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x14005153b
Function at 0x140055d50
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 [0x140132790]
cmp ecx, 0xffffffff
je 0x140055e2a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140055e2a
mov eax, dword [0x14013fab0]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055e34
mov rbx, qword [0x14013faa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140055e7a
mov rax, qword [0x14013e298]
inc rax
xor ecx, ecx
lea rdx, [0x14013e2a0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140055e87
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14013faa0]
inc ecx
mov dword [0x14013faa0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14013e298], 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 0x140055e9c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140055ea0
jmp 0x140055d7a
lea rcx, [0x14013fab0]
call fcn.14008d0f0
cmp dword [0x14013fab0], 0xffffffff
jne 0x140055d9f
mov ecx, 8
call fcn.14008cf74
mov rbx, rax
mov rcx, rax
call fcn.14006b230
mov qword [0x14013faa8], rbx
lea rcx, [0x14013fab0]
call fcn.14008d188
jmp 0x140055d9f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140055db7
inc rcx
cmp rcx, 0x100
jne 0x140055dca
jmp 0x140055e10
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14008e5e0
sub rsp, rax
mov rax, qword [0x140123038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140132790]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140055f54
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140055fb7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140090780
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14008d00c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400900d0
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.14008e640
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140058290
test al, al
je 0x140055fba
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140055f92
mov eax, 0xffffffff
lock cmpxchg dword [0x140132790], ecx
je 0x140055ed8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140132790]
mov dword [rsp + 0x2c], ecx
jmp 0x140055ed8
lea rcx, [rsp + 0x2c]
call fcn.140058290
test al, al
je 0x140055fbd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140055fbd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140055f6b
int3
int3
int3
Function at 0x140055fd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140132790]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005600e
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 0x140056007
call fcn.140055ea0
jmp 0x140055fee

Function at 0x140058290
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 0x1400582a5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14006aed0
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 [0x140123038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14006b200
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14013d690]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14006af2e
jnp 0x14006af94
ucomisd xmm0, xmm6
jne 0x14006af36
jnp 0x14006af90
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140109bb0]
subpd xmm1, xmmword [0x140109bc0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x14010e8a8]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008e640
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 0x14006af68
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 [0x14013d6a0]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006b0a9
mov eax, dword [0x14013d6b0]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006b0e3
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 [0x14013d6a8]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x14010e8a0]
ucomisd xmm2, xmm1
ja 0x14006af2e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14013d698]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140109bb0]
subpd xmm0, xmmword [0x140109bc0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14013d690], xmm0
jmp 0x14006af2e
lea rcx, [0x14013d6a0]
call fcn.14008d0f0
cmp dword [0x14013d6a0], 0xffffffff
jne 0x14006afdd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14013d698], rdx
lea rcx, [0x14013d6a0]
call fcn.14008d188
jmp 0x14006afdd
lea rcx, [0x14013d6b0]
call fcn.14008d0f0
cmp dword [0x14013d6b0], 0xffffffff
jne 0x14006b002
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14013d6a8], rax
lea rcx, [0x14013d6b0]
call fcn.14008d188
jmp 0x14006b002
Function at 0x14007abc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140123038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013d9d0]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007ac20
mov rsi, qword [0x14013d9c8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008e640
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013d9d0]
call fcn.14008d0f0
cmp dword [0x14013d9d0], 0xffffffff
jne 0x14007abfc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140090780
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.14008cf74
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013da18]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007ace0
lea r8, [0x14013d9e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14004bc80
mov qword [0x14013d9c8], rsi
lea rcx, [0x14013d9d0]
call fcn.14008d188
jmp 0x14007abfc
lea rcx, [0x14013da18]
call fcn.14008d0f0
cmp dword [0x14013da18], 0xffffffff
jne 0x14007acb1
xorps xmm0, xmm0
movups xmmword [0x14013da08], xmm0
movups xmmword [0x14013d9f8], xmm0
movups xmmword [0x14013d9e8], xmm0
lea rcx, [0x14013d9e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013da18]
call fcn.14008d188
jmp 0x14007acb1
Function at 0x14007ad30
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140123038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013d9d0]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007ad91
mov rax, qword [0x14013d9c8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008e640
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013d9d0]
call fcn.14008d0f0
cmp dword [0x14013d9d0], 0xffffffff
jne 0x14007ad6c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140090780
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.14008cf74
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013da18]
mov ecx, dword [0x140132828]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007ae51
lea r8, [0x14013d9e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14004bc80
mov qword [0x14013d9c8], rsi
lea rcx, [0x14013d9d0]
call fcn.14008d188
jmp 0x14007ad6c
lea rcx, [0x14013da18]
call fcn.14008d0f0
cmp dword [0x14013da18], 0xffffffff
jne 0x14007ae22
xorps xmm0, xmm0
movups xmmword [0x14013da08], xmm0
movups xmmword [0x14013d9f8], xmm0
movups xmmword [0x14013d9e8], xmm0
lea rcx, [0x14013d9e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013da18]
call fcn.14008d188
jmp 0x14007ae22

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x14008018b
xor ecx, ecx
lea r9, [0x140112be0]
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 0x140080170
ret
Function at 0x140081bc0
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 0x140081c5a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140081c44
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140081c21
mov qword [rsi], rdi
call fcn.140076760
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 0x140081c5e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140076760
mov rcx, qword [rsi]
call fcn.14006ac80
mov qword [rsi], 0
jmp 0x140081c0f
mov byte [rsi + 8], 0
int3

Function at 0x1400883c0
Capabilities:
Get thread local storage value

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