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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
and qword [rbp - 0x20], 0
xor r9d, r9d
lea r8, [0x140071208]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x18]
call fcn.140014f90
nop
test rdi, rdi
je 0x140019624
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x140019628
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
cmove rdi, qword [rbp - 0x10]
mov qword [rbp - 0x20], rdi
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140019624
or dword [rbp + 0x20], 0xffffffff
test rdi, rdi
je 0x1400195c9
and dword [rbp + 0x30], 0
mov dword [rbp + 0x38], 4
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.IsPerMonitorAware
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400195b2
cmp dword [rbp + 0x30], 4
jne 0x1400195c9
cmp dword [rbp + 0x38], 4
jne 0x1400195c9
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400195c9
mov eax, dword [rbp + 0x20]
jmp 0x1400195d1
mov eax, 1
mov dword [rbp + 0x20], eax
mov dword [0x14009192c], eax
test rdi, rdi
je 0x1400195ed
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x20], 0
mov eax, dword [rbp + 0x20]
test eax, eax
setne dil
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019612
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140019622
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140019656
mov rax, qword [rbp - 0x18]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019643
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140019653
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor dil, dil
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, dil
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ace0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001ad4f
cmp byte [rcx + 0x71], 0
je 0x14001ad4f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001ada4
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001ad69
sub eax, 1
je 0x14001ad6d
cmp eax, 2
jne 0x14001ada4
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001ad9b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001ada4
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001ad51
xor al, al
jmp 0x14001ad51

