joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b650
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14d, r9d
mov rdi, r8
mov rbx, rdx
mov r15, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14006094c
mov rsi, rax
mov rax, qword [0x1400e62a0]
and rax, rbx
cmp rax, qword [0x1400e6288]
jne 0x14002b6b5
mov rcx, rbx
call fcn.1400494b0
mov qword [rsi], rbx
test rdi, rdi
setne byte [rsi + 8]
mov dword [rsi + 0xc], r14d
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14002bb40]
xor ecx, ecx
mov rdx, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x14002b71d
test rdi, rdi
je 0x14002b768
mov qword [rdi], r14
test r14, r14
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140061c90
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14002b736
mov edi, eax
cmp eax, 0x5af
je 0x14002b736
cmp edi, 0xe
jne 0x14002b773
mov rcx, r15
call fcn.1400af5a0
test rsi, rsi
je 0x14002b6f9
mov rcx, qword [rsi]
mov rax, qword [0x1400e62a0]
and rax, rcx
cmp rax, qword [0x1400e6288]
jne 0x14002b75e
call fcn.1400495f0
mov rcx, rsi
call fcn.140060988
jmp 0x14002b6f9
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002b6f9
mov eax, dword [0x1400f5070]
mov ecx, dword [0x1400f2494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002b7eb
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, edi
call fcn.140032890
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x1400f5068]
call fcn.140049450
cmp byte [rbx + 0x17], 0
jns 0x14002b73e
mov rcx, qword [rsp + 0x30]
call fcn.140060988
jmp 0x14002b73e
lea rcx, [0x1400f5070]
call fcn.140060aa0
cmp dword [0x1400f5070], 0xffffffff
jne 0x14002b794
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14002bce0
mov qword [0x1400f5068], rax
lea rcx, [0x1400f5070]
call fcn.140060b38
jmp 0x14002b794
Function at 0x14002c130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400cfa30]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1d3
call fcn.14004a5f0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004a900
cmp byte [rdi + 0x17], 0
jns 0x14002c1b4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14004a960
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140061c90
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002c1f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140063db0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x14002c293
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14007ac08
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140044f50
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140028310
mov rcx, r14
mov rdx, rsi
call fcn.1400450a0
mov rcx, rsi
call fcn.140045020
mov rcx, rbx
call fcn.140045020
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140061c90
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002c2c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140063db0
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 0x14002c355
cmp word [rsp + 0x70], 0
je 0x14002c355
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14007ac08
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140044f50
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140061c90
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400cfa30]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140044f10
mov rcx, rdi
call fcn.14002c1f0
test al, al
je 0x14002c395
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140044f30
jmp 0x14002c3b4
lea rax, [0x1400d36fa]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140044f50
lea rcx, [rsp + 0x40]
call fcn.140045020
jmp 0x14002c337
Function at 0x14002d310
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f50f0]
mov ecx, dword [0x1400f2494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002d34b
movzx eax, word [0x1400f50c0]
cmp eax, 9
jne 0x14002d393
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1400f50f0]
call fcn.140060aa0
cmp dword [0x1400f50f0], 0xffffffff
jne 0x14002d335
xorps xmm0, xmm0
movups xmmword [0x1400f50e0], xmm0
movups xmmword [0x1400f50d0], xmm0
movups xmmword [0x1400f50c0], xmm0
lea rcx, [0x1400f50c0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f50f0]
call fcn.140060b38
jmp 0x14002d335
test eax, eax
je 0x14002d346
cmp eax, 6
jne 0x14002d3a3
mov eax, 2
jmp 0x14002d346
cmp eax, 0xc
jne 0x14002d3af
mov eax, 3
jmp 0x14002d346
mov eax, 4
jmp 0x14002d346

