joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ccf90
Capabilities:
Check if file exists
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, 0x568
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140173760
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.1400cd220
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140301d60]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14006b980
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x1400cd028
mov rax, qword [rsp + 0x38]
jmp 0x1400cd02b
and eax, 0x7f
test rax, rax
jne 0x1400cd06d
lea rcx, [rsp + 0x30]
call fcn.14007be00
lea rcx, [rsp + 0x298]
call fcn.14014ac70
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140171860
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.140173760
mov rcx, r15
mov rdx, r14
call fcn.1400cd250
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400cd16b
mov rcx, r14
call fcn.1400cd210
test al, al
jne 0x1400cd12f
test sil, 2
jne 0x1400cd198
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x1400cd0d1
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
je 0x1400cd1bf
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400ad7f0
mov rcx, r15
mov rdx, r14
call fcn.14006b980
mov rcx, rbx
mov rdx, r14
call fcn.14007be10
mov rcx, r14
call fcn.14007be00
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400cd11b
mov rax, qword [rsp + 0x38]
jmp 0x1400cd11e
and eax, 0x7f
mov r12d, ebp
test rax, rax
jne 0x1400cd084
jmp 0x1400cd030
xor ebp, ebp
test sil, 1
je 0x1400cd0de
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8d, esi
call fcn.1400ccf90
test eax, eax
jne 0x1400cd1fc
cmp byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
jns 0x1400cd160
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400cd0d6
test sil, 1
jne 0x1400cd1db
lea rcx, [rsp + 0x48]
call fcn.1400cd210
test al, al
je 0x1400cd1d7
lea rcx, [rsp + 0x48]
call fcn.1400cd210
test al, al
je 0x1400cd0b8
xor ebp, ebp
jmp 0x1400cd0de
call fcn.14008daa0
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
lea rcx, [rsp + 0x30]
call fcn.140210470
xor ebp, ebp
test al, al
jne 0x1400cd0de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400cd0de
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x1400cd1ec
mov rcx, qword [rsp + 0x30]
jmp 0x1400cd1f1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400cd0ac
mov ebp, eax
jmp 0x1400cd0de
Function at 0x1400cd820
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140301d60]
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, [0x14030a150]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x495
call fcn.14004f270
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400cd290
cmp byte [rdi + 0x17], 0
jns 0x1400cd8a4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1400cd300
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140171860
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ce070
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x140301d60]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14030a13b]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x485
call fcn.14004f270
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400cd290
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140173760
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x1400ce177
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14016f5e8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140050770
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400d7b10
mov rcx, rsi
mov rdx, r14
call fcn.14007be10
mov rcx, r14
call fcn.14007be00
mov rcx, rbx
call fcn.14007be00
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.1400cd300
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140171860
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400d0b91
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x58], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140301d60]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
jne 0x1400d0c25
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x1400d0bd9
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140171860
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
mov cx, 6
xor edx, edx
xor r8d, r8d
call fcn.140131c36
mov edi, 0x80003
test al, al
je 0x1400d0bd0
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.14028f26e
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x1400d0bd0
Function at 0x1400d2fc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140351380]
cmp rdi, 1
jbe 0x1400d305a
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d3056
mov rcx, qword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 8]
jne 0x1400d3056
mov rcx, qword [rax + rcx]
test rsi, rsi
je 0x1400d3014
lock inc dword [rsi]
mov qword [rsp + 0x30], rsi
mov rax, qword [rcx + 0x150]
cmp rax, qword [rcx + 0x158]
jae 0x1400d30a6
test rax, rax
je 0x1400d30e4
mov qword [rax], rsi
add rax, 8
mov qword [rcx + 0x150], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140171860
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
xor ecx, ecx
jmp 0x1400d300c
lea rcx, [0x140351380]
call fcn.14006d330
test al, al
je 0x1400d3110
xorps xmm0, xmm0
movups xmmword [0x140351388], xmm0
lea rbx, [0x140351380]
lea rdi, [0x140351388]
mov rcx, rdi
xor edx, edx
call fcn.140041af0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14006d410
jmp 0x1400d2fe6
add rcx, 0x148
lea rsi, [rsp + 0x30]
mov rdx, rsi
call fcn.1401ae390
mov rsi, qword [rsi]
test rsi, rsi
je 0x1400d3040
lock dec dword [rsi]
jne 0x1400d3040
mov rcx, rsi
call fcn.14015d880
mov rcx, rsi
call fcn.14016eccc
jmp 0x1400d3040
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401c469a
mov rdi, qword [0x140351380]
jmp 0x1400d2fe6
Function at 0x1400d6610
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov ebx, 2
cmp rdx, 1
je 0x1400d663f
lea rax, [rdx - 1]
test rdx, rax
je 0x1400d67b0
mov rcx, rdx
call fcn.1400829a8
mov rbx, rax
mov r14, qword [rsi + 8]
cmp rbx, r14
jbe 0x1400d6795
mov rdi, rbx
mov rax, rdi
shr rax, 0x3d
jne 0x1400d67ab
lea rcx, [rdi*8]
call fcn.14016ecd4
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x1400d6679
call fcn.14016eccc
mov qword [rsi + 8], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x1400d667f
mov r8, qword [rsi + 0x10]
test r8, r8
je 0x1400d68c8
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x1400d67b8
cmp rcx, rdi
jb 0x1400d671d
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x1400d68c8
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1400d678c
cmp rax, rdi
jb 0x1400d6747
xor edx, edx
div rdi
mov rax, rdx
cmp rax, rcx
je 0x1400d6765
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
jne 0x1400d676a
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x1400d6727
mov rax, rcx
jmp 0x1400d675a
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
jmp 0x1400d6765
lea rdx, [rdi - 1]
and rax, rdx
jmp 0x1400d6747
jae 0x1400d68c8
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400d67c4
cvtsi2ss xmm0, rax
jmp 0x1400d67d9
call fcn.1401c93df
mov rbx, rdx
jmp 0x1400d663f
lea rax, [rdi - 1]
and rcx, rax
jmp 0x1400d671d
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.14019036c
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402eebd8]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r14, 3
jb 0x1400d688c
mov rcx, r14
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, r14
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x1400d688c
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edi, 1
shl rdi, cl
cmp rax, 2
cmovb rdi, rax
jmp 0x1400d6897
mov rcx, rax
call fcn.1400829a8
mov rdi, rax
cmp rbx, rdi
cmova rdi, rbx
cmp rdi, r14
jae 0x1400d68c8
test rdi, rdi
jne 0x1400d664f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400d68c0
call fcn.14016eccc
mov qword [rsi + 8], 0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400d69b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140173760
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 0x1400d6a45
cmp word [rsp + 0x70], 0
je 0x1400d6a45
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14016f5e8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140050770
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140171860
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 [0x140301d60]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400785c0
mov rcx, rdi
call fcn.1400d7a40
test al, al
je 0x1400d6a85
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140072d50
jmp 0x1400d6aa4
lea rax, [0x14030a0ce]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140050770
lea rcx, [rsp + 0x40]
call fcn.14007be00
jmp 0x1400d6a27
Function at 0x1400d7a40
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140173760
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x1400d7ae3
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14016f5e8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140050770
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400d7b10
mov rcx, rsi
mov rdx, r14
call fcn.14007be10
mov rcx, r14
call fcn.14007be00
mov rcx, rbx
call fcn.14007be00
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140171860
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400d7e40
Capabilities:
Check if file exists
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140078050
test al, al
jne 0x1400d7e71
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400bfea0
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xfffffffb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400d91d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1403546f8]
mov ecx, dword [0x14034fed0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d920b
movzx eax, word [0x1403546c8]
cmp eax, 9
jne 0x1400d9253
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1403546f8]
call fcn.14016f8b4
cmp dword [0x1403546f8], 0xffffffff
jne 0x1400d91f5
xorps xmm0, xmm0
movups xmmword [0x1403546e8], xmm0
movups xmmword [0x1403546d8], xmm0
movups xmmword [0x1403546c8], xmm0
lea rcx, [0x1403546c8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1403546f8]
call fcn.14016ef8c
jmp 0x1400d91f5
cmp eax, 5
jg 0x1400d9268
test eax, eax
je 0x1400d9206
cmp eax, 5
jne 0x1400d9280
mov eax, 3
jmp 0x1400d9206
cmp eax, 6
jne 0x1400d9274
mov eax, 2
jmp 0x1400d9206
cmp eax, 0xc
jne 0x1400d9280
mov eax, 4
jmp 0x1400d9206
mov eax, 5
jmp 0x1400d9206

