joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063e60
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140063ed8
cmp r8, 4
jae 0x140063e88
xor r9d, r9d
xor eax, eax
mov r10b, byte [rdx + r9]
xor r10b, byte [rcx + r9]
movzx r10d, r10b
or eax, r10d
inc r9
cmp r8, r9
jne 0x140063e70
ret
mov r9, r8
and r9, 0xfffffffffffffffc
pxor xmm0, xmm0
xor r10d, r10d
pxor xmm1, xmm1
mov eax, dword [rdx + r10]
xor eax, dword [rcx + r10]
movd xmm2, eax
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
por xmm1, xmm2
add r10, 4
cmp r9, r10
jne 0x140063e9a
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movd eax, xmm1
cmp r9, r8
jne 0x140063e70
jmp 0x140063e87
xor eax, eax
ret

Function at 0x140064ae0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401814d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140064b14
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140064b14
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x140064b0e

Function at 0x140064c37
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r8
mov r12, rdx
mov r15, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, pe_nt_image_headers64
call fcn.14008d2b8
mov rsi, rax
lea rax, [0x14015b050]
mov qword [rsi], rax
lea rax, [0x1400d3450]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14018a260]
lea rdx, [0x14014bd20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140064d76
lea rbx, [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rsi + 0x64], xmm0
movups xmmword [rsi + 0x58], xmm0
movups xmmword [rsi + 0x48], xmm0
movups xmmword [rsi + 0x38], xmm0
movups xmmword [rsi + 0x28], xmm0
movaps xmm0, xmmword [0x140167a90]
movups xmmword [rsi + 8], xmm0
movaps xmm0, xmmword [0x140167aa0]
movups xmmword [rsi + 0x18], xmm0
mov dword [rsi + 0x74], 0x20
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
mov rcx, rbx
call fcn.140048ab0
lea rdi, [rsp + 0x30]
movaps xmm0, xmmword [0x14015c320]
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov qword [rdi - 0x10], r12
mov qword [rdi - 8], r14
cmp r14, 0x20
cmovb r12, rdi
mov rcx, r12
mov rdx, rbx
call fcn.140057ef0
mov r8, qword [rdi - 8]
cmp r8, 0x1f
jbe 0x140064d67
test rsi, rsi
je 0x140064d4b
xorps xmm0, xmm0
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx], xmm0
mov rcx, rsi
call fcn.14008d2a8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008fec0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
call fcn.140091e40
jmp 0x140064d20
call fcn.14008d5e0
int3
Function at 0x140069580
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400695d1
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008fec0
mov rax, rsi
add rsp, 0x30
pop rsi
ret
int3

Function at 0x140069e80
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r15, rdx
mov rsi, rcx
cmp qword [rcx], rdx
je 0x140069eee
mov r12d, dword [r15 + 0x2c]
lea r14, [r12 + 8]
mov rdi, qword [0x140181548]
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call qword [rdi]
mov rbx, rax
test rax, rax
jne 0x140069ec8
cmp byte [0x140184548], 0
jne 0x140069f7c
test rbx, rbx
je 0x140069f8c
mov qword [rbx], r12
add rbx, 8
je 0x140069f8c
mov rdi, qword [rsi + 8]
test rdi, rdi
jne 0x140069f4a
mov qword [rsi + 8], rbx
mov qword [rsi], r15
mov rax, qword [r15 + 0x10]
lea rcx, [0x14014b310]
cmp rax, rcx
jne 0x140069f75
mov rax, qword [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x140167a90]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x140167aa0]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r8, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
add r8, 8
mov rcx, rdi
xor edx, edx
call fcn.1400924f0
mov rcx, qword [0x140181548]
mov rdx, rdi
xor r8d, r8d
call qword [rcx + 0x28]
jmp 0x140069ee7
mov rcx, rsi
call rax
jmp 0x140069f35
mov rcx, r14
call fcn.1400bf770
test al, al
jne 0x140069ea8
mov dword [rsp + 0x20], 0xc4
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_digest_digest.c
xor esi, esi
mov ecx, 0x1d
xor edx, edx
mov r8d, 0x41
call fcn.1400cc8a0
jmp 0x140069f3a
Function at 0x140086fc0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14008700d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jae 0x140087018
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140086ffb
mov qword [rdi], rsi
call fcn.140041560
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140041560
mov r14, qword [rdi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x14008703d
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rdi], 0
jmp 0x140086fe9
call fcn.1400c7320
mov rcx, qword [0x140184a28]
jmp 0x14008702c

