joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b970
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 [0x140127038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14004bb8c
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14012adc0], rax
jne 0x14004bb8f
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.140077c20
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 0x14004bb4e
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14004badc
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004bb47
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x14004bb5b
mov edx, ecx
and edx, 0x1fc000
je 0x14004bb5b
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.14007aae0
mov ecx, dword [0x14013e6bc]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140136f4c]
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.14008c940
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.14007eb60
test rax, rax
je 0x14004bb92
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 0x14004ba57
xor ecx, ecx
jmp 0x14004ba3d
mov rcx, rbx
call fcn.14007b930
jmp 0x14004b9ee
movaps xmm0, xmmword [0x14010bbe0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400e20e0
mov rcx, rsi
call fcn.140019c10
mov rcx, r14
call fcn.1400e2150
int3
int3
xor edi, edi
jmp 0x14004ba81
Function at 0x14004c5e0
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008c8e0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14008ea70
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 0x14004c733
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004c737
lea rcx, [rsp + 0x840]
call fcn.1400ab050
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140027e00
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008c940
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14004c714
cmp eax, 2
jne 0x14004c78c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14008ea70
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 0x14004c793
lea rcx, [rsp + 0x40]
call fcn.1400ab050
lea rdx, [rsp + 0x40]
jmp 0x14004c707
mov edi, 0x3f4
jmp 0x14004c714
mov edi, 0xea
jmp 0x14004c714

Function at 0x14004c920
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140136de4]
cmp ecx, 0xffffffff
je 0x14004c945
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 0x14004c940
Function at 0x14004c950
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 [0x140136de4]
cmp ecx, 0xffffffff
je 0x14004ca19
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14004ca19
mov eax, dword [0x140140bb8]
mov ecx, dword [0x140136f4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004ca23
mov rbx, qword [0x140140bb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004ca69
mov rax, qword [0x14013f3a0]
inc rax
xor ecx, ecx
lea rdx, [0x14013f3b0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14004ca76
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x14013f3a0], 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 0x14004ca8b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004ca90
jmp 0x14004c97a
lea rcx, [0x140140bb8]
call fcn.14008b600
cmp dword [0x140140bb8], 0xffffffff
jne 0x14004c99f
mov ecx, 8
call fcn.14008b4ac
mov rbx, rax
mov rcx, rax
call fcn.14006b790
mov qword [0x140140bb0], rbx
lea rcx, [0x140140bb8]
call fcn.14008b698
jmp 0x14004c99f
mov rcx, rbx
call fcn.14006b7a0
jmp 0x14004c9b7
inc rcx
cmp rcx, 0x100
jne 0x14004c9ca
jmp 0x14004c9ff
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14008c8e0
sub rsp, rax
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140136de4]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14004cb44
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004cb82
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14008ea70
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14008b51c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14008e3c0
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.14008c940
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140055a30
test al, al
je 0x14004cb85
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14004cb88
mov eax, 0xffffffff
lock cmpxchg dword [0x140136de4], ecx
je 0x14004cac8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140136de4]
mov dword [rsp + 0x2c], ecx
jmp 0x14004cac8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140055a30
test al, al
je 0x14004cbad
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004cbad
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004cb5b
int3
Function at 0x14004dba0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140140c18]
cmp rdi, 1
jbe 0x14004dbc9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007c1a0
lea rcx, [0x140140c18]
call fcn.14004c840
test al, al
je 0x14004dc0e
xorps xmm0, xmm0
movups xmmword [0x140140c20], xmm0
lea rbx, [0x140140c18]
lea rdi, [0x140140c20]
mov rcx, rdi
xor edx, edx
call fcn.14004cca0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004c900
jmp 0x14004dbb7
mov rdi, qword [0x140140c18]
jmp 0x14004dbb7
Function at 0x14004f140
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.140051bf0
test al, al
jne 0x14004f1c8
call fcn.140051bc0
movzx edx, al
mov ecx, esi
call fcn.14003fa10
mov eax, dword [0x140140c88]
mov ecx, dword [0x140136f4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004f197
movsxd rdx, esi
inc rdx
lea rcx, [0x140140c78]
add rsp, 0x20
pop rsi
jmp fcn.14007c1a0
lea rcx, [0x140140c88]
call fcn.14008b600
cmp dword [0x140140c88], 0xffffffff
jne 0x14004f180
lea rcx, [0x140140c78]
xor edx, edx
call fcn.14004cca0
lea rcx, [0x140140c88]
call fcn.14008b698
jmp 0x14004f180
mov edx, 3
jmp 0x14004f158

Function at 0x14004f1d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14003fa10
mov eax, dword [0x140140c88]
mov ecx, dword [0x140136f4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004f214
movsxd rdx, esi
inc rdx
lea rcx, [0x140140c78]
add rsp, 0x20
pop rsi
jmp fcn.14007c1a0
lea rcx, [0x140140c88]
call fcn.14008b600
cmp dword [0x140140c88], 0xffffffff
jne 0x14004f1fd
lea rcx, [0x140140c78]
xor edx, edx
call fcn.14004cca0
lea rcx, [0x140140c88]
call fcn.14008b698
jmp 0x14004f1fd

Function at 0x140053e70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140053ed0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140053ed9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c940
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140053eb9
int3
mov rcx, qword [rcx + 8]
jmp 0x140053e70

Function at 0x140053ee0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140127038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x140053f83
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140053f72
cmp eax, 0xffffffff
je 0x140053f97
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c940
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140053f21
mov eax, dword [rsp + 0x2c]
jmp 0x140053f52
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140053f54
int3
Function at 0x140054460
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140054380
test rax, rax
jne 0x14005449f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400544bb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14008c940
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140070920
test al, al
jne 0x1400544cd
xor esi, esi
jmp 0x14005449f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400dc610
lea rcx, [rsp + 0x40]
lea rdx, [0x140115da0]
mov r8d, 0xc
call fcn.1400bec30
mov rcx, rsi
call fcn.1400dc690
jmp 0x1400544c9

Function at 0x1400549a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140053ed0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140053ed9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c940
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140053eb9
int3
mov rcx, qword [rcx + 8]
jmp 0x140053e70

Function at 0x140055250
Capabilities:
Allocate thread local storage

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

Function at 0x140055a30
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 0x140055a45
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140055a80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x140055bcd
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14010bbe0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x14014d008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x14014d008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x14014d008]
test r14, r14
je 0x140055b63
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140055b53
lea r14, [rsi + 0xf8]
mov eax, dword [0x140140fc4]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140055bd1
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x140055b9e
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008c940
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140055bb0
bt eax, 9
jae 0x140055bf1
call fcn.140004450
lea rax, [0x140004920]
test r14, r14
je 0x140055b9e
lea rcx, [0x140004620]
jmp 0x140055b9b
call fcn.1400ed8c0
lea rax, [0x1400ee0c0]
test r14, r14
je 0x140055b9e
lea rcx, [0x1400ed780]
jmp 0x140055b9b

Function at 0x140056e10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140140ff8]
cmp rdi, 1
jbe 0x140056e39
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007c1a0
lea rcx, [0x140140ff8]
call fcn.14004c840
test al, al
je 0x140056e7e
xorps xmm0, xmm0
movups xmmword [0x140141000], xmm0
lea rbx, [0x140140ff8]
lea rdi, [0x140141000]
mov rcx, rdi
xor edx, edx
call fcn.14004cca0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004c900
jmp 0x140056e27
mov rdi, qword [0x140140ff8]
jmp 0x140056e27
Function at 0x140057cb0
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 0x140057df3
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 0x140057dec
cmp r14, rax
ja 0x140057df8
lea rcx, [r14*8]
call fcn.14008b4ac
shl rbx, 3
add rbx, rax
je 0x140057dfd
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x140057d49
lock inc dword [rcx + 8]
lea rax, [rax + r14*8]
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x140057dd5
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 0x140057d5d
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 0x140057dbf
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140057e29
mov rcx, qword [r14]
test rcx, rcx
je 0x140057db3
lock dec dword [rcx + 8]
je 0x140057e55
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x140057d98
test rdi, rdi
je 0x140057de2
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14008b4e8
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x140057dbf
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140057d2d
call fcn.1400a3d40
call fcn.1400bec20
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.1400bf450
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.1400bf450
mov edx, 1
call fcn.14005e510
jmp 0x140057db3
Function at 0x14005cdd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14005cda0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140142a30]
lea rdx, [0x14005cc20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14005ced9
cmp dword [0x140142a38], 0
jne 0x14005cee6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140142a3c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005ce8d
mov ecx, 0x28
call fcn.1400879e0
test rax, rax
je 0x14005cee6
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x20], 0
mov ecx, dword [0x140142a3c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005cede
lea r15, [0x140142a40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140142a50]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c940
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400a3d40
mov rcx, r14
call fcn.140087a20
mov rcx, rsi
mov rax, rdi
call qword [0x14014d008]
xor esi, esi
jmp 0x14005cebd

Function at 0x14005cf00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14005cf3c
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 0x14005cf46
add rdi, rbx
sub rsi, rbx
jne 0x14005cf1a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a3d40
int3
Function at 0x14005f0f0
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 0x14005f212
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 0x14005f248
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 0x14005f250
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 0x14005f254
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 0x14005f25a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14005f14c
xor eax, eax
jmp 0x14005f1e1
mov dl, byte [r8 + 0x19]
jmp 0x14005f241
cmp byte [r8 + 0x1a], 0
je 0x14005f245
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14005f245
cmp ecx, 0x666f736f
jne 0x14005f245
cmp edx, 0x76482074
jne 0x14005f245
mov byte [r8 + 0x19], 1
jmp 0x14005f245

Function at 0x14005f3c0
Capabilities:
Generate random numbers via rtlgenrandom

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