Function at 0x14002db00
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14002dbec
cmp qword [rsi], 0
jne 0x14002dbec
cmp dword [rsi + 0x14], 0
jne 0x14002dbec
cmp qword [rsi + 8], 0
jne 0x14002dbec
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x14002db6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002dbbe
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14002db67
mov qword [rsi], rbx
call fcn.14004a610
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x14002dba9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002dbd4
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14002dba1
mov qword [rsi + 8], rbp
call fcn.14004a610
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.14004a610
mov rcx, qword [rsi]
call fcn.14004c8c0
mov qword [rsi], 0
jmp 0x14002db55
call fcn.14004a610
mov rcx, qword [rsi + 8]
call fcn.14004c8c0
mov qword [rsi + 8], 0
jmp 0x14002db8e
mov rcx, rsi
call fcn.1400ac300
mov rax, qword [rsi]
jmp 0x14002db39
Function at 0x14002e180
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1400cf918]
mov qword [rcx], rax
add rcx, 8
call fcn.14004a530
lea rcx, [rsi + 0x10]
call fcn.14004a530
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.14004a530
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
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
mov qword [rsi + 0xc0], rbx
movups xmmword [rsi + 0xc8], xmm6
movups xmmword [rsi + 0xd8], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [0x1400d493c]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.140036860
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.140033000
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.140033000
lea rcx, [rsi + 0x330]
xor edx, edx
call fcn.140033000
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
mov dword [rsi + 0x360], ebp
movups xmmword [rsi + 0x368], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
mov byte [rsi + 0x398], bl
mov dword [rsi + 0x39c], edi
mov byte [rsi + 0x3a0], bl
movups xmmword [rsi + 0x3a8], xmm6
movups xmmword [rsi + 0x3b8], xmm6
call fcn.140019c10
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.14002e3b0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14002e39b
call fcn.140036020
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400360d0
mov qword [0x1400f5518], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140103008]
jmp 0x14002e369
Function at 0x14002ff30
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x14002ff60
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14002ff6e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400298d0
lea rax, [rdx - 1]
test rdx, rax
jne 0x14002ff84
mov rdi, rdx
jmp 0x14002ff45
jae 0x14003006a
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x14002ff91
cvtsi2ss xmm0, rax
jmp 0x14002ffa6
mov rcx, rdx
call fcn.1400421a0
mov rdi, rax
jmp 0x14002ff45
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.14008dba0
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1400cfd7c]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x140030052
mov rcx, rbx
shr rcx, 1
movabs r8, 0x5555555555555555
and r8, rcx
mov rdx, rbx
sub rdx, r8
movabs r8, 0x3333333333333333
mov rcx, rdx
shr rcx, 2
and rdx, r8
and rcx, r8
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x140030052
cmp rax, 2
jb 0x14003005a
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14003005a
mov rcx, rax
call fcn.1400421a0
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14002ff4e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140031d90
Capabilities:
Query or enumerate registry value

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140061c30
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140063db0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031ed3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140031ed7
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140025220
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140061c90
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140031eb4
cmp eax, 2
jne 0x140031f1f
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140063db0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140031f26
lea rdx, [rsp + 0x40]
jmp 0x140031eaa
mov edi, 0x3f4
jmp 0x140031eb4
mov edi, 0xea
jmp 0x140031eb4

Function at 0x140032c70
Capabilities:
Get thread local storage value

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