Function at 0x140087820
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov edi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r13
movaps xmm6, xmmword [0x14015c320]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x88
call fcn.140048d60
xor esi, esi
mov rcx, rbx
mov rdx, r12
xor r8d, r8d
call fcn.140048d80
test edi, edi
js 0x14008796a
lea rbx, [rsp + 0x40]
mov dword [rbx], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, edi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rbx]
test byte [0x14017ff80], 0x19
jne 0x140087928
lea rcx, [rsp + 0x60]
call fcn.140046d50
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14008fec0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r13
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14017ff80]
lea r9, [0x14016398f]
mov rcx, rdi
mov dl, 0x45
call fcn.14003a350
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400878f1
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400878f1
mov esi, 0xffffffff
jmp 0x1400878e8
Function at 0x1400879d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jae 0x140087a4d
cmp qword [rsi], rbx
je 0x140087a27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140087a54
cmp rbp, 2
jb 0x140087a1e
mov qword [rsi], rbx
call fcn.140041560
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140087a87
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140041560
jmp 0x1400879f6
call fcn.140041560
mov r14, qword [rsi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x140087a79
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140087a10
call fcn.1400c7320
mov rcx, qword [0x140184a28]
jmp 0x140087a68
call fcn.140041560
mov rbx, qword [rdi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x140087aac
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rdi], 0
jmp 0x140087a3d
call fcn.1400c7320
mov rcx, qword [0x140184a28]
jmp 0x140087a9b

Function at 0x140087cc6
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x30], rax
test edx, edx
jne 0x140087d75
mov ecx, pe_nt_image_headers64
call fcn.14008d2b8
mov rdi, rax
lea rax, [0x14015b050]
mov qword [rdi], rax
lea rax, [0x1400d3450]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14018a260]
lea rdx, [0x14014bd20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140087d79
xorps xmm0, xmm0
movups xmmword [rdi + 0x64], xmm0
movups xmmword [rdi + 0x58], xmm0
movups xmmword [rdi + 0x48], xmm0
movups xmmword [rdi + 0x38], xmm0
movups xmmword [rdi + 0x28], xmm0
movaps xmm0, xmmword [0x140167a90]
movups xmmword [rdi + 8], xmm0
movaps xmm0, xmmword [0x140167aa0]
movups xmmword [rdi + 0x18], xmm0
mov dword [rdi + 0x74], 0x20
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008fec0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x140087d5b
call fcn.14008d5e0
int3
Function at 0x1400c3d20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov bl, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x1400c3d73
mov al, byte [rbp + 0x60]
movzx edx, bl
mov rbx, qword [rcx]
mov dword [rsp + 0x28], edx
mov byte [rsp + 0x20], al
mov rdx, rsi
mov r8, rdi
call qword [rbx + 0x30]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rax, qword [r9 + 0x30]
lea rcx, [rbp - 0x20]
mov qword [rcx], rax
mov qword [rbp - 8], rax
lock inc dword [rax + 8]
lea rdx, [0x1401837b8]
call fcn.14005f49a
mov r14, rax
mov eax, 0xffffffff
mov rcx, qword [rbp - 8]
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400c3db1
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
call qword [rax + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rbp - 0x20]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x14015c320]
movaps xmmword [r15], xmm0
mov rax, qword [r14]
xor bl, 1
movzx ebx, bl
mov rcx, r14
mov rdx, r15
call qword [rax + rbx*8 + 0x28]
movzx r9d, byte [r15 + 0x17]
test r9b, r9b
mov rcx, qword [r15]
mov r8, qword [r15 + 8]
mov rax, r9
cmovs rax, r8
test rax, rax
je 0x1400c3e68
test r9b, r9b
mov rbx, r15
cmovs rbx, rcx
test rdi, rdi
je 0x1400c3e56
mov al, byte [rbx]
movzx eax, al
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400c3e5a
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
cmp eax, 0xffffffff
jne 0x1400c3e2b
xor edi, edi
mov r9b, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
inc rbx
test r9b, r9b
mov rax, r15
cmovs rax, rcx
movzx edx, r9b
cmovs rdx, r8
add rdx, rax
cmp rbx, rdx
jne 0x1400c3e06
jmp 0x1400c3e68
xor edi, edi
jmp 0x1400c3e37
mov r8, qword [rdi]
mov rcx, rdi
mov edx, eax
call qword [r8 + 0x60]
jmp 0x1400c3e24
shr r9b, 7
mov qword [rsi], rdi
test r9b, r9b
je 0x1400c3d63
call fcn.14008d2a8
jmp 0x1400c3d63