Function at 0x14001e38c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x30
mov r8, qword [rdx]
lea rax, [r11 + 0x18]
and qword [r11 - 0x10], 0
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
xor edx, edx
and qword [r11 + 0x18], 0
xor r9d, r9d
mov qword [r11 - 0x18], rax
call fcn.1400117c4
test eax, eax
je 0x14001e43e
mov rbx, qword [rsp + 0x50]
lea rdx, str.BRANDINGDATA
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001e42b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xc8
jne 0x14001e42b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001e42b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14001e42b
mov qword [rsi + 0x28], rax
mov al, 1
mov qword [rsi + 0x20], rbx
jmp 0x14001e440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x14001e43e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001fa5c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor r9d, r9d
xor r8d, r8d
lea ebx, [r9 + 1]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001fbb8
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14001fbb2
lea ecx, [rbx + 0x17]
call fcn.1400520fc
mov rbx, rax
test rax, rax
je 0x14001fad3
and qword [rax + 8], 0
and qword [rax + 0x10], 0
jmp 0x14001fad5
xor ebx, ebx
mov qword [rbx], r14
mov rcx, rdi
call fcn.14001e740
mov qword [rbx + 8], rax
mov rcx, rsi
call fcn.14001e740
mov qword [rbx + 0x10], rax
cmp qword [rbx + 8], 0
je 0x14001fb42
test rax, rax
je 0x14001fb42
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x14001fbc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14001fb42
mov rax, rdi
xor edi, edi
mov qword [r14 + 0x80], rax
mov rax, rsi
xor esi, esi
mov qword [r14 + 0x88], rax
xor ebx, ebx
jmp 0x14001fb44
xor ebp, ebp
test rbx, rbx
je 0x14001fb7f
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001fb5d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x10], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001fb71
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 8], 0
mov edx, DispGetParam
mov rcx, rbx
call fcn.140052590
nop
test rsi, rsi
je 0x14001fb8e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rdi, rdi
je 0x14001fb9c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call fcn.140014838
nop
call fcn.140014838
int3
Function at 0x14002358c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov r11, r8
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x58], edx
movabs r9, 0xcbf29ce484222325
mov rdx, r9
xor ecx, ecx
movabs rsi, 0x100000001b3
movzx eax, byte [rsp + rcx + 0x58]
xor rdx, rax
imul rdx, rsi
inc rcx
cmp rcx, 4
jb 0x1400235c0
mov rcx, qword [0x140092230]
and rcx, rdx
add rcx, rcx
mov r8, qword [0x140092218]
mov rax, qword [r8 + rcx*8 + 8]
mov rdx, qword [0x140092208]
cmp rax, rdx
je 0x140023610
mov r10, qword [r8 + rcx*8]
jmp 0x140023609
cmp rax, r10
je 0x140023610
mov rax, qword [rax + 8]
cmp edi, dword [rax + 0x10]
jne 0x140023600
jmp 0x140023612
xor eax, eax
mov rcx, rdx
test rax, rax
cmovne rcx, rax
cmp rcx, rdx
je 0x14002363a
mov rcx, qword [rcx + 0x18]
sub rcx, 0x18
call fcn.14000a2b4
add rax, 0x18
mov qword [rbx], rax
jmp 0x140023721
cmp r11, 0xbabe
jne 0x1400236bc
mov dword [rsp + 0x58], edi
xor ecx, ecx
movzx eax, byte [rsp + rcx + 0x58]
xor r9, rax
imul r9, rsi
inc rcx
cmp rcx, 4
jb 0x140023649
and r9, qword [0x140092270]
add r9, r9
mov rcx, qword [0x140092258]
mov rax, qword [rcx + r9*8 + 8]
mov rdx, qword [0x140092248]
cmp rax, rdx
je 0x140023696
mov r8, qword [rcx + r9*8]
jmp 0x14002368f
cmp rax, r8
je 0x140023696
mov rax, qword [rax + 8]
cmp edi, dword [rax + 0x10]
jne 0x140023686
jmp 0x140023698
xor eax, eax
mov rcx, rdx
test rax, rax
cmovne rcx, rax
cmp rcx, rdx
jne 0x140023621
lea rdx, str.UNKNOWN_COM_MESSAGE
mov rcx, rbx
call fcn.140009580
jmp 0x140023721
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1400234bc
nop
mov dword [rsp + 0x58], edi
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x28]
call fcn.140025354
mov rcx, qword [rax]
add rcx, 0x18
lea rdx, [rsp + 0x68]
call fcn.140009900
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
call fcn.14000a2b4
add rax, 0x18
mov qword [rbx], rax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140023721
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140023c2c
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 [0x140090008]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rdx
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x140023dca
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x140023d0b
lea rcx, [rbx - 0x18]
call fcn.14000a2b4
add rax, 0x18
mov qword [rdi], rax
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140023ce5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140023daa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140023daa
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140009580
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140009900
nop
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 0x140023d4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.140009210
mov r14, qword [rsp + 0x30]
lea rcx, [r14 - 0x18]
call fcn.14000a2b4
add rax, 0x18
mov qword [rdi], rax
mov eax, ebx
lock xadd dword [r14 - 8], eax
add eax, ebx
test eax, eax
jg 0x140023d8c
mov rcx, qword [r14 - 0x18]
mov rax, qword [rcx]
lea rdx, [r14 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140023daa
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.140052570
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3

Function at 0x140023e38
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 0x140023e5f
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 0x1400240ec
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1400240dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rdi
lea rdx, str._sPIDs_d
mov r9d, eax
lea rcx, [rbp + 0x380]
call fcn.140025038
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
test eax, eax
js 0x1400242e7
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x380]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024232
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 0x140024227
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 rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140023734
cmp al, 1
jne 0x1400242e7
mov r9d, 0x104
movzx eax, si
mov ecx, r9d
lea rdi, [rbp + 0x170]
rep stosw word [rdi], ax
lea rdi, [rsp + 0x60]
mov edx, r9d
lea rax, [rbp + 0x170]
sub rdi, rax
lea rcx, [rbp + 0x170]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140024298
movzx eax, word [rdi + rcx]
test ax, ax
je 0x140024298
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140024276
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
lea rcx, [rsp + 0x60]
mov word [rax], si
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x1400242af
sub r9, rax
lea r8, str.debuggee.mdmp
mov rdx, r9
lea rcx, [rbp + 0x170]
call fcn.140023324
mov edx, 2
lea rcx, [rbp + 0x170]
lea r8d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WerRegisterFile]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x6d0]
add rsp, 0x6a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002430c
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, 0x60
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 0x14002432e
mov rcx, qword [0x140092550]
and rcx, rdx
add rcx, rcx
mov r8, qword [0x140092538]
mov rax, qword [r8 + rcx*8 + 8]
mov rdx, qword [0x140092528]
cmp rax, rdx
je 0x140024389
mov r9, qword [r8 + rcx*8]
mov ecx, dword [rsi]
jmp 0x140024382
cmp rax, r9
je 0x140024389
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x140024379
jmp 0x14002438b
xor eax, eax
mov rbx, rdx
test rax, rax
cmovne rbx, rax
cmp rbx, rdx
jne 0x1400244a5
mov r8, qword [rdi + 0x10]
mov edx, dword [rsi]
lea rcx, [rbp + 0x20]
call fcn.14002358c
mov rbx, rax
mov qword [rbp + 0x28], rax
mov ecx, dword [rsi]
mov dword [rbp - 0x30], ecx
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000a2b4
add rax, 0x18
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
mov r8, rdi
xor edx, edx
lea rcx, [rbp - 0x18]
call fcn.140025b04
nop
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 0x140024411
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea r9, [rbp - 0x30]
mov r8, rsi
lea rdx, [rbp - 0x40]
call fcn.140025090
nop
mov r8, qword [rbp - 0x18]
test r8, r8
je 0x140024485
mov rcx, qword [rbp - 8]
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 0x14002447d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002447d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140052590
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400244db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400244db
lea rcx, [rbx + 0x30]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1400244d0
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 0x1400244d8
mov r8, rdi
call fcn.140025b04
inc dword [rbx + 0x28]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002568c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x1400256bc
cvtsi2ss xmm0, rdx
jmp 0x1400256d1
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14007f608]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x1400256ff
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400256ff
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 0x14002572d
cmp rbx, 0x200
jae 0x14002572a
shl rbx, 3
cmp rbx, rcx
jae 0x14002572d
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x140025756
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 [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140009980
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140025868
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x1400257af
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x1400257ee
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x14002585c
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x140025831
mov r10, qword [r10]
cmp r10, rax
je 0x1400257e7
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 0x1400257e7
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x14002587e
cmp qword [rdi + r11*8], r10
jne 0x140025827
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
jne 0x14002579f
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
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 0x14002585c
Function at 0x1400258a4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140092530]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x140092558]
js 0x1400258cc
cvtsi2ss xmm0, rcx
jmp 0x1400258e1
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x140092520]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14007f608]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140025913
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140025913
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 0x140025941
cmp rbx, 0x200
jae 0x14002593e
shl rbx, 3
cmp rbx, rcx
jae 0x140025941
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x14002596a
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 [0x140092528]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x140092538]
lea rdx, [rdi + rdi]
call fcn.140009980
mov rax, qword [0x140092528]
lea r9, [rdi - 1]
mov qword [0x140092550], r9
mov qword [0x140092558], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140025ab8
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 0x1400259d2
mov rdi, qword [0x140092538]
and r11, r9
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x140025a10
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x140025a7e
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x140025a53
mov r10, qword [r10]
cmp r10, rax
je 0x140025a09
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 0x140025a09
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x140025a92
cmp qword [rdi + r11*8], r10
jne 0x140025a49
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 0x140025ab8
mov r9, qword [0x140092550]
jmp 0x1400259c2
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 0x140025a7e
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret