joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e41f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14010d138]
test ecx, ecx
je 0x1400e421d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e4236
cmp qword [rax + 8], 0
je 0x1400e4236
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d120]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e420c
mov ecx, dword [0x14010d138]
test ecx, ecx
je 0x1400e42ec
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400e4309
test rax, rax
jne 0x1400e42a2
movzx eax, byte [0x141934140]
mov edx, 0x18
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400e432a
lea rcx, [0x14010d120]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010d138]
test ecx, ecx
je 0x1400e4311
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400e4217
test rcx, rcx
je 0x1400e4217
lock dec qword [rcx]
jne 0x1400e4217
mov rsi, rax
call fcn.1400f7e50
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d120]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e4255
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d120]
mov rsi, rax
call fcn.1400e94f0
mov ecx, eax
mov rax, rsi
jmp 0x1400e4294
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14010d0c0]
test ecx, ecx
je 0x1400e435d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e4376
cmp qword [rax + 8], 0
je 0x1400e4376
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d0a8]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e434c
mov ecx, dword [0x14010d0c0]
test ecx, ecx
je 0x1400e442c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400e4449
test rax, rax
jne 0x1400e43e2
movzx eax, byte [0x141934140]
mov edx, 0x18
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400e446a
lea rcx, [0x14010d0a8]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010d0c0]
test ecx, ecx
je 0x1400e4451
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400e4357
test rcx, rcx
je 0x1400e4357
lock dec qword [rcx]
jne 0x1400e4357
mov rsi, rax
call fcn.1400e3ef0
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d0a8]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e4395
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d0a8]
mov rsi, rax
call fcn.1400e94f0
mov ecx, eax
mov rax, rsi
jmp 0x1400e43d4
ud2
Function at 0x1400e4590
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x141934140]
mov edx, 0x10
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400e4658
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400e4660]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400e464b
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400e4626
cmp qword [rbx + 0x10], 0x11
jb 0x1400e4615
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rdi
call fcn.1401034d0
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rsi
call fcn.1401034d0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14010d0e0]
test ecx, ecx
je 0x1400e489e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e4826
cmp byte [rax + 8], 0
jne 0x1400e4894
mov ecx, dword [0x14010d0e0]
test ecx, ecx
je 0x1400e48c0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400e48dd
test rax, rax
jne 0x1400e488e
movzx eax, byte [0x141934140]
mov edx, 0x10
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400e48fb
lea rcx, [0x14010d0c8]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x14010d0e0]
test ecx, ecx
je 0x1400e48e5
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d0c8]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e4820
jmp 0x1400e4826
lea rcx, [0x14010d0c8]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e4845
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010d0c8]
mov rsi, rax
call fcn.1400e94f0
mov ecx, eax
mov rax, rsi
jmp 0x1400e4880
ud2
Function at 0x1400e6640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.1400e3100
mov rax, qword [rsp + 0x40]
cmp rax, r14
jne 0x1400e6673
mov rax, qword [rsp + 0x48]
jmp 0x1400e66a0
movups xmm0, xmmword [rsp + 0x48]
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400e8ad0
mov rbx, qword [rsp + 0x28]
cmp rbx, r14
jne 0x1400e6709
mov rax, qword [rsp + 0x30]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400e66fa
test rcx, rcx
je 0x1400e66fa
lea rdi, [rax - 1]
mov rbx, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, rbx
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400e66e9
cmp qword [r15 + 0x10], 0x11
jb 0x1400e66d8
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rbx
call fcn.1401034d0
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rdi
call fcn.1401034d0
mov qword [rsi], r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400e672d
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1400e66fd
mov qword [rsi], r14
test rbx, rbx
je 0x1400e66fd
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1401034d0
Function at 0x1400e8c60
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x141929498]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400e8cca
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400e8cd9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400e8d10
cmp eax, 0x103
je 0x1400e8d1a
test eax, eax
js 0x1400e8cf6
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400e8d10
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1419294f8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400e5120
mov rcx, rax
call fcn.1400e51d0
mov ecx, 7
int 0x29
ud2