Function at 0x140032ca0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1400e62e0]
cmp ecx, 0xffffffff
je 0x140032d70
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140032d70
mov eax, dword [0x1400f8d18]
mov ecx, dword [0x1400f2494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140032d7a
mov rbx, qword [0x1400f8d10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140032dc0
mov rax, qword [0x1400f7500]
inc rax
xor ecx, ecx
lea rdx, [0x1400f7510]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140032dcd
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1400f7500], rdi
mov qword [r15], rdi
mov eax, dword [rax + 0x10]
mov dword [r15 + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [r15], 0x100
jae 0x140032de2
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140032df0
jmp 0x140032cce
lea rcx, [0x1400f8d18]
call fcn.140060aa0
cmp dword [0x1400f8d18], 0xffffffff
jne 0x140032cf3
mov ecx, 8
call fcn.14006094c
mov rbx, rax
mov rcx, rax
call fcn.14004a530
mov qword [0x1400f8d10], rbx
lea rcx, [0x1400f8d18]
call fcn.140060b38
jmp 0x140032cf3
mov rcx, rbx
call fcn.14004a540
jmp 0x140032d0b
inc rcx
cmp rcx, 0x100
jne 0x140032d1e
jmp 0x140032d52
int3
Function at 0x140032df0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140061c30
sub rsp, rax
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400e62e0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140032ea4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140032ee2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140063db0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400609bc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140063700
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.140061c90
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140038030
test al, al
je 0x140032ee5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140032ee8
mov eax, 0xffffffff
lock cmpxchg dword [0x1400e62e0], ecx
je 0x140032e28
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400e62e0]
mov dword [rsp + 0x2c], ecx
jmp 0x140032e28
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140038030
test al, al
je 0x140032f0d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140032f0d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140032ebb
int3

Function at 0x140033ed0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.140035ff0
test al, al
jne 0x140033f58
call fcn.140035fc0
movzx edx, al
mov ecx, esi
call fcn.14002b980
mov eax, dword [0x1400f8d78]
mov ecx, dword [0x1400f2494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033f27
movsxd rdx, esi
inc rdx
lea rcx, [0x1400f8d68]
add rsp, 0x20
pop rsi
jmp fcn.14004fb90
lea rcx, [0x1400f8d78]
call fcn.140060aa0
cmp dword [0x1400f8d78], 0xffffffff
jne 0x140033f10
lea rcx, [0x1400f8d68]
xor edx, edx
call fcn.140033000
lea rcx, [0x1400f8d78]
call fcn.140060b38
jmp 0x140033f10
mov edx, 3
jmp 0x140033ee8

Function at 0x140033f60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14002b980
mov eax, dword [0x1400f8d78]
mov ecx, dword [0x1400f2494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033fa4
movsxd rdx, esi
inc rdx
lea rcx, [0x1400f8d68]
add rsp, 0x20
pop rsi
jmp fcn.14004fb90
lea rcx, [0x1400f8d78]
call fcn.140060aa0
cmp dword [0x1400f8d78], 0xffffffff
jne 0x140033f8d
lea rcx, [0x1400f8d68]
xor edx, edx
call fcn.140033000
lea rcx, [0x1400f8d78]
call fcn.140060b38
jmp 0x140033f8d
Function at 0x140035780
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400f9b70]
cmp rdi, 1
jbe 0x1400357a9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14004fb90
lea rcx, [0x1400f9b70]
call fcn.140038080
test al, al
je 0x1400357ee
xorps xmm0, xmm0
movups xmmword [0x1400f9b78], xmm0
lea rbx, [0x1400f9b70]
lea rdi, [0x1400f9b78]
mov rcx, rdi
xor edx, edx
call fcn.140033000
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140038120
jmp 0x140035797
mov rdi, qword [0x1400f9b70]
jmp 0x140035797
Function at 0x140038030
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 0x140038045
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14003a300
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400fac48], 0
jne 0x14003a33d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003a330
mov dword [rdi], eax
mov dword [0x1400fac50], eax
mov qword [0x1400fac48], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14003be50
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
push rbx
mov r8, rcx
xor ebx, ebx
xor eax, eax
xor ecx, ecx
xchg rbx, rsi
cpuid
xchg rbx, rsi
test eax, eax
jle 0x14003bf62
mov esi, eax
mov eax, 1
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r9d, ecx
mov r10d, edx
mov r11d, eax
cmp esi, 7
jb 0x14003be9d
mov eax, 7
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
and ebx, 0x20
mov dword [r8], r11d
mov eax, r11d
and eax, 0xf
mov dword [r8 + 8], eax
shr r11d, 0xc
and r11d, 3
mov dword [r8 + 4], r11d
mov eax, r10d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r10d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r10d, 0x1a
and r10b, 1
mov byte [r8 + 0xe], r10b
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 + 0x19], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14003bf99
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 ebx, ebx
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov eax, 0x80000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp eax, 0x80000006
jle 0x14003bf9d
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
shr edx, 8
and dl, 1
mov byte [r8 + 0x18], dl
test dl, dl
je 0x14003bfa3
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14003bf35
mov dl, byte [r8 + 0x18]
jmp 0x14003bf91
cmp byte [r8 + 0x19], 0
je 0x14003bf95
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
cmp ebx, 0x7263694d
jne 0x14003bf95
cmp ecx, 0x666f736f
jne 0x14003bf95
cmp edx, 0x76482074
jne 0x14003bf95
mov byte [r8 + 0x18], 1
jmp 0x14003bf95
Function at 0x14003c2e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400fad60]
cmp rdi, 1
jbe 0x14003c309
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14004fb90
lea rcx, [0x1400fad60]
call fcn.140038080
test al, al
je 0x14003c34e
xorps xmm0, xmm0
movups xmmword [0x1400fad68], xmm0
lea rbx, [0x1400fad60]
lea rdi, [0x1400fad68]
mov rcx, rdi
xor edx, edx
call fcn.140033000
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140038120
jmp 0x14003c2f7
mov rdi, qword [0x1400fad60]
jmp 0x14003c2f7

Function at 0x14003e1b0
Capabilities:
Generate random numbers via rtlgenrandom

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