joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020fa0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1400a88a8], 0
jne 0x14002122f
mov rdi, qword [0x1400a8888]
test rdi, rdi
je 0x14002109f
test byte [0x1400a52a8], 1
je 0x14002122f
cmp byte [rdi + 0x17], 0
jns 0x140020ff8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400a88a8], rax
add rax, 1
cmp rax, 1
ja 0x14002122f
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14002122c
cmp eax, 0x104
ja 0x14002122c
mov rcx, qword [0x1400a8888]
lea rdx, [rsp + 0x40]
call fcn.14001bc5a
mov rcx, qword [0x1400a8888]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x1400211a5
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x1400211b4
jmp 0x1400211c7
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.14005e874
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.140072bf8
cmp rax, rbp
ja 0x140021252
mov rbx, rax
cmp rax, 0xb
jae 0x140021101
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x14002112d
jmp 0x140021140
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x14002125a
lea rcx, [rsi + rsi]
call fcn.14005e874
mov r15, rax
mov qword [rdi], rax
add rbp, 0x11
or rbp, rsi
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1400613e0
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x140021155
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14001be62
cmp rax, 0xffffffffffffffff
je 0x14002117d
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14001bd8a
lea rdx, [0x14008747c]
mov rcx, rdi
call fcn.14001ba8a
mov qword [0x1400a8888], rdi
test byte [0x1400a52a8], 1
jne 0x140020fef
jmp 0x14002122f
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400211c7
lea rdx, [0x140087478]
call fcn.14001ba8a
mov rcx, qword [0x1400a8888]
lea rdx, [0x14008747c]
call fcn.14001ba8a
mov rcx, qword [0x1400a8888]
cmp byte [rcx + 0x17], 0
jns 0x1400211e3
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400a88a8], rax
add rax, 1
cmp rax, 1
ja 0x14002122f
mov qword [0x1400a88a8], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005ec20
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14001a87c
call fcn.14006cdac
int3
Function at 0x140023c40
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140023cc3
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x140023c8e
call fcn.1400313b0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.140032d90
mov rcx, qword [rsi]
call fcn.140032d20
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140023cbc
mov qword [rsi], rdi
call fcn.1400313b0
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140032d50
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
push rax
invalid
cmp ch, byte [rsi]
cli
sub eax, 0xb9e03baf
outsb dx, byte [rsi]
xchg esi, eax
fucompi st(3)
invalid
pop rbx
pop rsp
invalid

