joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400526e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140052740
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140052749
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092d80
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140052729
int3
mov rcx, qword [rcx + 8]
jmp 0x1400526e0

Function at 0x140052750
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x1400527f3
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400527e2
cmp eax, 0xffffffff
je 0x140052807
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092d80
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140052791
mov eax, dword [rsp + 0x2c]
jmp 0x1400527c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1400527c4
int3

Function at 0x140052cd0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140052bd0
test rax, rax
jne 0x140052d0f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140052d2b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140092d80
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140076430
test al, al
jne 0x140052d3d
xor esi, esi
jmp 0x140052d0f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400e34e0
lea rcx, [rsp + 0x40]
lea rdx, [0x14011a302]
mov r8d, 0xc
call fcn.1400c5b20
mov rcx, rsi
call fcn.1400e3560
jmp 0x140052d39

Function at 0x140053210
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140052740
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140052749
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092d80
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140052729
int3
mov rcx, qword [rcx + 8]
jmp 0x1400526e0
Function at 0x140058840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140058810]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140145e58]
lea rdx, [0x1400586b0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140058950
cmp dword [0x140145e60], 0
jne 0x140058940
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140145e64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400588ec
mov ecx, 1
mov edx, 0x28
call fcn.1400667b0
test rax, rax
je 0x140058940
mov r14, rax
mov ecx, dword [0x140145e64]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140058938
lea r15, [0x140145e68]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140145e70]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092d80
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140066710
mov rcx, rsi
mov rax, rdi
call qword [0x140152008]
xor esi, esi
jmp 0x14005891c
call fcn.1400aa390
int3

Function at 0x140058d20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140058d5c
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 0x140058d66
add rdi, rbx
sub rsi, rbx
jne 0x140058d3a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400aa390
int3
Function at 0x14005b950
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14005ba72
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14005baa8
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
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 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14005bab0
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 edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14005bab4
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14005baba
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14005b9ac
xor eax, eax
jmp 0x14005ba41
mov dl, byte [r8 + 0x19]
jmp 0x14005baa1
cmp byte [r8 + 0x1a], 0
je 0x14005baa5
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14005baa5
cmp ecx, 0x666f736f
jne 0x14005baa5
cmp edx, 0x76482074
jne 0x14005baa5
mov byte [r8 + 0x19], 1
jmp 0x14005baa5
Function at 0x14005bd80
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 [0x14013be00]
cmp ecx, 0xffffffff
je 0x14005be5a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14005be5a
mov eax, dword [0x140147720]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005be64
mov rbx, qword [0x140147718]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005beaa
mov rax, qword [0x140145f08]
inc rax
xor ecx, ecx
lea rdx, [0x140145f10]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14005beb7
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140147710]
inc ecx
mov dword [0x140147710], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140145f08], 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 0x14005becc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005bed0
jmp 0x14005bdaa
lea rcx, [0x140147720]
call fcn.1400919c0
cmp dword [0x140147720], 0xffffffff
jne 0x14005bdcf
mov ecx, 8
call fcn.14009186c
mov rbx, rax
mov rcx, rax
call fcn.140076970
mov qword [0x140147718], rbx
lea rcx, [0x140147720]
call fcn.140091a58
jmp 0x14005bdcf
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14005bde7
inc rcx
cmp rcx, 0x100
jne 0x14005bdfa
jmp 0x14005be40
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140092d20
sub rsp, rax
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14013be00]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14005bf84
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14005bfe7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140094eb0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400918dc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140094800
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.140092d80
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14005de40
test al, al
je 0x14005bfea
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14005bfc2
mov eax, 0xffffffff
lock cmpxchg dword [0x14013be00], ecx
je 0x14005bf08
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14013be00]
mov dword [rsp + 0x2c], ecx
jmp 0x14005bf08
lea rcx, [rsp + 0x2c]
call fcn.14005de40
test al, al
je 0x14005bfed
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14005bfed
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14005bf9b
int3
int3
int3
Function at 0x14005c000
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14013be00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005c03e
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 0x14005c037
call fcn.14005bed0
jmp 0x14005c01e