Function at 0x1400d9bb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.140135190
mov eax, dword [0x14035aad8]
mov ecx, dword [0x14034fed0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d9bf4
movsxd rdx, esi
inc rdx
lea rcx, [0x14035aac8]
add rsp, 0x20
pop rsi
jmp fcn.140073660
lea rcx, [0x14035aad8]
call fcn.14016f8b4
cmp dword [0x14035aad8], 0xffffffff
jne 0x1400d9bdd
lea rcx, [0x14035aac8]
xor edx, edx
call fcn.140041af0
lea rcx, [0x14035aad8]
call fcn.14016ef8c
jmp 0x1400d9bdd
Function at 0x1400da400
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400da522
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x1400da558
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 3
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
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 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x1400da560
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 edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400da564
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x1400da56a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x1400da45c
xor eax, eax
jmp 0x1400da4f1
mov dl, byte [r8 + 0x19]
jmp 0x1400da551
cmp byte [r8 + 0x1a], 0
je 0x1400da555
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400da555
cmp ecx, 0x666f736f
jne 0x1400da555
cmp edx, 0x76482074
jne 0x1400da555
mov byte [r8 + 0x19], 1
jmp 0x1400da555

Function at 0x1400dc0f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp qword [0x14035d568], 0
jne 0x1400dc125
lea rcx, [0x14030c720]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14035d568], rax
test rsi, rsi
je 0x1400dc152
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 0x1400dc15c
add rdi, rbx
sub rsi, rbx
jne 0x1400dc130
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400de3b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14035aa98]
cmp rdi, 1
jbe 0x1400de3fa
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400de43f
mov rcx, qword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 8]
mov rdx, qword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14035aa98]
call fcn.14006d330
test al, al
je 0x1400de44b
xorps xmm0, xmm0
movups xmmword [0x14035aaa0], xmm0
lea rbx, [0x14035aa98]
lea rdi, [0x14035aaa0]
mov rcx, rdi
xor edx, edx
call fcn.140041af0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14006d410
jmp 0x1400de3c7
test rsi, rsi
je 0x1400de3f2
call fcn.140001120
jmp 0x1400de3d9
mov rdi, qword [0x14035aa98]
jmp 0x1400de3c7

