joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cd00
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, r8
xor esi, esi
mov qword [rbp - 1], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], si
jne 0x14004cd3a
lea rcx, [rbp - 1]
call fcn.14000b5b4
nop
mov r8d, 1
lea rdx, [0x14027a340]
lea rcx, [rbp - 1]
call fcn.140009ecc
mov qword [rbp - 0x21], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
inc rbx
cmp word [rdi + rbx*2], si
jne 0x14004cd8e
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.140009ecc
mov qword [rbp + 0x1f], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x2f], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x2f], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rbp - 0x21]
call fcn.140009e68
nop
lea rcx, [rbp - 1]
call fcn.140009e68
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x1f]
call fcn.140009e68
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400b5860
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret

Function at 0x14004e110
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004e130
xor eax, eax
jmp 0x14004e216
cmp qword [rcx + 0x68], 0
je 0x14004e141
call fcn.140026ba0
jmp 0x14004e216
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004e158
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004e15a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004e18c
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400b8590
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004e210
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004e1c3
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14004e1ec
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400da8dc
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x14004e210
cmp rdi, rbx
ja 0x14004e1ca
test rdi, rdi
je 0x14004e210
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.1400da8dc
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140052320
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 2
jb 0x14005232d
mov rax, rdx
ret

Function at 0x140052894
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rbp + 0x27], rax
and qword [rbp - 0x19], 0
mov rdi, r9
movsxd r14, r8d
mov rsi, rdx
mov rbx, rcx
lea rdx, [0x14027e3c8]
xor r9d, r9d
lea rcx, [rbp - 0x19]
xor r8d, r8d
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x1400528ea
mov eax, 0x8004fb21
jmp 0x140052a2d
mov rcx, qword [rbp - 0x19]
lea r8, str.ChainingModeCBC
and dword [rsp + 0x20], 0
lea rdx, str.ChainingMode
mov r9d, 0x20
call sub.bcrypt.dll_BCryptSetProperty
test eax, eax
jns 0x14005291a
mov eax, 0x8004fb22
jmp 0x140052a2d
mov ecx, dword [rbx + 0x18]
lea rdx, [rbp - 0x11]
sub ecx, dword [rbx + 0x10]
xor r9d, r9d
and dword [rsp + 0x30], 0
xor r8d, r8d
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x19]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
jns 0x140052953
mov eax, 0x8004fb24
jmp 0x140052a2d
and dword [rbp + 7], 0
lea rax, [r14 + rsi]
and qword [rbp + 0x1f], 0
lea r9, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp - 9], rax
mov rdx, r14
mov qword [rbp - 1], rsi
lea r8, [rbp - 1]
lea rcx, [rbp + 0xf]
movdqu xmmword [rbp + 0xf], xmm0
call fcn.140018074
mov ecx, dword [rdi + 8]
lea rdx, [rbp + 7]
sub ecx, dword [rdi]
xor r9d, r9d
mov rax, qword [rdi]
mov r8d, dword [rbp + 0x17]
mov rbx, qword [rbp + 0xf]
mov dword [rsp + 0x48], 1
sub r8d, ebx
mov qword [rsp + 0x40], rdx
mov rdx, rbx
mov dword [rsp + 0x38], ecx
mov rcx, qword [rbp - 0x11]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x1400529d6
mov edi, 0x8004fb23
jmp 0x1400529f6
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400529e6
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400529f4
call sub.bcrypt.dll_BCryptDestroyKey
xor edi, edi
test rbx, rbx
je 0x140052a2b
mov rdx, qword [rbp + 0x1f]
mov rax, rbx
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140052a23
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052a47
mov rcx, rbx
call fcn.1400b5bdc
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400b5860
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400ca738
int3

Function at 0x140055104
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov r9d, 2
xor ecx, ecx
lea r8d, [r9 + 0x1e]
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
mov edx, 0x8004fb29
test eax, eax
cmovs ecx, edx
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140060d20
Capabilities:
Persist via run registry key

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140312b68]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov rdx, 0xffffffff80000001
mov dword [rsp + 0x20], 0xf003f
mov rax, qword [rcx]
mov rax, qword [rax + 0x108]
call qword [case.0x14004966d.0]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140060dd4
mov rcx, qword [0x140312b68]
lea r8, [0x14027fc00]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x488]
call qword [case.0x14004966d.0]
mov rcx, qword [0x140312b68]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov rdx, qword [rcx]
cmovle ebx, eax
mov rax, qword [rdx + 0x100]
mov rdx, qword [rsp + 0x40]
call qword [case.0x14004966d.0]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b5860
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [0x1402c7850]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.140063160
mov ebx, eax
test eax, eax
js 0x14006c16d
mov rcx, qword [0x140312b68]
mov rax, qword [rcx]
mov r10, qword [rax + 0xd0]
mov eax, dword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 1
lea r9, [0x14027fc00]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, 0xffffffff80000001
mov rax, r10
call qword [case.0x14004966d.0]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140009e68
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b5860
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
test cl, cl
jne 0x14006c0c0
jmp 0x140060d20
mov cl, dl
jmp 0x14006dd74

Function at 0x140061730
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14006175e
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400617a3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rbx + 0x18], 8
jb 0x140061782
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400617a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400b5860
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
mov rcx, rdx
jmp 0x140061730
Function at 0x140061c38
Capabilities:
Delete registry value

Disassembly:
movzx r9d, r9b
add r9d, r9d
jmp 0x140061c44
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov eax, 0x200
xor r8d, r8d
mov r10, rcx
cmp r9d, 1
mov ecx, 0x100
cmove r8d, eax
xor eax, eax
cmp r9d, 2
cmove eax, ecx
mov rcx, qword [0x140312b68]
or r8d, eax
or r8d, 0x1000b
cmp qword [rdx + 0x18], 8
mov rax, qword [rcx]
jb 0x140061c9c
mov rdx, qword [rdx]
mov rax, qword [rax + 0x108]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r9
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8, rdx
mov rdx, r10
call qword [case.0x14004966d.0]
mov ebx, eax
test eax, eax
jne 0x140061cfd
cmp qword [rdi + 0x18], 8
jb 0x140061cd1
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140312b68]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x100]
call qword [case.0x14004966d.0]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b5860
add rsp, 0x58
pop rdi
pop rbx
ret

Function at 0x140061c44
Capabilities:
Delete registry value