Function at 0x14005ddf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14005de2c
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 0x14005de36
add rdi, rbx
sub rsi, rbx
jne 0x14005de0a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x14005de40
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 0x14005de55
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140065f90
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 0x14006602a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140066014
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140065ff1
mov qword [rsi], rdi
call fcn.140071f90
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 0x14006602e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140071f90
mov rcx, qword [rsi]
call fcn.140073cd0
mov qword [rsi], 0
jmp 0x140065fdf
mov byte [rsi + 8], 0
int3
Function at 0x140066250
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x40], rax
movaps xmm0, xmmword [0x14010fbd0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x38]
mov rcx, r14
mov r9d, 0x4d
call fcn.140071f70
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.1400737a0
mov dword [rsp + 0x34], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x1400662e2
mov rbx, qword [rbx]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140066456
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.14009186c
mov rdi, rax
lea r15, [rax + r14]
xor eax, eax
nop dword [rax]
mov rcx, rdi
add rcx, rax
je 0x140066475
mov byte [rcx], 0
inc rax
cmp r14, rax
jne 0x140066310
mov edx, dword [rsp + 0x34]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14006645f
lea r8, [rsp + 0x38]
mov qword [r8], 0
lea r9, [rsp + 0x5c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14006645f
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x14006645f
mov ecx, 0x38
call fcn.14009186c
mov rbx, rax
movzx r12d, word [r14]
movzx ebp, word [r14 + 2]
lea rax, fcn.140029540
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
movabs r14, 0xfffffffc00000000
mov rax, rdi
and rax, r14
cmp rax, qword [0x14013a148]
jne 0x1400663cb
mov rcx, rdi
call fcn.14005f980
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r12w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x38]
mov qword [r8], 0
lea r9, [rsp + 0x5c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1401134d2]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400664a1
mov rdi, qword [rsp + 0x38]
and r14, rdi
cmp r14, qword [0x14013a148]
jne 0x140066420
mov rcx, rdi
call fcn.14005f980
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
lea rcx, [rsp + 0x60]
call fcn.1400739e0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140092d80
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsi], 0
jmp 0x140066427
mov qword [rsi], 0
test rdi, rdi
je 0x140066427
mov rcx, rdi
call fcn.1400918a8
jmp 0x140066427
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400c6370
int3
Function at 0x14006d530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [0x14013eae0]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x14006d68d
mov rsi, rcx
lea r14, [0x140113870]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x14010fbd0]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov rax, r12
shl rax, 4
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rax + r14]
test rdx, rdx
je 0x14006d69f
mov r13, qword [rax + r14 + 8]
mov byte [rsp + 0x47], r13b
cmp rbx, rdx
ja 0x14006d5cc
lea rax, [rsp + r13*2]
add rax, 0x30
cmp rax, rdx
ja 0x14006d6cb
lea r8, [r13*2]
mov rcx, rbx
call fcn.140094800
mov word [rsp + r13*2 + 0x30], 0
movzx eax, byte [rsp + 0x47]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rsp + 0x30]
mov r8, rbx
cmovs rdx, qword [rsp + 0x38]
cmovs r8, rcx
mov r9, qword [rsi + 8]
cmp r9, rdx
mov r10, rdx
cmovb r10, r9
test r10, r10
js 0x14006d69c
cmp rdx, r9
ja 0x14006d672
mov bpl, 1
test rdx, rdx
je 0x14006d691
mov r9, qword [rsi]
xor r10d, r10d
movzx r11d, word [r9 + r10*2]
cmp r11w, word [r8 + r10*2]
jne 0x14006d672
inc r10
cmp rdx, r10
jne 0x14006d62c
mov rdi, rdx
test al, al
js 0x14006d695
test bpl, bpl
je 0x14006d676
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140092d80
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14006d643
inc r12
movzx eax, byte [0x14013eae0]
xor rax, 3
cmp r12, rax
jb 0x14006d58e
xor edi, edi
jmp 0x14006d64c
xor edi, edi
jmp 0x14006d643
call fcn.1400918a8
jmp 0x14006d647
int3
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x136
call fcn.1400c6370
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0x138
call fcn.1400c6370
int3
Function at 0x140073270
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 [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140074070
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14013f450]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400732ce
jnp 0x140073334
ucomisd xmm0, xmm6
jne 0x1400732d6
jnp 0x140073330
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401137b0]
subpd xmm1, xmmword [0x1401137c0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140114e68]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092d80
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 0x140073308
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 [0x14013f460]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073449
mov eax, dword [0x14013f470]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073483
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 [0x14013f468]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140114e60]
ucomisd xmm2, xmm1
ja 0x1400732ce
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14013f458]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1401137b0]
subpd xmm0, xmmword [0x1401137c0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14013f450], xmm0
jmp 0x1400732ce
lea rcx, [0x14013f460]
call fcn.1400919c0
cmp dword [0x14013f460], 0xffffffff
jne 0x14007337d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14013f458], rdx
lea rcx, [0x14013f460]
call fcn.140091a58
jmp 0x14007337d
lea rcx, [0x14013f470]
call fcn.1400919c0
cmp dword [0x14013f470], 0xffffffff
jne 0x1400733a2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14013f468], rax
lea rcx, [0x14013f470]
call fcn.140091a58
jmp 0x1400733a2
Function at 0x140073d00
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013f498]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073d60
mov rsi, qword [0x14013f490]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140092d80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013f498]
call fcn.1400919c0
cmp dword [0x14013f498], 0xffffffff
jne 0x140073d3c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140094eb0
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.14009186c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013f4e0]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073e20
lea r8, [0x14013f4b0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140036ad0
mov qword [0x14013f490], rsi
lea rcx, [0x14013f498]
call fcn.140091a58
jmp 0x140073d3c
lea rcx, [0x14013f4e0]
call fcn.1400919c0
cmp dword [0x14013f4e0], 0xffffffff
jne 0x140073df1
xorps xmm0, xmm0
movups xmmword [0x14013f4d0], xmm0
movups xmmword [0x14013f4c0], xmm0
movups xmmword [0x14013f4b0], xmm0
lea rcx, [0x14013f4b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013f4e0]
call fcn.140091a58
jmp 0x140073df1

Function at 0x140076090
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140075f50
mov qword [rsi], 0
test rax, rax
je 0x1400760e3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140076117
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400760db
mov qword [rsi], rbx
call fcn.140071f90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14006ae40
lea rcx, [rsi + 0x20]
call fcn.1400827b0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140071f90
mov rcx, qword [rsi]
call fcn.140073cd0
mov qword [rsi], 0
jmp 0x1400760c9
Function at 0x140084390
Capabilities:
Encode data using xor
Hash data with crc32

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