Function at 0x1400e8e50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x141929498]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400e8ec1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400e8ef7
test eax, eax
js 0x1400e8ed2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400e8eea
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1419294f8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400e5120
mov rcx, rax
call fcn.1400e51d0
mov ecx, 7
int 0x29
ud2
Function at 0x1400e94f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400e9575
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x1400e95ac
cmp dword [rsp + 0x2c], 0
je 0x1400e959d
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400e95ae
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x141934100]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x141934100], rsi
jne 0x1400e9550
mov byte [0x1419340f8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400e95a2
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400e95ac
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400e95a2
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400e95a2
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14010d110]
test ecx, ecx
je 0x1400e96ac
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e95ef
cmp qword [rax + 8], 0
jne 0x1400e96a6
mov ecx, dword [0x14010d110]
test ecx, ecx
je 0x1400e96ce
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400e96eb
test rax, rax
jne 0x1400e965f
movzx eax, byte [0x141934140]
mov edx, 0x20
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400e970d
lea rcx, [0x14010d0f8]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010d110]
test ecx, ecx
je 0x1400e96f4
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x1400e9678
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400e969a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x1400e96ed
lea rcx, [0x14010d0f8]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e95e4
jmp 0x1400e95ef
lea rcx, [0x14010d0f8]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e960e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x14010d0f8]
mov rdi, rax
call fcn.1400e94f0
mov ecx, eax
mov rax, rdi
jmp 0x1400e9651
ud2
Function at 0x1400f87d0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xe0
movdqa xmmword [rsp + 0xd0], xmm7
movdqa xmmword [rsp + 0xc0], xmm6
mov rsi, rdx
mov rdi, rcx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [rsp + 0x80]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1400f8842
mov ebx, eax
lea rcx, [rsp + 0x80]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400f88bf
movdqa xmm7, xmmword [rsp + 0x80]
movdqa xmm6, xmmword [rsp + 0x90]
movdqu xmmword [rsp + 0xb0], xmm6
movdqu xmmword [rsp + 0xa0], xmm7
mov rax, qword [0x141934138]
test rax, rax
je 0x1400f88ff
test eax, 0x4000
jne 0x1400f890f
pshufd xmm0, xmm7, 0xee
pshufd xmm1, xmm6, 0xee
movq rax, xmm7
movq rcx, xmm0
movq rdx, xmm6
movq r8, xmm1
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
jmp 0x1400f892d
and ebx, 0x7fffffff
je 0x1400f8842
movzx eax, byte [0x141934140]
mov edx, 4
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400f89cb
mov dword [rax], ebx
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rax
call fcn.1401034d0
jmp 0x1400f898f
call fcn.1400ee490
test eax, 0x4000
je 0x1400f8881
lea r8, [0x141929aa0]
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
call fcn.14004ba30
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rcx
mov qword [rdi], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x20], r8
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
jmp fcn.140049790
ud2
Function at 0x1400fa3f0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400fa55e
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test rbp, rbp
je 0x1400fa534
shl rbp, 3
mov r15d, 8
xor esi, esi
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x80]
xor r12d, r12d
jmp 0x1400fa4a2
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [r15 + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r15 + rax*8], xmm0
mov r12, qword [rsp + 0x38]
inc r12
mov qword [rsp + 0x38], r12
add rsi, 8
cmp rbp, rsi
je 0x1400fa534
mov r13, qword [rdi + rsi]
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], rax
mov word [rsp + 0x90], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.1400fe630
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x28]
jne 0x1400fa470
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.1400fdcb0
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
jmp 0x1400fa470
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
test rax, rax
jne 0x1400fa546
call sub.KERNEL32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x1400fa575
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400fced0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx]
mov rbx, qword [rcx + 0x18]
movdqa xmm0, xmmword [rdi]
pmovmskb eax, xmm0
not eax
lea r14, [rdi + 0x10]
jmp 0x1400fcf1d
tzcnt ecx, eax
shl ecx, 5
mov rdx, rdi
sub rdx, rcx
lea ebp, [rax - 1]
and ebp, eax
mov rcx, qword [rdx - 8]
call sub.pdh.dll_PdhRemoveCounter
mov eax, ebp
sub rbx, 1
jb 0x1400fcf4f
test ax, ax
jne 0x1400fcf00
nop dword [rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rdi, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x1400fcf30
not eax
jmp 0x1400fcf00
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400fcf66
call sub.KERNEL32.dll_CloseHandle
test eax, eax
je 0x1400fcf7f
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x1400fcf92
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400fcf74
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x14010b350
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]
Function at 0x1400fe1f0
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm7
movaps xmmword [rsp + 0x1b0], xmm6
mov rsi, rcx
xor ecx, ecx
call fcn.1400e95c0
test rax, rax
je 0x1400fe4aa
movups xmm7, xmmword [rax]
inc qword [rax]
movzx eax, byte [0x141934140]
mov edx, 0x56410
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400fe4aa
mov rdi, rax
add rdi, 0x56000
mov r8d, 0x410
mov rcx, rdi
mov dl, 0xff
call sub.msvcrt.dll_memset
movzx eax, byte [0x141934140]
mov edx, 9
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400fe4aa
movabs rcx, 0x5043206c61746f54
mov qword [rax], rcx
mov byte [rax + 8], 0x55
xorps xmm6, xmm6
movups xmmword [rsp + 0xb8], xmm6
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], 0x3ff
mov qword [rsp + 0x130], 0x380
mov qword [rsp + 0x138], 0
movups xmmword [rsp + 0x140], xmm7
movups xmmword [rsp + 0x150], xmm6
movups xmmword [rsp + 0x160], xmm6
mov qword [rsp + 0x90], 9
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 9
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 1
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], 0
movabs rax, 0x8000000000000000
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 8
mov qword [rsp + 0x110], 0
mov byte [rsp + 0x118], 0
mov qword [rsp + 0x170], 0
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x1400fe3b4
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x1400fe44e
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsp + 0x160], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsp + 0x168], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140101ab0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140101ec0
mov r8d, 0x120
mov rcx, rsi
mov rdx, rdi
call sub.msvcrt.dll_memcpy
movaps xmm6, xmmword [rsp + 0x1b0]
movaps xmm7, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rdi
pop rsi
ret
ud2
Function at 0x1400fe4b0
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x1400fe4f5
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0xc0], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x1400fe58c
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0xd0], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0xd8], rax
mov rcx, rsi
call fcn.140101ab0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140101ec0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14010d188]
test ecx, ecx
je 0x1400ff3c0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400ff3d9
cmp qword [rax + 8], 0
je 0x1400ff3d9
add rax, 0x10
jmp 0x1400ff495
lea rcx, [0x14010d170]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400ff3b0
mov ecx, dword [0x14010d188]
test ecx, ecx
je 0x1400ff476
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400ff493
test rax, rax
jne 0x1400ff445
movzx eax, byte [0x141934140]
mov edx, 0x18
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400ff4b2
lea rcx, [0x14010d170]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010d188]
test ecx, ecx
je 0x1400ff49c
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x1400ff45f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400ff461
mov rcx, qword [rsi + 8]
jmp 0x1400ff461
xor ecx, ecx
lea rdx, [rax + 0x10]
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
mov rax, rdx
jmp 0x1400ff495
lea rcx, [0x14010d170]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400ff3f8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14010d170]
mov rdi, rax
call fcn.1400e94f0
mov ecx, eax
mov rax, rdi
jmp 0x1400ff437
ud2