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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
lea rax, [rbp - 0x50]
xor ebx, ebx
mov qword [r11 - 0x78], rax
lea rdx, str.SoftwareMicrosoftVisualStudio17.0
mov qword [rbp - 0x50], rbx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov r15d, 0x80070000
test eax, eax
jne 0x1400418b4
mov rdi, qword [rbp - 0x50]
jmp 0x1400418c6
movzx eax, cx
mov rdi, rbx
or eax, r15d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140041922
lea rax, [rbp - 0x48]
mov dword [rbp - 0x48], 8
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x44]
lea rax, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.SetupMessageTimestamp
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140041905
cmp dword [rbp - 0x44], 0xb
je 0x14004194d
lea ecx, [rax + 0xd]
movzx eax, cx
or eax, r15d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14004194d
test rdi, rdi
je 0x140041922
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, dword [rbp - 0x3c]
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x34], eax
lea rcx, [rbp - 0x38]
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x38], eax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x140041990
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test rdi, rdi
je 0x14004198a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x140041922
jmp 0x14004199e
test rdi, rdi
je 0x14004199e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1400419c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, r15d
test ecx, ecx
cmovle eax, ecx
jmp 0x140041924
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1400419af
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setle bl
mov eax, ebx
jmp 0x140041924
Function at 0x140041fb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r11, r8
mov edi, edx
mov rbx, rcx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x30], edx
movabs rcx, 0xcbf29ce484222325
mov r8, rcx
xor edx, edx
movabs rsi, 0x100000001b3
movzx eax, byte [rbp + rdx - 0x30]
xor r8, rax
imul r8, rsi
inc rdx
cmp rdx, 4
jb 0x140041ff5
mov rdx, qword [0x140093490]
and rdx, r8
add rdx, rdx
mov r9, qword [0x140093478]
mov rax, qword [r9 + rdx*8 + 8]
mov r8, qword [0x140093468]
cmp rax, r8
je 0x140042045
mov r10, qword [r9 + rdx*8]
jmp 0x14004203e
cmp rax, r10
je 0x140042045
mov rax, qword [rax + 8]
cmp edi, dword [rax + 0x10]
jne 0x140042035
jmp 0x140042047
xor eax, eax
mov rdx, r8
test rax, rax
cmovne rdx, rax
cmp rdx, r8
je 0x14004206f
mov rcx, qword [rdx + 0x18]
sub rcx, 0x18
call fcn.140002a70
add rax, 0x18
mov qword [rbx], rax
jmp 0x14004215b
cmp r11, 0xbabe
jne 0x1400420f5
mov dword [rbp - 0x30], edi
xor edx, edx
movzx eax, byte [rbp + rdx - 0x30]
xor rcx, rax
imul rcx, rsi
inc rdx
cmp rdx, 4
jb 0x14004207d
and rcx, qword [0x1400934d0]
add rcx, rcx
mov r8, qword [0x1400934b8]
mov rax, qword [r8 + rcx*8 + 8]
mov rdx, qword [0x1400934a8]
cmp rax, rdx
je 0x1400420ca
mov r9, qword [r8 + rcx*8]
jmp 0x1400420c3
cmp rax, r9
je 0x1400420ca
mov rax, qword [rax + 8]
cmp edi, dword [rax + 0x10]
jne 0x1400420ba
jmp 0x1400420cc
xor eax, eax
mov rcx, rdx
test rax, rax
cmovne rcx, rax
cmp rcx, rdx
je 0x1400420e4
mov rcx, qword [rcx + 0x18]
jmp 0x14004205a
lea rdx, str.UNKNOWN_COM_MESSAGE
mov rcx, rbx
call fcn.140002f00
jmp 0x14004215b
and qword [rbp - 0x18], 0
mov edx, edi
lea rcx, [rbp - 0x18]
call fcn.140041ee0
nop
mov dword [rbp - 0x30], edi
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x28]
call fcn.1400436fc
mov rcx, qword [rax]
add rcx, 0x18
lea rdx, [rbp - 0x18]
call fcn.1400068a0
mov rcx, qword [rbp - 0x18]
add rcx, 0xffffffffffffffe8
call fcn.140002a70
add rax, 0x18
mov qword [rbx], rax
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004215b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400422e4
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x30], 1
xor eax, eax
mov qword [rcx], rax
call fcn.140002950
mov rcx, rax
xor r14d, r14d
test rax, rax
je 0x14004244b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x30], 1
mov word [rsp + 0x50], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1400423b8
mov dword [rsp + 0x30], r14d
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004242b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004242b
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140002f00
lea rdx, [rsp + 0x38]
mov rcx, rdi
nop
call fcn.1400068a0
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400423fa
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
mov rcx, rdi
call fcn.14000a324
mov dword [rsp + 0x30], r14d
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x14004242b
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140001020
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3

