joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e360
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x558
mov r15d, r8d
mov r14, rdx
mov rdx, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov qword [rsp + 0x20], r14
xor ebp, ebp
lea rsi, [rsp + 0x290]
mov rcx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.1400300c0
lea rdi, [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
call fcn.1400301f0
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x14002e3cc
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14002e502
lea rsi, [rsp + 0x290]
lea rbx, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x14002e3fc
mov r13d, ebp
test rax, rax
je 0x14002e502
mov rcx, rsi
mov rdx, rbx
call fcn.140030160
mov edx, dword [rsp + 0x40]
test dl, 1
je 0x14002e43d
test r15b, r15b
jne 0x14002e425
mov rcx, rbx
call fcn.14002ff00
test al, al
jne 0x14002e43d
mov edx, dword [rsp + 0x40]
and edx, 0xfffffffe
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x14002e437
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call fcn.14002ff00
test al, al
je 0x14002e490
xor ebp, ebp
test r15b, r15b
je 0x14002e4be
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.14002e360
mov ebp, eax
test eax, eax
jne 0x14002e4be
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x14002e473
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14002e4be
jmp 0x14002e4a8
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x14002e49f
mov rcx, qword [rsp + 0x28]
call r12
xor ebp, ebp
test eax, eax
jne 0x14002e4be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
or eax, 1
cmp eax, 3
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, rbx
call fcn.140003fe0
mov rcx, rsi
mov rdx, rbx
call fcn.1400301f0
mov rcx, rdi
mov rdx, rbx
call fcn.140028560
mov rcx, rbx
call fcn.140028530
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x14002e3f0
mov rax, qword [rsp + 0x30]
jmp 0x14002e3f0
lea rcx, [rsp + 0x28]
call fcn.140028530
lea rcx, [rsp + 0x290]
call fcn.1400300f0
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1400ab340
mov eax, ebp
add rsp, 0x558
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002e650
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r9d, 0x56
call fcn.140029d80
lea rcx, [rsp + 0x58]
mov rdx, rdi
xor r8d, r8d
call fcn.140042460
test esi, esi
js 0x14002e6f7
lea rcx, [rsp + 0x38]
call fcn.140033c70
call fcn.140035510
test al, al
je 0x14002e6d0
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.1400355b0
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e6fe
mov esi, dword [rsp + 0x34]
jmp 0x14002e70f
mov esi, 0xffffffff
jmp 0x14002e719
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x38]
call fcn.140035580
lea rcx, [rsp + 0x58]
call fcn.140042590
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ab340
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002e740
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r9d, 0x87
call fcn.140029d80
lea rcx, [rsp + 0x58]
mov rdx, rdi
xor r8d, r8d
call fcn.140042460
test esi, esi
js 0x14002e7f4
lea rcx, [rsp + 0x38]
call fcn.140033c70
call fcn.140035510
test al, al
je 0x14002e7c0
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.1400355b0
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
call fcn.140035580
jmp 0x14002e7f9
mov esi, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.140042590
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ab340
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002e820
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x9b
call fcn.140029d80
lea rcx, [rsp + 0x48]
mov rdx, rdi
xor r8d, r8d
call fcn.140042460
lea rcx, [rsp + 0x28]
call fcn.140033c70
call fcn.140035510
test al, al
je 0x14002e893
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x28]
mov r8, rsi
xor r9d, r9d
call fcn.1400355b0
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140035580
lea rcx, [rsp + 0x48]
call fcn.140042590
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ab340
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14002f860
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14002f88f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002f892
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14002f8b3
test bl, bl
je 0x14002f902
cmp byte [rdi + 8], 0
je 0x14002f8f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002f8f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14002f8ca
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002f8cd
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14002f8e3
xor edi, edi
jmp 0x14002f97e
cmp byte [rdi + 8], 0
je 0x14002f936
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002f939
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x14002f913
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002f916
mov rcx, qword [rdi]
call fcn.140042af0
mov rcx, qword [0x140105c70]
mov dil, 1
test rcx, rcx
je 0x14002f97e
mov edx, eax
mov r8d, esi
call fcn.1400386c0
jmp 0x14002f97e
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14002f94c
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x14002f95d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002f960
mov rcx, qword [rdi]
call fcn.140042af0
mov rcx, qword [0x140105c70]
test rcx, rcx
je 0x14002f97b
mov edx, eax
mov r8d, esi
call fcn.1400386c0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ab340
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140032f46
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140032fb5
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140032ed3
test al, al
jne 0x140032fc3
add rbx, 8
cmp rbx, 0x18
jne 0x140032f83
xor esi, esi
jmp 0x140032fc6
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400ab340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140039dd0
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 [0x140102388]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140105c98]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140039f3f
jp 0x140039f3f
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 [0x140105ca8]
mov ecx, dword [0x140105b80]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140039f5e
mov eax, dword [0x140105cb8]
mov ecx, dword [0x140105b80]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140039f98
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 [0x140105cb0]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x1400dc380]
subpd xmm1, xmmword [0x1400dc390]
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 [0x1400dc3a8]
ucomisd xmm1, xmm0
ja 0x140039f3f
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140105ca0]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1400dc380]
subpd xmm1, xmmword [0x1400dc390]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x140105c98], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ab340
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140105ca8]
call fcn.1400ab0f0
cmp dword [0x140105ca8], 0xffffffff
jne 0x140039e51
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140105ca0], rdx
lea rcx, [0x140105ca8]
call fcn.1400ab188
jmp 0x140039e51
lea rcx, [0x140105cb8]
call fcn.1400ab0f0
cmp dword [0x140105cb8], 0xffffffff
jne 0x140039e76
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x140105cb0], rax
lea rcx, [0x140105cb8]
call fcn.1400ab188
jmp 0x140039e76
Function at 0x14003a740
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x1400dc400]
mov qword [rcx], rax
add rcx, 8
call fcn.140033c70
lea rcx, [rsi + 0x10]
call fcn.140033c70
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.140033c70
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 [0x1400df978]
mov qword [rsi + 0x1a8], rax
lea rcx, [rsi + 0x1b0]
call fcn.140051640
movups xmmword [rsi + 0x2e0], xmm6
mov qword [rsi + 0x2f0], 0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.14004df10
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14004df10
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.14004df10
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.140003fe0
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.14002f700
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14002f7c0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x130], rax
mov rcx, rdi
call fcn.14002f620
mov rcx, rsi
call fcn.14003a9e0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x14003a98a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
call fcn.14004f5a0
mov qword [rsp + 0x28], 0
lea r8, str.TraceLog
lea r9, [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.14004f710
mov qword [0x140106070], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ab340
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1400431f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r13, rcx
mov rdi, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
cmp rdi, rax
jne 0x1400433c4
mov r15, qword [r13]
mov rbx, qword [r13 + 8]
mov rcx, rbx
sub rcx, r15
jbe 0x140043282
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
add rax, rcx
add rax, 1
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, rbx
sub r15, rax
sub rdi, rbx
mov rsi, rdi
sar rsi, 3
test rdi, rdi
je 0x14004326d
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call fcn.1400adbe0
mov rbx, qword [r13 + 8]
lea rdi, [r15 + rsi*8]
mov qword [r13 + 0x10], rdi
lea rax, [rbx + r12*8]
mov qword [r13 + 8], rax
jmp 0x1400433c4
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov esi, 1
cmovne rsi, rcx
mov rax, rsi
shr rax, 0x3d
jne 0x1400433df
mov r12, rsi
shr r12, 2
lea rcx, [rsi*8]
call fcn.1400aaf70
lea r11, [rax + r12*8]
mov r9, r11
lea r8, [rax + rsi*8]
sub rdi, rbx
je 0x14004339e
lea r10, [rdi - 8]
mov ecx, r10d
shr ecx, 3
add ecx, 1
and rcx, 7
je 0x140043308
neg rcx
mov rdx, r9
nop word cs:[rax + rax]
mov rsi, qword [rbx]
mov qword [rdx], rsi
add rdx, 8
add rbx, 8
inc rcx
jne 0x1400432f0
mov rcx, rdx
jmp 0x14004330e
mov rdx, r9
mov rcx, r9
add r11, rdi
cmp r10, 0x38
jb 0x14004339a
sar rdi, 3
shl r12, 3
lea rsi, [r12 + rdi*8]
sub rsi, rdx
mov r15, rax
add r15, rsi
lea r10, [rdx + 0x40]
xor esi, esi
nop word cs:[rax + rax]
mov rdi, qword [rbx + rsi]
mov qword [rcx], rdi
mov rcx, qword [rbx + rsi + 8]
mov qword [rdx + rsi + 8], rcx
mov rcx, qword [rbx + rsi + 0x10]
mov qword [rdx + rsi + 0x10], rcx
mov rcx, qword [rbx + rsi + 0x18]
mov qword [rdx + rsi + 0x18], rcx
mov rcx, qword [rbx + rsi + 0x20]
mov qword [rdx + rsi + 0x20], rcx
mov rcx, qword [rbx + rsi + 0x28]
mov qword [rdx + rsi + 0x28], rcx
mov rcx, qword [rbx + rsi + 0x30]
mov qword [rdx + rsi + 0x30], rcx
mov rcx, qword [rbx + rsi + 0x38]
mov qword [rdx + rsi + 0x38], rcx
lea rcx, [r10 + rsi]
add rsi, 0x40
cmp r15, rsi
jne 0x140043340
mov r15, qword [r13]
mov qword [r13], rax
mov qword [r13 + 8], r9
mov qword [r13 + 0x10], r11
mov qword [r13 + 0x18], r8
test r15, r15
je 0x1400433c1
mov rcx, r15
call fcn.1400aafcc
mov rdi, qword [r13 + 0x10]
jmp 0x1400433c4
mov rdi, r11
mov rax, qword [r14]
mov qword [rdi], rax
add qword [r13 + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400bbef4
int3
Function at 0x140043580
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov eax, dword [0x1401060f0]
mov ecx, dword [0x140105b80]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400435e0
lea rsi, [0x1401060e8]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400ab340
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x1401060f0]
call fcn.1400ab0f0
cmp dword [0x1401060f0], 0xffffffff
jne 0x1400435bc
lea rcx, [rsp + 0x64]
mov r8d, 0x118
xor edx, edx
call fcn.1400adff0
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.1400aaf70
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x140106128]
mov ecx, dword [0x140105b80]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400436a1
lea r8, [0x1401060f8]
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r9d, edi
call fcn.140043850
mov qword [0x1401060e8], rsi
lea rcx, [0x1401060f0]
call fcn.1400ab188
jmp 0x1400435bc
lea rcx, [0x140106128]
call fcn.1400ab0f0
cmp dword [0x140106128], 0xffffffff
jne 0x140043672
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 [0x140106118], xmm2
movups xmmword [0x140106108], xmm1
movups xmmword [0x1401060f8], xmm0
lea rcx, [0x140106128]
call fcn.1400ab188
jmp 0x140043672

Function at 0x140043730
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140106128]
mov ecx, dword [0x140105b80]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400437b3
movzx eax, word [0x1401060f8]
cmp rax, 0xc
ja case.0x140043782.1
xor esi, esi
lea rcx, [0x14004381c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov esi, 2
jmp case.0x140043782.0
mov esi, 4
jmp case.0x140043782.0
mov esi, 1
jmp case.0x140043782.0
mov esi, 3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ab340
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140106128]
call fcn.1400ab0f0
cmp dword [0x140106128], 0xffffffff
jne 0x140043765
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movups xmmword [0x140106118], xmm2
movups xmmword [0x140106108], xmm1
movups xmmword [0x1401060f8], xmm0
lea rcx, [0x140106128]
call fcn.1400ab188
jmp 0x140043765
Function at 0x140048d99
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 r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140048dcd
mov rax, qword [r12 + 8]
test rax, rax
je 0x140048dfc
bt ebx, 8
jae 0x140048de1
mov eax, ebx
and eax, 0x200
jne 0x140048dfc
cmp edi, 2
lea rax, [0x140106440]
lea rcx, [0x140106640]
cmove rcx, rax
cmp word [rcx], 0
je 0x140048e1b
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ab340
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x140048dfc
cmp byte [0x140106430], 0
setne al
bt ebx, 8
jb 0x140048dfc
shr ebx, 9
and ebx, 1
or bl, al
je 0x140048dfc
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx ebp, byte [r12 + 0x17]
test bpl, bpl
js 0x140048e7c
mov rdi, r12
jmp 0x140048e85
mov rdi, qword [r12]
mov rbp, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rbx, qword [rsi + 8]
mov r13, rbp
sub r13, rbx
jb 0x140048ec2
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, rbx
call fcn.1400be2f4
test eax, eax
je 0x140048ed0
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x140048ea4
jmp 0x140048f42
movzx edx, word [rdi + rbx*2]
cmp dx, 0x5c
je 0x140048edf
test dx, dx
jne 0x140048ec2
lea rax, [rdi + rbx*2]
mov ebp, dword [rsi + 0x10]
lea rcx, str.WOW6432Node_
cmp ebp, 1
je 0x140048f0d
cmp ebp, 2
jne 0x140048f03
mov rdi, rax
lea rcx, str.WOW6432Node
jmp 0x140048f0d
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
cmp dx, 0x5c
mov dword [rsp + 0x2c], ebp
jne 0x140048f25
dec r13
cmp word [rax + 2], 0x5c
lea rax, [rax + 2]
je 0x140048f17
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov rdi, rax
jmp 0x140048ec9
cmp dword [rsp + 0x2c], 0
je 0x140048dfc
cmp byte [r12 + 0x17], 0
js 0x140048f5a
mov rax, r12
jmp 0x140048f5e
mov rax, qword [r12]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.14002382a
jmp 0x140048dfc
Function at 0x140049990
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140102388]
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 0x140049a0b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140049a0b
cmp dword [rsp + 0x38], 4
jne 0x140049a0b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ab340
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140049a30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rsi
push rdi
mov eax, 0x1048
call fcn.1400ab2d0
sub rsp, rax
mov rsi, r8
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x840]
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 0x140049aea
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140049aaf
mov edi, 0x3f4
cmp eax, 1
jne 0x140049aea
lea rdx, [rsp + 0x840]
jmp 0x140049ae0
lea rcx, [rsp + 0x840]
lea rdx, [rsp + 0x40]
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 0x140049aea
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400236fa
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400ab340
mov eax, edi
add rsp, 0x1048
pop rdi
pop rsi
ret

Function at 0x14004db20
Capabilities:
Get thread local storage value

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