Function at 0x1400c48a0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x14015c320]
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, [0x14015fbb2]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x472
call fcn.140048d60
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140048d80
cmp byte [rdi + 0x17], 0
jns 0x1400c4924
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140046cc0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008fec0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400c4960
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x14015c320]
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, [0x14015fb9d]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x462
call fcn.140048d60
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140048d80
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400924f0
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x1400c4a63
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14008d7c8
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14005f360
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140069180
mov rcx, r14
mov rdx, rsi
call fcn.140070380
mov rcx, rsi
call fcn.14005b0c0
mov rcx, rbx
call fcn.14005b0c0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.140046cc0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14008fec0
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008fe50
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r15, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r15
mov dl, 0xaa
call fcn.1400924f0
lea r12, [rsp + 0x3c]
mov dword [r12], 1
lea rsi, [rsp + 0x38]
mov dword [rsi], 0x800
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.140048d60
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdx, rdi
xor r8d, r8d
mov r9, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c5abd
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400c5ac1
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.14005f658
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008fec0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x1400c5a9a
cmp eax, 2
jne 0x1400c5b06
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1400924f0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x1400c5b0d
lea rdx, [rsp + 0x40]
jmp 0x1400c5a90
mov edi, 0x3f4
jmp 0x1400c5a9a
mov edi, 0xea
jmp 0x1400c5a9a
Function at 0x1400c5cc6
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400c5d9d
mov rax, qword [rsi + 0x28]
cmp rax, 0x60
mov edi, 0x60
cmova rdi, rax
mov rcx, rdi
call qword [rsi + 0x48]
mov rdx, rax
xor r8d, r8d
mov qword [rax], r8
mov qword [rax + 8], 0x18
mov qword [rax + 0x10], rdi
lock add qword [rsi + 0x10], rdi
lea rcx, [rax + 0x18]
mov qword [rax + 8], 0x60
mov qword [rax + 0x18], rsi
mov edi, dword [0x140181920]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdi*8]
lea rax, [rax + 0x120]
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rdx
lea rax, [rdx + 0x60]
mov qword [rdx + 0x40], rax
mov rax, qword [rdx + 0x10]
add rax, rdx
mov qword [rdx + 0x48], rax
mov qword [rdx + 0x30], r8
xorps xmm0, xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rsi]
mov qword [rdx + 0x38], rax
lock cmpxchg qword [rsi], rcx
jne 0x1400c5d5f
mov eax, dword [0x140181920]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov qword [rax + 0x128], rcx
mov rdx, qword [rsi + 0x20]
mov qword [rax + 0x120], rdx
mov qword [rsi + 8], rcx
mov rax, rcx
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [0x140181920]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
lea rax, [rax + 0x120]
cmp qword [rcx + 8], rax
je 0x1400c5d6a
mov rcx, qword [rcx + 0x20]
jmp 0x1400c5cd2

Function at 0x1400c5fd0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1400c600a
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x1400c6066
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x1400c6055
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140091e40
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1400c5fef
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x1400c60fc
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.14008d2b8
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x1400c60d0
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x1400c60bf
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x1400c5fef
mov rcx, r15
call fcn.14008d2a8
mov rbx, qword [rsi + 0x10]
jmp 0x1400c5fef
call fcn.14008d5e0
int3
Function at 0x1400c7090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x14015c320]
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.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2a9
call fcn.140048d60
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140048d80
cmp byte [rdi + 0x17], 0
jns 0x1400c7114
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.140046cc0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008fec0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400d4070
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
movaps xmmword [rsp + 0x1b0], xmm6
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov rax, qword [r8 + 0x28]
test rax, rax
jne 0x1400d42bb
mov rbx, qword [r8]
test rbx, rbx
je 0x1400d4296
mov rsi, qword [r8 + 0x10]
test rsi, rsi
je 0x1400d4296
add rsi, 0x18
movaps xmm6, xmmword [0x14015c320]
lea rdi, [rsp + 0xd0]
movups xmmword [rdi + 0xc0], xmm6
movups xmmword [rdi + 0xb0], xmm6
movups xmmword [rdi + 0xa0], xmm6
movups xmmword [rdi + 0x90], xmm6
movups xmmword [rdi + 0x80], xmm6
movups xmmword [rdi + 0x70], xmm6
movups xmmword [rdi + 0x60], xmm6
movups xmmword [rdi + 0x50], xmm6
lea r12, [rsp + 0x90]
movaps xmmword [r12 + 0x30], xmm6
movaps xmmword [r12 + 0x20], xmm6
movaps xmmword [r12 + 0x10], xmm6
movaps xmmword [r12], xmm6
movabs rax, 0x6a09e667f3bcc908
mov qword [rdi], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rdi + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rdi + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rdi + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rdi + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rdi + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rdi + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rdi + 0x38], rax
mov dword [rdi + 0xd0], 0
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
mov dword [rdi + 0xd4], 0x40
movsxd r8, dword [rbx + 0x18]
shl r8, 3
mov rcx, rdi
mov rdx, rsi
call fcn.1400e26d0
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.1400e26d0
mov rcx, r12
mov rdx, rdi
call fcn.1400e2940
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x40]
mov rbp, rax
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movsxd r9, dword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
mov qword [rsp + 0x20], r12
mov edx, 1
mov rcx, r13
call fcn.1400d42f0
test eax, eax
je 0x1400d42e6
mov dword [rsp + 0x3c], 0xaaaaaaaa
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov rcx, rbx
lea rdx, [rsp + 0x3c]
mov r8, rsi
mov r9, r13
call fcn.1400d4540
mov rdi, rax
test rax, rax
jne 0x1400d4267
cmp dword [rsp + 0x3c], 0
mov rax, rbp
jne 0x1400d41ef
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14008fec0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x1b0]
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x20], 0x135
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_ecdsa_ecdsa.c
xor edi, edi
mov ecx, 0x1a
xor edx, edx
mov r8d, 0x43
call fcn.1400cc8a0
jmp 0x1400d4267
cmp qword [rax + 0x28], 0
je 0x1400d40b0
mov dword [rsp + 0x20], 0x12f
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_ecdsa_ecdsa.c
xor edi, edi
mov ecx, 0x1a
xor edx, edx
mov r8d, 0x67
jmp 0x1400d42b4
xor edi, edi
jmp 0x1400d4267