Function at 0x1400e0270
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140352bf8]
mov ecx, dword [0x14034fed0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e02d9
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e0314
mov rcx, qword [0x140352be8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140352bf0]
mov rdx, qword [0x140352be8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov byte [rsi + 0x58], 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140352bf8]
call fcn.14016f8b4
cmp dword [0x140352bf8], 0xffffffff
jne 0x1400e0299
xorps xmm0, xmm0
movups xmmword [0x140352be8], xmm0
lea rcx, [0x140352be8]
xor edx, edx
call fcn.140041af0
lea rcx, [0x140352bf8]
call fcn.14016ef8c
jmp 0x1400e0299
test rsi, rsi
je 0x1400e02cf
call fcn.140001120
jmp 0x1400e02ab

Function at 0x1400e0320
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x140352c78]
cmp rbx, 1
jbe 0x1400e0374
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e03b9
mov rcx, qword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 8]
mov rdx, qword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140352c78]
call fcn.14006d330
test al, al
je 0x1400e03c5
xorps xmm0, xmm0
movups xmmword [0x140352c80], xmm0
lea r14, [0x140352c78]
lea rbx, [0x140352c80]
mov rcx, rbx
xor edx, edx
call fcn.140041af0
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.14006d410
jmp 0x1400e033c
test rdi, rdi
je 0x1400e0367
call fcn.140001120
jmp 0x1400e034e
mov rbx, qword [0x140352c78]
jmp 0x1400e033c
Function at 0x1400e03e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [0x14035c628]
mov ecx, dword [0x14034fed0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e0474
lea rcx, [0x14035c618]
call fcn.140084f80
test rax, rax
jne 0x1400e0453
mov ecx, 4
call fcn.14016ecd4
mov dword [rax], 0
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1400e04c0
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400e04b7
lea rsi, [0x14035c618]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140171860
mov rcx, rsi
add rsp, 0x40
pop rsi
jmp fcn.140084f80
lea rcx, [0x14035c628]
call fcn.14016f8b4
cmp dword [0x14035c628], 0xffffffff
jne 0x1400e0415
xorps xmm0, xmm0
movups xmmword [0x14035c618], xmm0
lea rcx, [0x14035c618]
lea rdx, [0x14012bb80]
call fcn.140041af0
lea rcx, [0x14035c628]
call fcn.14016ef8c
jmp 0x1400e0415
call fcn.14016eccc
jmp 0x1400e0453

Function at 0x1400e07c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx], rdx
test rdx, rdx
je 0x1400e07d5
lock inc dword [rdx + 8]
mov qword [rsi + 8], rdx
mov eax, dword [0x140352c70]
mov ecx, dword [0x14034fed0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e08dc
lea rdi, [rsi + 8]
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e091e
mov rcx, qword [0x140352c60]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x140352c68]
mov rdx, qword [0x140352c60]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x14035ab10]
mov ecx, dword [0x14034fed0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e08a1
mov ecx, dword [0x1403411e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e0931
mov rcx, qword [0x14035ab00]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14035ab08]
mov rdx, qword [0x14035ab00]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14035ab10]
call fcn.14016f8b4
cmp dword [0x14035ab10], 0xffffffff
jne 0x1400e085d
xorps xmm0, xmm0
movups xmmword [0x14035ab00], xmm0
lea rcx, [0x14035ab00]
xor edx, edx
call fcn.140041af0
lea rcx, [0x14035ab10]
call fcn.14016ef8c
jmp 0x1400e085d
lea rcx, [0x140352c70]
call fcn.14016f8b4
cmp dword [0x140352c70], 0xffffffff
jne 0x1400e07fe
xorps xmm0, xmm0
movups xmmword [0x140352c60], xmm0
lea rcx, [0x140352c60]
xor edx, edx
call fcn.140041af0
lea rcx, [0x140352c70]
call fcn.14016ef8c
jmp 0x1400e07fe
test rdi, rdi
je 0x1400e083c
call fcn.140001120
jmp 0x1400e0818
test rsi, rsi
je 0x1400e0897
call fcn.140001120
jmp 0x1400e0873