Disassembly:
movzx r9d, r9b
add r9d, r9d
jmp 0x140061c44
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov eax, 0x200
xor r8d, r8d
mov r10, rcx
cmp r9d, 1
mov ecx, 0x100
cmove r8d, eax
xor eax, eax
cmp r9d, 2
cmove eax, ecx
mov rcx, qword [0x140312b68]
or r8d, eax
or r8d, 0x1000b
cmp qword [rdx + 0x18], 8
mov rax, qword [rcx]
jb 0x140061c9c
mov rdx, qword [rdx]
mov rax, qword [rax + 0x108]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r9
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8, rdx
mov rdx, r10
call qword [case.0x14004966d.0]
mov ebx, eax
test eax, eax
jne 0x140061cfd
cmp qword [rdi + 0x18], 8
jb 0x140061cd1
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140312b68]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x100]
call qword [case.0x14004966d.0]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b5860
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x1400622f8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, r9
movzx r15d, r8b
mov rdi, rdx
mov r12, rcx
mov rbx, qword [r9]
mov r14, qword [r9 + 8]
cmp rbx, r14
je 0x140062354
mov rcx, rbx
call fcn.140009e68
add rbx, 0x20
cmp rbx, r14
jne 0x14006233c
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov r9d, r15d
shl r9d, 8
or r9d, 0x20019
xor r15d, r15d
mov qword [rsp + 0x40], r15
cmp qword [rdi + 0x18], 8
jb 0x140062374
mov rdi, qword [rdi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
mov r12d, 0x80070000
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14006249b
mov r14d, r15d
mov dword [rsp + 0x48], 0xff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
mov edx, r14d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x140062470
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x1400623ff
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14000b5b4
nop
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140062453
mov qword [rax], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.14000ce3c
add qword [rsi + 8], 0x20
jmp 0x140062464
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
call fcn.1400336dc
nop
lea rcx, [rsp + 0x50]
call fcn.140009e68
jmp 0x140062478
cmp edi, 0x103
jne 0x140062485
inc r14d
test edi, edi
je 0x1400623a9
jmp 0x140062490
movzx ebx, di
or ebx, r12d
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400b5860
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14006390c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
xor ebx, ebx
call fcn.1400b8c40
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x140063980
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140063967
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000afb8
jmp 0x140063994
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b5860
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
mov rcx, rdx
jmp 0x14006390c
Function at 0x140064484
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rsi, qword [rbp + 0x7c0]
mov rdi, r8
movzx r9d, r9b
shl r9d, 8
add r9d, 0x20019
cmp qword [rdx + 0x18], 8
jb 0x1400644ce
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
mov dword [rsp + 0x3c], 0x820
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x38], r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14006458d
cmp qword [rdi + 0x18], 8
jb 0x140064511
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140064582
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x14006455f
mov ebx, 0x8007065d
jmp 0x140064582
mov ebx, r14d
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x14006456b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14000afb8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1400b5860
add rsp, 0x870
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
push rbx
mov rax, qword [rsp + 0x38]
mov r10, r9
mov r9b, byte [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov qword [rsp + 0x30], rax
mov r8, r10
mov rdx, r11
pop rbx
jmp 0x140064484
Function at 0x1400646ec
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov rax, qword [rcx]
cmp rax, qword [rcx + 8]
je 0x140064722
mov qword [rcx + 8], rax
xor r14d, r14d
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x4c], r14d
mov qword [rbp - 0x30], r14
movdqa xmm0, xmmword [0x1402c7850]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
lea rcx, [rbp - 0x30]
call fcn.1400645e4
mov edi, eax
test eax, eax
js 0x140064871
mov dword [rsp + 0x20], 0xf0000040
lea r9d, [r14 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne cl
test eax, eax
je 0x1400647a1
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
setne cl
test cl, cl
je 0x14006484a
mov edx, 4
mov dword [rbp - 0x48], edx
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x4c]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14006484a
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x20]
add r8d, r8d
xor r9d, r9d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne sil
test eax, eax
je 0x140064843
mov eax, dword [rbp - 0x4c]
mov dword [rbp - 0x48], eax
mov edx, eax
lea r8, [rbp - 0x50]
mov rcx, rbx
call fcn.14002ccf8
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x48]
mov r8, qword [rbx]
mov edx, 2
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
setne sil
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test sil, sil
jne 0x140064871
jmp 0x140064864
mov dword [rbp - 0x4c], r14d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x140064871
mov qword [rbx + 8], rax
mov eax, 0x80004005
mov rcx, qword [rbx + 8]
cmp qword [rbx], rcx
cmove edi, eax
lea rcx, [rbp - 0x30]
call fcn.140009e68
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b5860
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rdx
jmp 0x1400646ec
Function at 0x140064e5c
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x140064e8c
mov rax, qword [rcx]
xor edi, edi
mov qword [rcx + 0x10], rdi
mov word [rax], di
mov dword [rbp - 0x30], edi
lea r8, [rbp - 0x30]
xor edx, edx
lea ecx, [rdi + 8]
call sub.Secur32.dll_GetUserNameExW
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x140064f26
xorps xmm0, xmm0
mov edx, eax
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rdi
lea rcx, [rbp - 0x28]
call fcn.14005ec80
nop
lea r8, [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
lea ecx, [rdi + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x140064eea
mov r8d, dword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rcx, rbx
call fcn.14000afb8
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140064f26
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064f21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064f49
call fcn.1400b5bdc
cmp qword [rbx + 0x10], rdi
setne al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b5860
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.1400ca738
int3
mov rcx, rdx
jmp 0x140064e5c

Function at 0x140065180
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140068f0c
mov cl, al
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400651a0
mov rcx, rdx
jmp 0x140065180

Function at 0x1400651a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140312ca0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov bpl, cl
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
xor edi, edi
call fcn.1400b8c40
mov al, bpl
lea rdx, [rsp + 0x20]
neg al
sbb r8d, r8d
xor r9d, r9d
and r8d, 0xa
xor ecx, ecx
add r8d, 0x1c
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor r8d, r8d
lea rdx, [0x1402c7810]
mov rcx, rsi
mov ebx, eax
call fcn.14000afb8
test ebx, ebx
jne 0x14006521a
mov edi, 0x80004005
jmp 0x14006527b
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x140065226
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000afb8
mov r8d, 1
lea rdx, [0x14027a340]
mov rcx, rsi
call fcn.140009ecc
test bpl, bpl
lea rax, [0x14027ed58]
lea rdx, str.MicrosoftOneDrive
cmovne rdx, rax
inc rbx
cmp word [rdx + rbx*2], di
jne 0x140065267
mov r8, rbx
mov rcx, rsi
call fcn.140009ecc
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400b5860
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret