joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029854
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa0]
xor ebp, ebp
add eax, eax
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x3c], eax
mov rsi, r9
mov qword [rsp + 0x30], rbp
mov rdi, r8
test rdx, rdx
je 0x14002990d
cmp word [rdx], bp
je 0x14002990d
test r8, r8
je 0x14002990d
cmp word [r8], bp
je 0x14002990d
test r9, r9
je 0x14002990d
lea rax, [rsp + 0x30]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400298f9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400298f9
cmp dword [rsp + 0x38], 1
lea eax, [rbp + 0xd]
cmovne ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140029909
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140029912
mov eax, 0x57
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140034370
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140029928
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0xb0]
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov rsi, r9
mov r10, rdx
mov r11, rcx
test rdx, rdx
je 0x140029a3b
cmp word [rdx], r14w
je 0x140029a3b
test r9, r9
je 0x140029a3b
cmp word [r9], r14w
je 0x140029a3b
test rdi, rdi
je 0x140029a3b
cmp word [rdi], r14w
je 0x140029a3b
mov edx, 0x7fffffff
mov rax, rdi
mov ecx, edx
cmp word [rax], r14w
je 0x1400299ae
add rax, 2
sub rcx, 1
jne 0x14002999e
sub rdx, rcx
mov rax, rcx
neg rax
sbb rbp, rbp
and rbp, rdx
test rcx, rcx
jne 0x1400299c7
lea ebx, [rcx + 0x57]
jmp 0x140029a37
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov rdx, r10
mov dword [rsp + 0x28], 0x20106
xor r8d, r8d
mov rcx, r11
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140029a27
mov rcx, qword [rsp + 0x50]
lea eax, [rbp*2 + 2]
mov dword [rsp + 0x28], eax
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140029a37
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140029a40
mov eax, 0x57
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140034370
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140029b74
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov bl, r8b
mov rsi, rdx
mov r14, rcx
xor edi, edi
mov dword [rbp - 0x80], edi
mov qword [rcx], rdi
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea edx, [rdi + 1]
lea rcx, [rbp - 0x70]
call fcn.140006ce8
nop
test bl, bl
je 0x140029be5
lea rdx, str.Wow6432Node_
lea rcx, [rbp - 0x70]
call fcn.1400051d4
lea rdx, str.CLSID_
lea rcx, [rbp - 0x70]
call fcn.1400051d4
mov rcx, rax
mov rdx, rsi
call fcn.1400051d4
mov rcx, rax
lea rdx, str.LocalServer32
call fcn.1400051d4
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.140017168
nop
mov ebx, 5
mov dword [rbp - 0x80], ebx
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rsi, 0xffffffff80000000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140029ca3
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140017168
mov ebx, 0xf
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov sil, dil
jne 0x140029ca6
mov sil, 1
test bl, 2
je 0x140029cb9
and ebx, 0xfffffffd
lea rcx, [rsp + 0x40]
call fcn.140003170
nop
test bl, 1
je 0x140029cc8
lea rcx, [rsp + 0x60]
call fcn.140003170
test sil, sil
je 0x140029d59
mov dword [rbp - 0x80], edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140029d4e
mov ecx, dword [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140029d4e
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140029d45
mov qword [r14], rbx
mov dil, 1
jmp 0x140029d4e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x18]
call fcn.140007638
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov al, dil
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140034370
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002adc0
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rdx + 0x48]
mov rcx, qword [rdx]
mov r9d, dword [rdx + 0x10]
mov r8d, dword [rdx + 0xc]
mov qword [r11 - 0x18], rax
mov rax, qword [rdx + 0x40]
mov qword [r11 - 0x20], rax
mov rax, qword [rdx + 0x38]
mov qword [r11 - 0x28], rax
mov rax, qword [rdx + 0x30]
mov qword [r11 - 0x30], rax
mov rax, qword [rdx + 0x28]
mov qword [r11 - 0x38], rax
mov rax, qword [rdx + 0x20]
mov qword [r11 - 0x40], rax
mov rax, qword [rdx + 0x18]
mov edx, dword [rdx + 8]
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
add rsp, 0x68
ret