Function at 0x1400424d0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400424f7
mov rcx, qword [rbx]
mov edx, 2
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_WerRegisterFile]
add rsp, 0x20
pop rbx
ret
Function at 0x1400427b4
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
lea rcx, [rsp + 0x62]
xor edx, edx
mov word [rsp + 0x60], si
mov r8d, 0x206
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1400427a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rdi
lea rdx, str._sPIDs_d
mov r9d, eax
lea rcx, [rbp + 0x170]
call fcn.1400433f0
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400428fe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x170]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400428fe
mov rcx, qword [rsp + 0x30]
lea r9d, [rsi + 4]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ShutdownReason
mov dword [rsp + 0x38], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1400428f3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
lea r9d, [rsi + 0xb]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CrashTime
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x140042920
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rsi, [rcx + 8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
movzx eax, byte [rcx + rsi]
xor rdx, rax
movabs r8, 0x100000001b3
imul rdx, r8
inc rcx
cmp rcx, 4
jb 0x14004294d
mov rcx, qword [0x140093450]
and rcx, rdx
add rcx, rcx
mov r8, qword [0x140093438]
mov rax, qword [r8 + rcx*8 + 8]
mov rdx, qword [0x140093428]
cmp rax, rdx
je 0x1400429a8
mov r9, qword [r8 + rcx*8]
mov ecx, dword [rsi]
jmp 0x1400429a1
cmp rax, r9
je 0x1400429a8
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x140042998
jmp 0x1400429aa
xor eax, eax
mov rbx, rdx
test rax, rax
cmovne rbx, rax
cmp rbx, rdx
jne 0x140042ad5
mov r8, qword [rdi + 0x10]
mov edx, dword [rsi]
lea rcx, [rbp - 0x60]
call fcn.140041fb0
mov rbx, rax
mov qword [rbp - 0x28], rax
mov ecx, dword [rsi]
mov dword [rbp - 0x58], ecx
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.140002a70
add rax, 0x18
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
and qword [rbp - 0x30], 0
mov r8, rdi
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140043c4c
mov rdx, qword [rbx]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140042a32
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea r9, [rbp - 0x58]
mov r8, rsi
lea rdx, [rbp - 0x18]
call fcn.140043448
mov r8, qword [rbp - 0x40]
test r8, r8
je 0x140042ab2
mov rcx, qword [rbp - 0x30]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x140042a9d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042a9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140002ef0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
and qword [rbp - 0x30], 0
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140042b0b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140042b0b
lea rcx, [rbx + 0x30]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140042b00
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rdx + 0x20], xmm0
add qword [rcx + 8], 0x30
jmp 0x140042b08
mov r8, rdi
call fcn.140043c4c
inc dword [rbx + 0x28]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400436fc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov r14, rdx
movabs rbp, 0xcbf29ce484222325
xor ecx, ecx
movzx eax, byte [r8 + rcx]
xor rbp, rax
movabs rdx, 0x100000001b3
imul rbp, rdx
inc rcx
cmp rcx, 4
jb 0x14004371e
mov rax, qword [0x140093490]
and rax, rbp
add rax, rax
mov rcx, qword [0x140093478]
mov rbx, qword [rcx + rax*8 + 8]
mov rsi, qword [0x140093468]
cmp rbx, rsi
jne 0x140043786
mov rbx, rsi
movabs rax, 0x7ffffffffffffff
cmp qword [0x140093470], rax
jne 0x1400437bf
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rdx, qword [rcx + rax*8]
mov eax, dword [r8]
jmp 0x140043798
cmp rbx, rdx
je 0x1400437b8
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x14004378f
mov rsi, qword [rbx]
mov rax, rbx
mov rbx, rsi
test rax, rax
je 0x140043765
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x14004393f
mov rsi, rbx
xor eax, eax
jmp 0x1400437a6
lea rax, [0x140093468]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
lfence
mov ecx, SafeArrayAllocDescriptor
call fcn.140002eb0
mov rdi, rax
mov qword [rsp + 0x38], rax
mov ecx, dword [r15]
mov dword [rax + 0x10], ecx
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x140043953
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi + 0x18], rax
mov r8, qword [0x140093470]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140043825
cvtsi2ss xmm0, rcx
jmp 0x14004383a
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x140093498]
xorps xmm1, xmm1
test rcx, rcx
js 0x140043850
cvtsi2ss xmm1, rcx
jmp 0x140043865
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x140093460]
seta al
test al, al
je 0x1400438d6
lea rcx, [0x140093460]
call fcn.1400264e0
mov rcx, qword [0x140093490]
and rcx, rbp
add rcx, rcx
mov rdx, qword [0x140093478]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [0x140093468]
cmp rax, rbx
je 0x1400438c5
mov r8, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
jmp 0x1400438bd
mov rbx, rax
cmp rax, r8
je 0x140043919
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x1400438b1
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rsi, qword [rsp + 0x20]
mov r8, qword [0x140093470]
mov rdx, qword [rbx + 8]
inc r8
mov qword [0x140093470], r8
mov qword [rdi], rsi
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [0x140093478]
mov rax, qword [0x140093490]
and rax, rbp
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [0x140093468]
jne 0x140043920
mov qword [rcx + rax*8], rdi
jmp 0x140043932
mov qword [rsp + 0x20], rax
jmp 0x1400438ca
cmp r8, rsi
jne 0x14004392b
mov qword [rcx + rax*8], rdi
jmp 0x140043937
cmp qword [rcx + rax*8 + 8], rdx
jne 0x140043937
mov qword [rcx + rax*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x140043a10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140093430]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x140093458]
js 0x140043a38
cvtsi2ss xmm0, rcx
jmp 0x140043a4d
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x140093420]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140069584]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140043a7f
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140043a7f
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 0x140043aad
cmp rbx, 0x200
jae 0x140043aaa
shl rbx, 3
cmp rbx, rcx
jae 0x140043aad
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x140043ad6
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [0x140093428]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x140093438]
lea rdx, [rdi + rdi]
call fcn.140025588
mov rax, qword [0x140093428]
lea r9, [rdi - 1]
mov qword [0x140093450], r9
mov qword [0x140093458], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140043c24
mov rcx, qword [rcx]
movabs r11, 0xcbf29ce484222325
xor r8d, r8d
movzx edx, byte [r8 + rax + 0x10]
movabs r10, 0x100000001b3
xor r11, rdx
inc r8
imul r11, r10
cmp r8, 4
jb 0x140043b3e
mov rdi, qword [0x140093438]
and r11, r9
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x140043b7c
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x140043bea
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x140043bbf
mov r10, qword [r10]
cmp r10, rax
je 0x140043b75
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140043b75
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x140043bfe
cmp qword [rdi + r11*8], r10
jne 0x140043bb5
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
je 0x140043c24
mov r9, qword [0x140093450]
jmp 0x140043b2e
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140043bea
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140044468
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, r8
mov rbx, rdx
mov r14, rcx
call fcn.140044434
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
and dword [rsp + 0x38], eax
and qword [rsp + 0x40], rax
and qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400444f0
mov r15, qword [rsp + 0x68]
mov qword [rsp + 0x30], r15
and dword [rsp + 0x38], eax
test eax, eax
je 0x140044513
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test r15, r15
je 0x14004450c
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004467e
and dword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.SplashHash
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140044550
cmp dword [rsp + 0x68], 3
je 0x140044573
lea ebx, [rax + 0xd]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test r15, r15
je 0x14004456c
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x14004467e
mov ebx, dword [rsp + 0x60]
mov rcx, qword [r14 + 8]
call fcn.140002ef0
and dword [r14], 0
and qword [r14 + 8], 0
test ebx, ebx
je 0x1400445a3
mov ecx, ebx
call fcn.140026f10
mov qword [r14 + 8], rax
test rax, rax
je 0x1400446a0
jmp 0x1400445a5
xor eax, eax
mov dword [r14], ebx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.SplashHash
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400445df
cmp dword [rsp + 0x68], 3
je 0x14004460d
lea ebx, [rax + 0xd]
mov rcx, r14
call fcn.140044434
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test r15, r15
je 0x140044609
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x30], 0
mov eax, edi
jmp 0x14004467e
mov r8d, dword [rsp + 0x60]
cmp r8d, 8
jb 0x140044639
add r8d, 0xfffffff8
mov rcx, qword [r14 + 8]
mov eax, dword [r8 + rcx]
mov dword [r14 + 0x1c], eax
mov eax, dword [r8 + rcx + 4]
mov dword [r14 + 0x20], eax
cmp r8d, dword [r14]
ja 0x140044639
mov dword [r14], r8d
cmp r8d, 4
jb 0x140044657
add r8d, 0xfffffffc
mov rax, qword [r14 + 8]
mov ecx, dword [r8 + rax]
mov dword [r14 + 0x18], ecx
cmp r8d, dword [r14]
ja 0x140044657
mov dword [r14], r8d
test r15, r15
je 0x140044665
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14004467e
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
lea rcx, [rsp + 0x48]
call fcn.1400443ec
lea rdx, [0x140081398]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140048c08
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x10
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, qword [rdx]
xor r9d, r9d
test r10, r10
je 0x140048cdc
mov r8d, dword [r10 - 0x10]
lea eax, [r8 - 1]
cmp eax, 0xfffffff
ja 0x140048cdc
movabs rax, 0xb170a1bfb170a1bf
mov qword [rsp], rax
cmp r8d, 0xb
jbe 0x140048cb4
mov r11d, r8d
mov ebx, r8d
shr r11, 2
mov rdx, rbx
add r8d, 0xfffffffc
shr rdx, 2
sub rbx, 4
and edx, 1
mov eax, dword [rsp + rdx*4]
add eax, dword [r10]
add r10, 4
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor eax, ecx
mov dword [rsp + rdx*4], eax
sub r11, 1
jne 0x140048c5d
jmp 0x140048cb4
movzx eax, byte [r10]
dec r8d
mov edx, r8d
and edx, 1
add eax, dword [rsp + rdx*4]
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor eax, ecx
mov dword [rsp + rdx*4], eax
inc r10
test r8d, r8d
jne 0x140048c91
lea rcx, [rsp]
lea edx, [r8 + 2]
imul eax, dword [rcx], 0x19660d
add eax, 0x3c6ef35f
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140048cc1
mov r9, qword [rsp]
mov rax, r9
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140001020
add rsp, 0x10
pop rbx
ret

Function at 0x140049940
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r8
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rdx, qword [rsi]
mov rcx, rdi
test eax, eax
setne bl
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, eax
test eax, eax
je 0x140049996
sub edx, 2
je 0x14004998f
cmp edx, 1
je 0x14004998f
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140049998
mov edi, 1
jmp 0x140049998
xor edi, edi
test bl, bl
je 0x1400499a2
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret