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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x73
call fcn.140047740
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbp
xor r8d, r8d
call fcn.140049050
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.140044620
call fcn.140047640
test al, al
je 0x14003aca0
movsxd r9, r15d
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400476e0
mov rax, rsi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb edi, edi
or edi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.1400476b0
lea rcx, [rsp + 0x60]
call fcn.140049190
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14008f710
mov eax, edi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14003ad30
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x9c
call fcn.140047740
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.140049050
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.140044620
call fcn.140047640
test al, al
je 0x14003addc
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400476e0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400476b0
lea rcx, [rsp + 0x50]
call fcn.140049190
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14008f710
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x14003ae40
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.SetLength
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xa9
call fcn.140047740
lea rcx, [rsp + 0x50]
mov rdx, rbx
xor r8d, r8d
call fcn.140049050
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.140044620
call fcn.140047640
test al, al
je 0x14003aef0
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1400476e0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi]
xor ebx, ebx
lea r8, [rsp + 0x28]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003af5d
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003af5d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14003af5b
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
jmp 0x14003af5d
xor ebx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400476b0
lea rcx, [rsp + 0x50]
call fcn.140049190
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14008f710
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003b480
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.MapImageToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x1b
call fcn.140047740
lea rcx, [rsp + 0x50]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.140049050
mov rcx, rsi
call fcn.14003aa50
test al, al
je 0x14003b59e
lea rbx, [rsi + 0x40]
mov rcx, rsi
call fcn.14003aa60
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rbx
mov rdx, rax
call fcn.140035830
mov rcx, qword [rsi + 0x40]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14003b59e
mov qword [rsp + 0x20], 0
xor edi, edi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14003b59e
lea rcx, [0x1400bec50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140052ec8
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.140049190
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14008f710
mov eax, edi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
xor ecx, ecx
lea r8, [0x1400e3930]
mov edx, 8
mov eax, ecx
mov esi, eax
shr esi, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, esi
dec edx
jne 0x14003bb1c
mov dword [r8 + rcx*4], eax
inc rcx
cmp rcx, 0x100
jne 0x14003bb15
mov eax, 0x100
mov ecx, dword [r8 + rax*4 - 0x400]
movzx edx, cl
shr ecx, 8
xor ecx, dword [r8 + rdx*4]
mov dword [r8 + rax*4], ecx
inc rax
cmp rax, 0x800
jne 0x14003bb45
lea rax, [0x140053560]
mov qword [0x1400e5930], rax
mov qword [0x1400e3928], rax
lea rsi, [0x140053610]
mov qword [0x1400e5938], rsi
call fcn.140053720
test eax, eax
jne 0x14003bb99
mov qword [0x1400e3928], rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14003f65e
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [rcx + 8]
cmp rdi, 4
jb 0x14003f6f3
mov r12, rcx
mov r15, qword [rcx]
lea rax, [r15 + rdi]
add rax, 0xfffffffffffffffd
cmp r15, rax
jae 0x14003f6f3
add r12, 0x10
add rdi, 0xfffffffffffffffd
xor esi, esi
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x28]
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], r13
mov eax, dword [r15 + rsi]
imul rcx, rax, 0x36
mov rdx, rax
shr rdx, 0x11
add rdx, rcx
shr rax, 0x17
xor rax, rdx
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, r14
mov r8, rbx
mov r9, rbx
call fcn.14003f96c
inc rsi
cmp rdi, rsi
jne 0x14003f6b7
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008f710
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14003f824
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rcx, rdx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r8 + 8]
cmp rbx, 4
jb 0x14003f8e6
mov rbp, qword [r8]
lea rax, [rbx + rbp]
add rax, 0xfffffffffffffffd
cmp rbp, rax
jae 0x14003f8e2
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rcx
lea rdi, [rcx + 0x10]
add rbx, 0xfffffffffffffffd
xor r14d, r14d
movabs r15, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x38]
lea r13, [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x30], r15
mov eax, dword [rbp + r14]
imul rcx, rax, 0x36
mov rdx, rax
shr rdx, 0x11
add rdx, rcx
shr rax, 0x17
xor rax, rdx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov rdx, r12
mov r8, r13
call fcn.14003fed0
cmp qword [rsp + 0x38], 1
adc rsi, 0
inc r14
cmp rbx, r14
jne 0x14003f88f
test rsi, rsi
mov rcx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x20]
jne 0x14003f904
mov rbx, qword [r8 + 8]
cmp qword [rcx + 8], rbx
jne 0x14003f902
mov rdx, qword [r8]
mov rcx, qword [rcx]
mov r8, rbx
call fcn.1400923d0
xor esi, esi
test eax, eax
jne 0x14003f904
jmp 0x14003f907
xor esi, esi
inc rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008f710
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400408a8
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x140040901
cmp byte [rcx], 0x4d
jne 0x140040901
cmp byte [rcx + 1], 0x5a
jne 0x140040901
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x140040903
cmp r9, rdx
jae 0x140040903
cmp r9d, 0x40
jb 0x140040903
mov r10d, r9d
and r10d, 7
test r10, r10
jne 0x140040903
cmp byte [rcx + r9], 0x50
jne 0x140040901
cmp byte [rcx + r9 + 1], 0x45
jne 0x140040901
cmp byte [rcx + r9 + 2], 0
jne 0x140040901
cmp byte [rcx + r9 + 3], 0
je 0x140040904
xor eax, eax
ret
add r9, 0x18
xor eax, eax
sub rdx, r9
jbe 0x140040903
cmp rdx, 2
jb 0x140040903
cmp word [rcx + r9], r8w
sete al
ret
Function at 0x14004bbf0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1400e5a18]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x14004bd5f
jp 0x14004bd5f
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1400e5a28]
mov ecx, dword [0x1400e5988]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004bd7e
mov eax, dword [0x1400e5a38]
mov ecx, dword [0x1400e5988]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004bdb8
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x1400e5a30]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x1400bb000]
subpd xmm1, xmmword [0x1400bb010]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1400c0de8]
ucomisd xmm1, xmm0
ja 0x14004bd5f
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1400e5a20]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1400bb000]
subpd xmm1, xmmword [0x1400bb010]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1400e5a18], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008f710
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1400e5a28]
call fcn.14008f4c0
cmp dword [0x1400e5a28], 0xffffffff
jne 0x14004bc71
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400e5a20], rdx
lea rcx, [0x1400e5a28]
call fcn.14008f558
jmp 0x14004bc71
lea rcx, [0x1400e5a38]
call fcn.14008f4c0
cmp dword [0x1400e5a38], 0xffffffff
jne 0x14004bc96
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1400e5a30], rax
lea rcx, [0x1400e5a38]
call fcn.14008f558
jmp 0x14004bc96
Function at 0x14004c550
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x1400c0e40]
mov qword [rcx], rax
add rcx, 8
call fcn.140044620
lea rcx, [rsi + 0x10]
call fcn.140044620
mov byte [rsi + 0x18], 0
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], 0
call fcn.140044620
mov byte [rsi + 0x48], 0
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], 0
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov dword [rsi + 0xd0], 0x3f800000
mov dword [rsi + 0xd8], 0
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], 0x3f800000
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], 0x3f800000
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov qword [rsi + 0x150], 0
mov dword [rsi + 0x158], 0x3f800000
movups xmmword [rsi + 0x160], xmm6
movups xmmword [rsi + 0x170], xmm6
mov dword [rsi + 0x180], 0x3f800000
mov qword [rsi + 0x1a0], 0
movups xmmword [rsi + 0x188], xmm6
mov dword [rsi + 0x198], 0
mov eax, dword [0x1400c1d78]
mov qword [rsi + 0x1a8], rax
lea rcx, [rsi + 0x1b0]
call fcn.140061b50
movups xmmword [rsi + 0x2e0], xmm6
mov qword [rsi + 0x2f0], 0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.14005e520
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14005e520
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.14005e520
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], 0x3f800000
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x361], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
call fcn.14000e6e0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x198], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x190], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14005f100
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14005f130
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x130], rax
mov rcx, rdi
call fcn.14005f0b0
mov rcx, rsi
call fcn.14004c7f0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x14004c79a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
call fcn.14005fc30
mov qword [rsp + 0x28], 0
lea r8, str.TraceLog
lea r9, [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.14005fda0
mov qword [0x1400e5df0], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14008f710
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x140054880
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rbx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140046ac0
cmp byte [rsp + 0x67], 0
jns 0x1400548c5
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
js 0x14005496e
test ebp, ebp
je 0x140054980
mov r14b, 1
test rsi, rsi
je 0x1400549e7
mov ecx, ebp
add rcx, rcx
call fcn.14008f3dc
mov rbx, rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140046ac0
cmp byte [rsp + 0x67], 0
jns 0x140054927
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x67], 0
jns 0x140054947
mov rcx, qword [rsp + 0x50]
call fcn.14008f3a4
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x140054985
xor eax, eax
nop dword [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140054960
jmp 0x140054987
mov rcx, qword [rsp + 0x50]
call fcn.14008f3a4
test ebp, ebp
jne 0x1400548e8
xor r14d, r14d
jmp 0x1400549e7
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.140046b10
cmp byte [rsi + 0x17], 0
js 0x1400549aa
mov byte [rsi], 0
mov byte [rsi + 0x17], 0
jmp 0x1400549ce
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
cmp byte [rsi + 0x17], 0
jns 0x1400549ce
mov rcx, qword [rsi]
call fcn.14008f3a4
mov qword [rsi + 0x10], 0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14008f3e4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008f710
mov eax, r14d
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14005ac90
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov eax, dword [0x1400e63b8]
mov ecx, dword [0x1400e5988]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005acf0
lea rsi, [0x1400e63b0]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14008f710
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x1400e63b8]
call fcn.14008f4c0
cmp dword [0x1400e63b8], 0xffffffff
jne 0x14005accc
lea rcx, [rsp + 0x64]
mov r8d, 0x118
xor edx, edx
call fcn.1400928e0
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14008f354
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1400e63f0]
mov ecx, dword [0x1400e5988]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005adb1
lea r8, [0x1400e63c0]
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r9d, edi
call fcn.14005ae40
mov qword [0x1400e63b0], rsi
lea rcx, [0x1400e63b8]
call fcn.14008f558
jmp 0x14005accc
lea rcx, [0x1400e63f0]
call fcn.14008f4c0
cmp dword [0x1400e63f0], 0xffffffff
jne 0x14005ad82
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movups xmmword [0x1400e63e0], xmm2
movups xmmword [0x1400e63d0], xmm1
movups xmmword [0x1400e63c0], xmm0
lea rcx, [0x1400e63f0]
call fcn.14008f558
jmp 0x14005ad82

Function at 0x14005b5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14005b62b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14005b62b
cmp dword [rsp + 0x38], 4
jne 0x14005b62b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008f710
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14005b650
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008f6a0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1400928e0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14005b739
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14005b6eb
mov edi, 0x3f4
cmp eax, 1
jne 0x14005b739
lea rdx, [rsp + 0x840]
jmp 0x14005b72f
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1400928e0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x14005b739
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14002d828
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008f710
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14005df50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400e1640]
cmp ecx, 0xffffffff
je 0x14005df73
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
jmp 0x14005df75
xor eax, eax
add rsp, 0x28
ret