Function at 0x14002af90
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
lea rcx, [rsp + 0x20]
mov rbx, r8
call fcn.1400185f0
cmp qword [rax + 0x18], 8
jb 0x14002afad
mov rax, qword [rax]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140003170
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14002b0d0
Capabilities:
Create service

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [rdx + 0x50]
mov rcx, qword [rdx]
mov r9d, dword [rdx + 0x18]
mov r8, qword [rdx + 0x10]
mov qword [r11 - 0x18], rax
mov rax, qword [rdx + 0x48]
mov qword [r11 - 0x20], rax
mov rax, qword [rdx + 0x40]
mov qword [r11 - 0x28], rax
mov rax, qword [rdx + 0x38]
mov qword [r11 - 0x30], rax
mov rax, qword [rdx + 0x30]
mov qword [r11 - 0x38], rax
mov rax, qword [rdx + 0x28]
mov qword [r11 - 0x40], rax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x20]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
add rsp, 0x78
ret

Function at 0x14002b200
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400185f0
cmp qword [rax + 0x18], 8
jb 0x14002b21a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140003170
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14002b510
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400185f0
cmp qword [rax + 0x18], 8
jb 0x14002b52a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140003170
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14002bd10
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x90]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov r11d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8, r10
mov qword [rsp + 0x30], rax
mov edx, r11d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x40
pop rbx
ret
Function at 0x14002bd90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x90]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov r11d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8, r10
mov qword [rsp + 0x30], rax
mov edx, r11d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add rsp, 0x40
pop rbx
ret

Function at 0x14002bdf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x88]
mov r10, r9
mov r9d, dword [rsp + 0x70]
mov r11, r8
mov qword [rsp + 0x30], rax
mov rcx, rdx
mov rax, qword [rsp + 0x80]
mov r8, r10
mov qword [rsp + 0x28], rax
mov rdx, r11
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
add rsp, 0x40
pop rbx
ret

Function at 0x14002bef0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x30
pop rbx
ret

Function at 0x14002bf30
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10, r9
mov r9d, dword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
add rsp, 0x30
pop rbx
ret

Function at 0x14002bf70
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10d, r9d
mov r9d, dword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rbx
ret

Function at 0x14002c000
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400185f0
cmp qword [rax + 0x18], 8
jb 0x14002c01a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140003170
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14002c360
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9d, dword [rsp + 0x60]
mov r11d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov edx, r11d
mov qword [rsp + 0x20], rax
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
add rsp, 0x30
pop rbx
ret

Function at 0x14002c550
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x40
lea rcx, [rsp + 0x20]
mov ebx, r8d
call fcn.1400185f0
cmp qword [rax + 0x18], 8
jb 0x14002c56d
mov rax, qword [rax]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.140003170
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14002fd70
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400090a2
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400090e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rbx + 0x18], 8
jb 0x1400090c6
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400090e7
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.140034370
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
mov rcx, rdx
jmp 0x140009074

Function at 0x14002fde0
Capabilities:
Delete registry value

Disassembly:
mov rax, r9
mov r10, r8
mov r9b, byte [rsp + 0x28]
mov rcx, rdx
mov r8, rax
mov rdx, r10
jmp fcn.14000952c

Function at 0x14002fe00
Capabilities:
Delete registry value

Disassembly:
mov rax, r9
mov r10, r8
mov r9d, dword [rsp + 0x28]
mov rcx, rdx
mov r8, rax
mov rdx, r10
jmp 0x140009538

Function at 0x14002fe60
Capabilities:
Query or enumerate registry key

Disassembly:
movzx r8d, r8b
add r8d, r8d
jmp fcn.140009a08
mov al, r9b
mov r10, r8
mov r9, qword [rsp + 0x28]
mov rcx, rdx
mov r8b, al
mov rdx, r10
jmp 0x1400099fc

Function at 0x14002fe80
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, r9b
mov r10, r8
mov r9, qword [rsp + 0x28]
mov rcx, rdx
mov r8b, al
mov rdx, r10
jmp fcn.140009bec

