joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030530
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140113508]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003056b
movzx eax, word [0x1401134d8]
cmp eax, 9
jne 0x1400305b3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140113508]
call fcn.140075230
cmp dword [0x140113508], 0xffffffff
jne 0x140030555
xorps xmm0, xmm0
movups xmmword [0x1401134f8], xmm0
movups xmmword [0x1401134e8], xmm0
movups xmmword [0x1401134d8], xmm0
lea rcx, [0x1401134d8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140113508]
call fcn.1400752c8
jmp 0x140030555
test eax, eax
je 0x140030566
cmp eax, 6
jne 0x1400305c3
mov eax, 2
jmp 0x140030566
cmp eax, 0xc
jne 0x1400305cf
mov eax, 3
jmp 0x140030566
mov eax, 4
jmp 0x140030566

Function at 0x140030d20
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140030e0e
cmp qword [rsi], 0
jne 0x140030e0e
cmp dword [rsi + 0x14], 0
jne 0x140030e0e
cmp qword [rsi + 8], 0
jne 0x140030e0e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140030d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140030de0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030d88
mov qword [rsi], r14
call fcn.140056880
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140030dca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140030df6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030dc2
mov qword [rsi + 8], r14
call fcn.140056880
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 rdi
pop rsi
pop r14
ret
call fcn.140056880
mov rcx, qword [rsi]
call fcn.1400587f0
mov qword [rsi], 0
jmp 0x140030d76
call fcn.140056880
mov rcx, qword [rsi + 8]
call fcn.1400587f0
mov qword [rsi + 8], 0
jmp 0x140030daf
mov rcx, rsi
call fcn.1400c1790
mov rax, qword [rsi]
jmp 0x140030d5a
Function at 0x1400319e0
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, [0x1400e9c10]
mov qword [rcx], rax
add rcx, 8
call fcn.1400567a0
lea rcx, [rsi + 0x10]
call fcn.1400567a0
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.1400567a0
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
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x1400f0310]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14003ac30
lea rcx, [rsi + 0x2e0]
xor edx, edx
call fcn.140037400
lea rcx, [rsi + 0x2f0]
xor edx, edx
call fcn.140037400
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140037400
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], ebp
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
mov byte [rsi + 0x368], bl
mov dword [rsi + 0x36c], edi
mov byte [rsi + 0x370], bl
movups xmmword [rsi + 0x378], xmm6
mov qword [rsi + 0x388], rbx
call fcn.140019c10
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x1400f0314], edx
je 0x140031c05
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.140061c80
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x140031c29
call fcn.14003a7e0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14003a890
mov qword [0x1401138f8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x1400f0318], edx
jne 0x140031c3c
test dword [0x1400f031c], edx
jne 0x140031c4a
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.14003aa20
jmp 0x140031bc6
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140125008]
jmp 0x140031bd3
cmp rax, 0x40
mov eax, 0x100
jmp 0x140031bbd
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140031c1e
Function at 0x140033370
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 0x1400333a0
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400333ae
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14002af90
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400333c4
mov rdi, rdx
jmp 0x140033385
jae 0x1400334b1
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400333d1
cvtsi2ss xmm0, rax
jmp 0x1400333e6
mov rcx, rdx
call fcn.14004e540
mov rdi, rax
jmp 0x140033385
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.1400a2910
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1400ed5a0]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x140033499
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x140033499
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400334a1
mov rcx, rdx
call fcn.14004e540
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14003338e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140035fd0
Capabilities:
Query or enumerate registry value

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400763c0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140078540
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], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140036123
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140036127
lea rcx, [rsp + 0x840]
call fcn.14008f978
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140025ed0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140076420
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140036104
cmp eax, 2
jne 0x140036183
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140078540
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14003617c
lea rcx, [rsp + 0x40]
call fcn.14008f978
lea rdx, [rsp + 0x40]
jmp 0x1400360f7
mov edi, 0xea
jmp 0x140036104
mov edi, 0x3f4
jmp 0x140036104

Function at 0x1400370c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401045e0]
cmp ecx, 0xffffffff
je 0x140037189
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140037189
mov eax, dword [0x140118518]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037193
mov rbx, qword [0x140118510]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400371d9
mov rax, qword [0x140116d00]
inc rax
xor ecx, ecx
lea rdx, [0x140116d10]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400371e6
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x140116d00], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400371fb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140037200
jmp 0x1400370ea
lea rcx, [0x140118518]
call fcn.140075230
cmp dword [0x140118518], 0xffffffff
jne 0x14003710f
mov ecx, 8
call fcn.1400750d4
mov rbx, rax
mov rcx, rax
call fcn.1400567a0
mov qword [0x140118510], rbx
lea rcx, [0x140118518]
call fcn.1400752c8
jmp 0x14003710f
mov rcx, rbx
call fcn.1400567b0
jmp 0x140037127
inc rcx
cmp rcx, 0x100
jne 0x14003713a
jmp 0x14003716f
int3
Function at 0x140037200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400763c0
sub rsp, rax
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401045e0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400372b4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400372f2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140078540
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007514c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140077e90
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.140076420
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14003da60
test al, al
je 0x1400372f5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400372f8
mov eax, 0xffffffff
lock cmpxchg dword [0x1401045e0], ecx
je 0x140037238
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401045e0]
mov dword [rsp + 0x2c], ecx
jmp 0x140037238
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14003da60
test al, al
je 0x14003731d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14003731d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400372cb
int3