Function at 0x140023e50
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 [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140023e7f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023e82
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140023ea3
test bl, bl
je 0x140023ef2
cmp byte [rdi + 8], 0
je 0x140023ee4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023ee7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x140023eba
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023ebd
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140023ed3
xor edi, edi
jmp 0x140023f6e
cmp byte [rdi + 8], 0
je 0x140023f26
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023f29
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x140023f03
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023f06
mov rcx, qword [rdi]
call fcn.140032cf0
mov rcx, qword [0x1400a8990]
mov dil, 1
test rcx, rcx
je 0x140023f6e
mov edx, eax
mov r8d, esi
call fcn.1400280c0
jmp 0x140023f6e
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140023f3c
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x140023f4d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140023f50
mov rcx, qword [rdi]
call fcn.140032cf0
mov rcx, qword [0x1400a8990]
test rcx, rcx
je 0x140023f6b
mov edx, eax
mov r8d, esi
call fcn.1400280c0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005ec20
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140029590
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 [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1400a89b8]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x1400296ff
jp 0x1400296ff
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 [0x1400a89c8]
mov ecx, dword [0x1400a8940]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002971e
mov eax, dword [0x1400a89d8]
mov ecx, dword [0x1400a8940]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140029758
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 [0x1400a89d0]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x140088840]
subpd xmm1, xmmword [0x140088850]
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 [0x140088868]
ucomisd xmm1, xmm0
ja 0x1400296ff
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1400a89c0]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x140088840]
subpd xmm1, xmmword [0x140088850]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1400a89b8], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005ec20
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1400a89c8]
call fcn.14005e9d0
cmp dword [0x1400a89c8], 0xffffffff
jne 0x140029611
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400a89c0], rdx
lea rcx, [0x1400a89c8]
call fcn.14005ea68
jmp 0x140029611
lea rcx, [0x1400a89d8]
call fcn.14005e9d0
cmp dword [0x1400a89d8], 0xffffffff
jne 0x140029636
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1400a89d0], rax
lea rcx, [0x1400a89d8]
call fcn.14005ea68
jmp 0x140029636
Function at 0x140029f00
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x1400888c0]
mov qword [rcx], rax
add rcx, 8
call fcn.140030360
lea rcx, [rsi + 0x10]
call fcn.140030360
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.140030360
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 [0x140089188]
mov qword [rsi + 0x1a8], rax
lea rcx, [rsi + 0x1b0]
call fcn.140039670
movups xmmword [rsi + 0x2e0], xmm6
mov qword [rsi + 0x2f0], 0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140035f40
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140035f40
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.140035f40
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.140001ea0
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.140023d60
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140023db0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x130], rax
mov rcx, rdi
call fcn.140023d10
mov rcx, rsi
call fcn.14002a1a0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x14002a14a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
call fcn.1400375d0
mov qword [rsp + 0x28], 0
lea r8, str.TraceLog
lea r9, [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.140037740
mov qword [0x1400a8d90], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005ec20
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14002fff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ba
call fcn.140031390
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140034d60
cmp byte [rsi + 0x17], 0
jns 0x140030046
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.140034e90
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ec20
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x140030080
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x1400300c0
xor esi, esi
jmp 0x140030125
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x1400300de
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x1400300d0
jmp 0x1400300e0
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001f930
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140020a30
mov rcx, rsi
mov rdx, rbx
call fcn.14001f9b0
mov rcx, rbx
call fcn.14001f980
mov rcx, rdi
call fcn.14001f980
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14005ec20
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret

Function at 0x140030150
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400301c0
cmp word [rsp + 0x60], 0
je 0x1400301c0
mov qword [rsp + 0x50], rdi
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x1400301a0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001f930
jmp 0x140030214
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.14001f8f0
mov rcx, rdi
call fcn.140030080
test al, al
je 0x1400301e8
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14001f910
jmp 0x14003020a
lea rax, [0x140088a60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 3
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14001f930
lea rcx, [rsp + 0x38]
call fcn.14001f980
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14005ec20
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
Function at 0x140031a00
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 0x140031bd4
mov r15, qword [r13]
mov rbx, qword [r13 + 8]
mov rcx, rbx
sub rcx, r15
jbe 0x140031a92
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 0x140031a7d
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call fcn.1400613e0
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 0x140031bd4
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 0x140031bef
mov r12, rsi
shr r12, 2
lea rcx, [rsi*8]
call fcn.14005e874
lea r11, [rax + r12*8]
mov r9, r11
lea r8, [rax + rsi*8]
sub rdi, rbx
je 0x140031bae
lea r10, [rdi - 8]
mov ecx, r10d
shr ecx, 3
add ecx, 1
and rcx, 7
je 0x140031b18
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 0x140031b00
mov rcx, rdx
jmp 0x140031b1e
mov rdx, r9
mov rcx, r9
add r11, rdi
cmp r10, 0x38
jb 0x140031baa
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 0x140031b50
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 0x140031bd1
mov rcx, r15
call fcn.14005e8b0
mov rdi, qword [r13 + 0x10]
jmp 0x140031bd4
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.14006cdac
int3
Function at 0x140031d90
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov eax, dword [0x1400a8df0]
mov ecx, dword [0x1400a8940]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140031df0
lea rsi, [0x1400a8de8]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14005ec20
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x1400a8df0]
call fcn.14005e9d0
cmp dword [0x1400a8df0], 0xffffffff
jne 0x140031dcc
lea rcx, [rsp + 0x64]
mov r8d, 0x118
xor edx, edx
call fcn.1400617f0
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.14005e874
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1400a8e28]
mov ecx, dword [0x1400a8940]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140031eb1
lea r8, [0x1400a8df8]
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r9d, edi
call fcn.140032060
mov qword [0x1400a8de8], rsi
lea rcx, [0x1400a8df0]
call fcn.14005ea68
jmp 0x140031dcc
lea rcx, [0x1400a8e28]
call fcn.14005e9d0
cmp dword [0x1400a8e28], 0xffffffff
jne 0x140031e82
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 [0x1400a8e18], xmm2
movups xmmword [0x1400a8e08], xmm1
movups xmmword [0x1400a8df8], xmm0
lea rcx, [0x1400a8e28]
call fcn.14005ea68
jmp 0x140031e82

Function at 0x140031f40
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1400a52f8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x1400a8e28]
mov ecx, dword [0x1400a8940]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140031fc3
movzx eax, word [0x1400a8df8]
cmp rax, 0xc
ja case.0x140031f92.1
xor esi, esi
lea rcx, [0x14003202c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov esi, 2
jmp case.0x140031f92.0
mov esi, 4
jmp case.0x140031f92.0
mov esi, 1
jmp case.0x140031f92.0
mov esi, 3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ec20
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1400a8e28]
call fcn.14005e9d0
cmp dword [0x1400a8e28], 0xffffffff
jne 0x140031f75
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 [0x1400a8e18], xmm2
movups xmmword [0x1400a8e08], xmm1
movups xmmword [0x1400a8df8], xmm0
lea rcx, [0x1400a8e28]
call fcn.14005ea68
jmp 0x140031f75
Function at 0x1400336f0
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push rsi
push rdi
mov eax, 0x1048
call fcn.14005ebb0
sub rsp, rax
mov rsi, r8
mov rax, qword [0x1400a52f8]
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 0x14003384a
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14003380f
mov edi, 0x3f4
cmp eax, 1
jne 0x14003384a
lea rdx, [rsp + 0x840]
jmp 0x140033840
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 0x14003384a
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001bc5a
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005ec20
mov eax, edi
add rsp, 0x1048
pop rdi
pop rsi
ret

Function at 0x140035b50
Capabilities:
Get thread local storage value

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