Function at 0x14002ffa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140050240]
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 sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x14000b429
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400031d4
jmp 0x14000b43d
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.140034370
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
mov rcx, rdx
jmp 0x14000b3c8
Function at 0x140030040
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rsi, qword [rsp + 0x8b0]
mov rdi, r8
movzx r9d, r9b
shl r9d, 8
add r9d, 0x20019
cmp qword [rdx + 0x18], 8
jb 0x14000c0dd
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x3c], 0x820
test eax, eax
cmovle ebx, eax
and dword [rsp + 0x38], 0
test ebx, ebx
js 0x14000c181
cmp qword [rdi + 0x18], 8
jb 0x14000c119
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 0x14000c176
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x14000c167
mov ebx, 0x8007065d
jmp 0x14000c176
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400031d4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140034370
add rsp, 0x870
pop rdi
pop rsi
pop rbx
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 0x14000c09c
Function at 0x140030080
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 [0x140050240]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov rax, qword [rcx]
cmp rax, qword [rcx + 8]
je 0x14000c2ca
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 [0x140042580]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
lea rcx, [rbp - 0x30]
call fcn.14000c1a0
mov edi, eax
test eax, eax
js 0x14000c419
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 0x14000c349
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 0x14000c3f2
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 0x14000c3f2
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 0x14000c3eb
mov eax, dword [rbp - 0x4c]
mov dword [rbp - 0x48], eax
mov edx, eax
lea r8, [rbp - 0x50]
mov rcx, rbx
call fcn.140006840
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 0x14000c419
jmp 0x14000c40c
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 0x14000c419
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.140003170
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140034370
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 0x14000c294
Function at 0x1400300c0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x14000c863
mov rax, qword [rcx]
lea rsi, [rcx + 0x10]
xor r14d, r14d
mov qword [rsi], r14
mov word [rax], r14w
mov dword [rbp - 0x2c], r14d
lea r8, [rbp - 0x2c]
xor edx, edx
lea ecx, [rdx + 8]
call sub.Secur32.dll_GetUserNameExW
mov eax, dword [rbp - 0x2c]
test eax, eax
je 0x14000c93f
xorps xmm0, xmm0
mov edx, eax
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r14
lea rcx, [rbp - 0x28]
call fcn.1400054cc
nop
lea r8, [rbp - 0x2c]
mov rdx, qword [rbp - 0x28]
lea ecx, [r14 + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x14000c8fc
mov edx, dword [rbp - 0x2c]
cmp rdx, qword [rdi + 0x18]
ja 0x14000c8eb
cmp qword [rdi + 0x18], 8
jb 0x14000c8ce
mov rdi, qword [rdi]
mov qword [rsi], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x14000c8fc
mov r9, qword [rbp - 0x28]
mov r8b, byte [rbp - 0x30]
mov rcx, rdi
call fcn.14000354c
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000c93f
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c93a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c93a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003460c
cmp qword [rsi], r14
setne al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140034370
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rdx
jmp 0x14000c830

Function at 0x140030100
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140010328
mov cl, al
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000cbb8
mov rcx, rdx
jmp 0x14000cb98

Function at 0x140030110
Capabilities:
Get common file path

Disassembly:
mov cl, dl
mov rdx, r8
jmp fcn.14000cbb8

Function at 0x140030160
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x34], 1
xor ebx, ebx
mov dword [rsp + 0x30], 0x104
call fcn.14000cb64
mov rcx, rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, str.Version
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftOneDrive
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14000d1f6
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400031d4
jmp 0x14000d1fb
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140034370
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
mov rcx, rdx
jmp 0x14000d168
Function at 0x140030170
Capabilities:
Query or enumerate registry value

Disassembly:
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 fcn.14000d2c8

Function at 0x1400301a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov rax, qword [rsp + 0x38]
mov r10, r9
mov r9d, dword [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov qword [rsp + 0x30], rax
mov r8, r10
mov rdx, r11
pop rbx
jmp fcn.14000d2d4

Function at 0x1400301d0
Capabilities:
Query or enumerate registry value

Disassembly:
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 fcn.14000d3d8