Function at 0x1400381c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14003a7b0
test al, al
jne 0x140038248
call fcn.14003a780
movzx edx, al
mov ecx, esi
call fcn.14002e030
mov eax, dword [0x1401185a0]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038217
movsxd rdx, esi
inc rdx
lea rcx, [0x140118590]
add rsp, 0x20
pop rsi
jmp fcn.14005c600
lea rcx, [0x1401185a0]
call fcn.140075230
cmp dword [0x1401185a0], 0xffffffff
jne 0x140038200
lea rcx, [0x140118590]
xor edx, edx
call fcn.140037400
lea rcx, [0x1401185a0]
call fcn.1400752c8
jmp 0x140038200
mov edx, 3
jmp 0x1400381d8

Function at 0x140038250
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14002e030
mov eax, dword [0x1401185a0]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038294
movsxd rdx, esi
inc rdx
lea rcx, [0x140118590]
add rsp, 0x20
pop rsi
jmp fcn.14005c600
lea rcx, [0x1401185a0]
call fcn.140075230
cmp dword [0x1401185a0], 0xffffffff
jne 0x14003827d
lea rcx, [0x140118590]
xor edx, edx
call fcn.140037400
lea rcx, [0x1401185a0]
call fcn.1400752c8
jmp 0x14003827d
Function at 0x140038c80
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140038e9c
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140104660], rax
jne 0x140038e9f
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.14005cc50
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140038e5e
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x140038dec
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140038e57
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140038e6b
mov edx, ecx
and edx, 0x1fc000
je 0x140038e6b
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14005f3a0
mov ecx, dword [0x140118684]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14011089c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140076420
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140062640
test rax, rax
je 0x140038ea2
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x140038d67
xor ecx, ecx
jmp 0x140038d4d
mov rcx, rbx
call fcn.140060000
jmp 0x140038cfe
movaps xmm0, xmmword [0x1400ea530]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400c41e0
mov rcx, rsi
call fcn.140019c10
mov rcx, r14
call fcn.1400c4250
int3
int3
xor edi, edi
jmp 0x140038d91
Function at 0x140039d10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1401193c0]
cmp rdi, 1
jbe 0x140039d39
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005c600
lea rcx, [0x1401193c0]
call fcn.14003dc00
test al, al
je 0x140039d7e
xorps xmm0, xmm0
movups xmmword [0x1401193c8], xmm0
lea rbx, [0x1401193c0]
lea rdi, [0x1401193c8]
mov rcx, rdi
xor edx, edx
call fcn.140037400
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003dcc0
jmp 0x140039d27
mov rdi, qword [0x1401193c0]
jmp 0x140039d27
Function at 0x14003da60
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 0x14003da75
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140040500
Capabilities:
Allocate thread local storage

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

Function at 0x140046b10
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 0x140046c32
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 0x140046c68
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
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 0x140046c70
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 0x140046c74
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 0x140046c7a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x140046b6c
xor eax, eax
jmp 0x140046c01
mov dl, byte [r8 + 0x19]
jmp 0x140046c61
cmp byte [r8 + 0x1a], 0
je 0x140046c65
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140046c65
cmp ecx, 0x666f736f
jne 0x140046c65
cmp edx, 0x76482074
jne 0x140046c65
mov byte [r8 + 0x19], 1
jmp 0x140046c65
Function at 0x140047030
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14011b0a0]
cmp rdi, 1
jbe 0x140047059
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005c600
lea rcx, [0x14011b0a0]
call fcn.14003dc00
test al, al
je 0x14004709e
xorps xmm0, xmm0
movups xmmword [0x14011b0a8], xmm0
lea rbx, [0x14011b0a0]
lea rdi, [0x14011b0a8]
mov rcx, rdi
xor edx, edx
call fcn.140037400
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003dcc0
jmp 0x140047047
mov rdi, qword [0x14011b0a0]
jmp 0x140047047

Function at 0x140048290
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1400483de
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1400483e3
cmp r14, rax
ja 0x1400483ea
lea rcx, [r14*8]
call fcn.1400750d4
shl rbx, 3
add rbx, rax
je 0x1400483ef
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x14004833b
mov edx, 1
lock xadd dword [rcx + 8], edx
cmp edx, 0x7fffffff
je 0x14004841b
lea rax, [rax + r14*8]
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x1400483c7
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14004834f
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x1400483b1
add r14, 0xfffffffffffffff8
test r14, r14
je 0x14004841e
mov rcx, qword [r14]
test rcx, rcx
je 0x1400483a5
lock dec dword [rcx + 8]
je 0x14004844a
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x14004838a
test rdi, rdi
je 0x1400483d4
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140075110
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400483b1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140089020
xor eax, eax
jmp 0x14004830d
call fcn.1400a37e0
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.1400a3a70
int3
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x3f
call fcn.1400a3a70
mov edx, 1
call fcn.14004a040
jmp 0x1400483a5
Function at 0x140049630
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14004966c
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 0x140049676
add rdi, rbx
sub rsi, rbx
jne 0x14004964a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140056890
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401134c0]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400568f0
mov rsi, qword [0x1401134b8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140076420
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401134c0]
call fcn.140075230
cmp dword [0x1401134c0], 0xffffffff
jne 0x1400568cc
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140078540
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400750d4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140113508]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400569b0
lea r8, [0x1401134d8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400305e0
mov qword [0x1401134b8], rsi
lea rcx, [0x1401134c0]
call fcn.1400752c8
jmp 0x1400568cc
lea rcx, [0x140113508]
call fcn.140075230
cmp dword [0x140113508], 0xffffffff
jne 0x140056981
xorps xmm0, xmm0
movups xmmword [0x1401134f8], xmm0
movups xmmword [0x1401134e8], xmm0
movups xmmword [0x1401134d8], xmm0
lea rcx, [0x1401134d8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140113508]
call fcn.1400752c8
jmp 0x140056981