joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035820
Capabilities:
Hash data using fnv

Disassembly:
cmp rdx, r8
je 0x140035a6c
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, r8
mov r14, rdx
mov rdi, rcx
lea r15, [rcx + 8]
movabs r8, 0x7ffffffffffffff
xor r13d, r13d
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
movzx ebp, byte [r14]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [r14 + 1]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [r14 + 2]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [r14 + 3]
xor rbp, rax
imul rbp, rcx
mov rdx, qword [rdi + 0x30]
and rdx, rbp
add rdx, rdx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
mov rsi, qword [r15]
cmp rax, rsi
je 0x1400358db
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [r14]
cmp ecx, dword [rax + 0x10]
je 0x140035a48
cmp rax, rdx
je 0x1400358d8
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x1400358c5
jmp 0x140035a48
mov rsi, rax
cmp qword [rdi + 0x10], r8
je 0x140035a6d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r13
lfence
mov ecx, 0x20
call fcn.1400e9d0c
mov rbx, rax
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [r14]
movups xmmword [rax + 0x10], xmm0
mov r8, qword [rdi + 0x10]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140035923
cvtsi2ss xmm0, rcx
jmp 0x140035938
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rdi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14003594b
cvtsi2ss xmm1, rcx
jmp 0x140035960
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rdi]
seta al
test al, al
je 0x1400359df
mov rcx, rdi
call fcn.140036c80
mov rax, qword [rdi + 0x30]
and rax, rbp
add rax, rax
mov r8, qword [rdi + 0x18]
mov rcx, qword [r8 + rax*8 + 8]
mov rdx, qword [r15]
cmp rcx, rdx
jne 0x14003599d
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], r13
jmp 0x1400359cb
mov rdx, qword [r8 + rax*8]
mov eax, dword [rbx + 0x10]
cmp eax, dword [rcx + 0x10]
je 0x1400359be
nop dword [rax]
cmp rcx, rdx
je 0x140035a1b
mov rcx, qword [rcx + 8]
cmp eax, dword [rcx + 0x10]
jne 0x1400359b0
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x40], xmm0
mov r8, qword [rdi + 0x10]
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x38], r13
mov rdx, qword [rsi + 8]
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov qword [rbx], rsi
mov qword [rbx + 8], rdx
mov qword [rdx], rbx
mov qword [rsi + 8], rbx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x30]
and rax, rbp
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [r15]
jne 0x140035a27
mov qword [rcx + rax*8], rbx
jmp 0x140035a39
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], r13
jmp 0x1400359cb
cmp r8, rsi
jne 0x140035a32
mov qword [rcx + rax*8], rbx
jmp 0x140035a3e
cmp qword [rcx + rax*8 + 8], rdx
jne 0x140035a3e
mov qword [rcx + rax*8 + 8], rbx
movabs r8, 0x7ffffffffffffff
add r14, 0x10
cmp r14, r12
jne 0x140035857
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1400c65c4
int3
Function at 0x140035c20
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, r9
mov rdi, r8
mov dword [rsp + 0x90], edx
cmp qword [r8 + 0x18], 8
jb 0x140035c56
mov rdi, qword [r8]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x30]
lea rcx, [0x14018f9e0]
call fcn.140035540
mov rcx, qword [rax]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140035cdd
test eax, eax
jne 0x140035d41
cmp qword [rbx + 0x18], 8
jb 0x140035caf
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, 0xfffffffc
jne 0x140035d00
cmp ebx, 1
je 0x140035d00
mov al, 1
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400e9cb0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Failed_to_delete_registry_value._Error_code:
lea rcx, [rsp + 0x48]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x30]
call fcn.1400ebeac
nop
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key._Code:
lea rcx, [rsp + 0x68]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x30]
call fcn.1400ebeac
int3
Function at 0x140036080
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, r9
mov rdi, r8
mov dword [rsp + 0x90], edx
mov rsi, qword [rsp + 0xf0]
cmp qword [r8 + 0x18], 8
jb 0x1400360bc
mov rdi, qword [r8]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x30]
lea rcx, [0x14018f9e0]
call fcn.140035540
mov rcx, qword [rax]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140036169
test eax, eax
jne 0x1400361c7
mov dword [rsp + 0x98], 4
cmp qword [rbx + 0x18], 8
jb 0x140036120
mov rbx, qword [rbx]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [rbx - 2]
cmp ecx, 1
jbe 0x140036169
test ebx, ebx
jne 0x140036186
mov al, 1
jmp 0x14003616b
xor al, al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Registry_key_value_query_failed._Error_code:
lea rcx, [rsp + 0x48]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x30]
call fcn.1400ebeac
nop
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key._Code:
lea rcx, [rsp + 0x68]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x30]
call fcn.1400ebeac
int3
Function at 0x1400364f0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r9
mov rsi, r8
mov dword [rsp + 0xb0], edx
mov rbx, qword [rsp + 0x100]
cmp qword [r8 + 0x18], 0x10
jb 0x14003652c
mov rsi, qword [r8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x50]
lea rcx, [0x14018f9e0]
call fcn.140035540
mov rcx, qword [rax]
xor edx, edx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140036641
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140036595
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
jb 0x14003659f
mov rdi, qword [rdi]
mov eax, dword [rbx + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400365fd
mov al, 1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
mov edx, ebx
lea rcx, [rsp + 0x88]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Registry_key_value_set_failed._Error_code:
lea rcx, [rsp + 0x68]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x50]
call fcn.1400ebeac
nop
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key._Code:
lea rcx, [rsp + 0x88]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x50]
call fcn.1400ebeac
int3
Function at 0x140036690
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r9
mov rsi, r8
mov dword [rsp + 0xb0], edx
mov rbx, qword [rsp + 0x100]
cmp qword [r8 + 0x18], 8
jb 0x1400366cc
mov rsi, qword [r8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x50]
lea rcx, [0x14018f9e0]
call fcn.140035540
mov rcx, qword [rax]
xor edx, edx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400367e1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140036735
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14003673f
mov rdi, qword [rdi]
mov eax, dword [rbx + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14003679d
mov al, 1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
mov edx, ebx
lea rcx, [rsp + 0x88]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Registry_key_value_set_failed._Error_code:
lea rcx, [rsp + 0x68]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x50]
call fcn.1400ebeac
nop
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key._Code:
lea rcx, [rsp + 0x88]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x50]
call fcn.1400ebeac
int3
Function at 0x140036830
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rbx, r9
mov rdi, r8
mov dword [rsp + 0xb0], edx
cmp qword [r8 + 0x18], 8
jb 0x140036866
mov rdi, qword [r8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x50]
lea rcx, [0x14018f9e0]
call fcn.140035540
mov rcx, qword [rax]
xor edx, edx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140036976
cmp qword [rbx + 0x18], 8
jb 0x1400368cc
mov rbx, qword [rbx]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140036932
mov al, 1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400e9cb0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov edx, ebx
lea rcx, [rsp + 0x88]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Registry_key_value_set_failed._Error_code:
lea rcx, [rsp + 0x68]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x50]
call fcn.1400ebeac
nop
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key._Code:
lea rcx, [rsp + 0x88]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x50]
call fcn.1400ebeac
int3
Function at 0x140036ab0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140036c6e
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400369c0
mov rcx, qword [rsi + 8]
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140036c37
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140036ba3
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140036c26
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140036be0
mov r10, qword [rax]
cmp r10, rcx
je 0x140036bda
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140036c26
mov r8, rax
cmp r10, rax
je 0x140036c02
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x140036c48
cmp r10, rax
jne 0x140036bf0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140036b50
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140036c26
lea rcx, str.invalid_hash_bucket_count
call fcn.1400c65c4
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140036ca5
cvtsi2ss xmm0, rdx
jmp 0x140036cba
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1400f8c14
movss xmm1, dword [0x140131b70]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140036ce8
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140036ce8
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140036d1a
cmp rbx, 0x200
jae 0x140036d17
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x140036d1a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140036ab0
Function at 0x140038950
Capabilities:
Shutdown system

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov qword [r11 - 0x30], 0xffffffffffffffff
lea r8, [r11 - 0x18]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor edi, edi
test eax, eax
je 0x140038a1d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x88]
lea edx, [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140038a1d
mov dword [rsp + 0x90], 1
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x94], rax
mov dword [rsp + 0x9c], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140038a1d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor edx, edx
lea r8d, [rdi + 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
mov ebx, edi
test eax, eax
jne 0x140038a2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x9c], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x88]
cmp rcx, 0xffffffffffffffff
je 0x140038a6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140038a90
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400e9cb0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.14000ad50
nop
mov r8, rax
lea rdx, str.Failed_to_restart_system._Error_code:
lea rcx, [rsp + 0x68]
call fcn.140009d80
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140033470
lea rdx, [0x140180ae0]
lea rcx, [rsp + 0x30]
call fcn.1400ebeac
int3
Function at 0x14005b8d0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
lea r9, [rcx + 0x58]
lea rdx, [rsp + 0x38]
mov rax, qword [rax]
call qword [case.0x1400341b6.0]
nop
cmp dword [rsp + 0x38], 0
je 0x14005b935
lea rdx, [rsp + 0x38]
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
jmp 0x14005b9f6
movzx eax, word [rbx + 0x58]
cmp eax, dword [rbx + 8]
jne 0x14005b9ca
movzx r8d, word [rbx + 0x5a]
movzx edx, r8b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
mov eax, r8d
shr rax, 8
xor rdx, rax
imul rdx, rcx
mov eax, r8d
shr rax, 0x10
xor rdx, rax
imul rdx, rcx
mov eax, r8d
shr rax, 0x18
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rbx + 0x48]
and rcx, rdx
shl rcx, 4
add rcx, qword [rbx + 0x30]
mov rax, qword [rcx + 8]
cmp rax, qword [rbx + 0x20]
je 0x14005b9ca
mov rcx, qword [rcx]
cmp r8d, dword [rax + 0x10]
je 0x14005b9c1
cmp rax, rcx
je 0x14005b9ca
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
jne 0x14005b9b2
test rax, rax
je 0x14005b9ca
mov al, 1
jmp 0x14005b9cc
xor al, al
mov byte [rbx + 0x5e], al
movzx eax, word [rbx + 0x5c]
cmp eax, dword [rbx + 0xc]
jne 0x14005b9e1
mov dword [rbx + 0x60], 1
jmp 0x14005b9ed
cmp eax, dword [rbx + 0x10]
jne 0x14005b9ed
mov dword [rbx + 0x60], 2
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
lea rcx, [rsp + 0x38]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140091f60
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x14009211e
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.1400369c0
mov rdx, qword [rsi + 8]
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rbx
mov rdx, qword [rdx]
cmp rdx, rdi
je 0x1400920e7
mov qword [rsp + 0x50], rbp
mov rcx, rdx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rbx
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rbx
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rbx
xor r9, rax
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rdi
jne 0x140092053
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1400920d6
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140092090
mov r10, qword [rax]
cmp r10, rcx
je 0x14009208a
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1400920d6
mov r8, rax
cmp r10, rax
je 0x1400920b2
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x1400920f8
cmp r10, rax
jne 0x1400920a0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rdi
jne 0x140092000
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1400920d6
lea rcx, str.invalid_hash_bucket_count
call fcn.1400c65c4
int3

Function at 0x1400941a0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
call fcn.140094400
test eax, eax
jne 0x1400941f1
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0x40
pop rbx
ret