joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f9c4
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
lea r8, [rsp + 0x48]
mov rbp, rcx
lea rdx, [rsp + 0x50]
call fcn.140014c5c
mov rax, qword [0x14008e730]
xor ebx, ebx
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdx, qword [0x14008e728]
test rax, rax
jne 0x14001fa10
test rdx, rdx
je 0x14001fa26
mov rax, rdx
mov qword [0x14008e730], rdx
cmp qword [rax + 0x10], rbx
je 0x14001fa26
cmp qword [rax + 0x10], rsi
jb 0x14001fa26
cmp qword [rax + 0x10], rdi
jbe 0x14001facd
mov qword [0x14008e730], rdx
mov rax, rdx
test rdx, rdx
je 0x14001fa65
mov rcx, rdx
test rdx, rdx
je 0x14001fa4f
cmp qword [rcx + 0x10], rbx
je 0x14001fa4f
cmp qword [rcx + 0x10], rsi
jb 0x14001fa4f
cmp qword [rcx + 0x10], rdi
jbe 0x14001facd
mov rax, qword [rax + 8]
mov qword [0x14008e730], rax
mov rcx, rax
mov rdx, rax
test rax, rax
jne 0x14001fa38
movzx eax, bp
mov r8, rdi
sub rbp, rax
mov rdx, rsi
mov rcx, rbp
call fcn.14001fb08
test rax, rax
je 0x14001faf9
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
mov qword [rax + 0x10], rbx
mov r8d, 0x2a7
mov rcx, qword [0x14008e728]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x14008e728], rax
mov qword [0x14008e730], rax
mov qword [rdx], rbx
mov rbx, rcx
sub rcx, 0x60
lea rdx, [rdx - 0x60]
sub r8, 1
jne 0x14001fab5
mov qword [rax + 0x10], rbx
mov rbx, qword [rax + 0x10]
cmp rbx, rsi
jb 0x14001faf9
cmp rbx, rdi
ja 0x14001faf9
mov rcx, qword [rbx + 0x48]
mov edx, 0xcc
mov qword [rax + 0x10], rcx
mov rcx, rbx
lea r8d, [rdx - 0x6c]
call sub.VCRUNTIME140.dll_memset
mov rax, rbx
jmp 0x14001fafb
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001fbe0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14001fcbe
mov esi, 0x10000
cmp rbx, qword [0x14008e618]
jb 0x14001fc35
cmp rbx, qword [0x14008e620]
ja 0x14001fc35
sub rbx, 0x8000000
jmp 0x14001fcb5
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14001fcbe
cmp dword [rsp + 0x40], esi
jne 0x14001fc99
cmp qword [rsp + 0x38], rsi
jb 0x14001fc99
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14001fcc0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14001fcbe
sub rbx, rsi
jmp 0x14001fcb5
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x14001fc17
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14002315c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r13, rdx
xor edi, edi
mov r14d, edi
mov ebx, 0x80030002
mov dword [rax - 0x68], ebx
mov qword [rax - 0x50], rdi
mov qword [rax - 0x78], rdi
mov dword [rax - 0x80], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x1400231c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x1400234ba
xor edx, edx
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x14002349d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140023492
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002347e
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xc8], edi
lea r8, [rsp + 0xc0]
mov rdx, rax
mov ecx, r12d
call fcn.140014ef4
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0xc8]
mov r8, rsi
mov edx, r12d
mov ecx, dword [rsp + 0xc0]
call fcn.140023714
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1400232df
mov ebx, dword [rsp + 0xc8]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400232d6
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, qword [rsp + 0x50]
mov r8d, r12d
xor edx, edx
mov ecx, dword [rsp + 0xc0]
call fcn.1400234ec
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1400232df
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsp + 0x58], rdi
jmp 0x1400232df
mov ebx, 0x8007000e
mov dword [rsp + 0x40], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x140023487
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400234af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x1400234af
lea rcx, [0x1400631a8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
je 0x1400234d0
movzx ebx, r14w
or ebx, 0x80070000
test r14d, r14d
cmovle ebx, r14d
mov rax, qword [rsp + 0x58]
mov qword [r13], rax
mov eax, ebx
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140023804
Capabilities:
Check if file exists
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140023a36
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x17], rax
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.140023a44
mov ebx, eax
test eax, eax
js 0x1400239f4
lea rdx, [rbp + 0x17]
lea rcx, [0x14008e4c8]
call fcn.140006324
mov rcx, qword [0x14008e4c8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002388e
call fcn.140023c20
test al, al
je 0x140023895
xor ebx, ebx
jmp 0x1400239f4
lea rdx, str.Software
lea rcx, [rbp + 0x1f]
call fcn.140002cec
nop
lea rcx, [rbp + 0x37]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
test eax, eax
js 0x1400239d5
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0x37]
call qword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test eax, eax
js 0x1400239d5
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp + 0x1f]
call fcn.140009ab0
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1f]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movsxd rcx, eax
test eax, eax
je 0x14002393c
movzx ebx, cx
or ebx, 0x80070000
test eax, eax
cmovle ebx, ecx
jmp 0x1400239d5
mov rcx, qword [rbp + 0x27]
call fcn.140056478
mov ebx, eax
test eax, eax
jns 0x1400239b9
mov dword [0x14008e2f0], eax
mov r8b, 1
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.140023a44
mov ebx, eax
test eax, eax
js 0x1400239d5
lea rdx, [rbp + 0x17]
lea rcx, [0x14008e4c8]
call fcn.140006324
mov rbx, qword [rbp + 0x27]
mov dl, 1
call fcn.140056278
test al, al
je 0x1400239b7
xor r8d, r8d
mov rdx, qword [0x14008e4c8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
test eax, eax
je 0x1400239b0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400239b9
jmp 0x1400239d5
xor edx, edx
call fcn.140056278
xor ebx, ebx
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x1f]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400239f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140023a13
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x140023a44
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x1400631a8]
lea rcx, [rbp + 0x38]
call fcn.140002cec
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.140006324
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or r15d, 0xffffffff
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140023aa0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rdi, rdi
jne 0x140023aaf
mov ebx, 0x80070057
jmp 0x140023c0a
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140023ac3
xor ebx, ebx
jmp 0x140023b84
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140002cec
nop
lea rcx, [rbp + 0x30]
call fcn.140021cac
test eax, eax
jne 0x140023b07
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140023afd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 0x8007000e
jmp 0x140023c0a
mov rcx, qword [rbp + 0x30]
call fcn.1400561cc
mov ebx, eax
test eax, eax
jne 0x140023b5b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140023b5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140023b7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140023b7c
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140023b7c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
js 0x140023c0a
lea r8, str.privateregistry.bin
mov rdx, rdi
mov rcx, rsi
call fcn.1400080b0
test r14b, r14b
je 0x140023c0a
call fcn.140023c20
test al, al
jne 0x140023c0a
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140023c0a
call fcn.140009fd0
test eax, eax
jne 0x140023c0a
lea rdx, [0x1400631a8]
lea rcx, [rbp + 0x48]
call fcn.140002cec
nop
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.140006324
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140023bf8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.privateregistry.user.bin
mov rdx, rdi
mov rcx, rsi
call fcn.1400080b0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rdx, rdx
je 0x140024249
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x980], rax
xor r15d, r15d
mov esi, r9d
cmp qword [0x14008e368], r15
mov rdi, rdx
mov r14d, ecx
jne 0x140024224
mov dl, r8b
mov rcx, rdi
call fcn.14002ca18
test al, al
je 0x14002409c
mov rdx, qword [str.Microsoft.Internal.Performance.CodeMarkers.dll]
lea rax, [rsp + 0x60]
sub rdx, rax
lea rcx, [rsp + 0x60]
mov ebx, 0x104
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x140024088
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140024088
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140024066
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
jmp 0x14002415e
cmp byte [rbp + 0x9e0], r15b
je 0x140024224
mov ebx, 0x104
lea rdx, [rbp + 0x370]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x140024224
lea ecx, [rbx - 4]
mov r8d, 3
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x580]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x170]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x780]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x370]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s
test eax, eax
jne 0x140024224
lea rax, str..dll
mov edx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x170]
mov rax, qword [str.Microsoft.VisualStudio.CodeMarkers]
lea r8, [rsp + 0x54]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s
test eax, eax
jne 0x140024224
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024224
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140024224
mov rcx, rax
call fcn.140014e38
mov rax, qword [0x14008e360]
test rax, rax
je 0x140024191
mov rcx, rdi
call rax
cmp qword [0x14008df98], r15
je 0x1400241e6
cmp qword [0x14008e348], r15
je 0x1400241e6
cmp qword [0x14008e340], r15
je 0x1400241c7
mov rcx, qword [0x14008e2f8]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov rdx, rdi
mov ecx, r14d
call qword [0x14008e340]
jmp 0x1400241e6
cmp qword [0x14008e338], r15
je 0x1400241e6
mov rcx, qword [0x14008e2f8]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, r14d
call qword [0x14008e338]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
lea r8, str.AutoStartupLoggingEndMarker
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14002424c
mov edx, dword [rsp + 0x50]
test eax, eax
cmovne edx, r15d
test edx, edx
mov dword [rsp + 0x50], edx
cmovne esi, edx
test esi, esi
je 0x140024224
mov ecx, esi
call fcn.14005c2bc
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002424c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rdi, r8
lea r8, [rsp + 0x38]
mov rbx, r9
call fcn.14002cae0
test eax, eax
jne 0x1400242c8
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x14002427f
lea eax, [rcx + 2]
jmp 0x1400242c8
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 4
mov eax, SafeArrayDestroy
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140025b64
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 0x140025b94
cvtsi2ss xmm0, rdx
jmp 0x140025ba9
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 [0x1400651d4]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140025bd7
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140025bd7
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 0x140025c05
cmp rbx, 0x200
jae 0x140025c02
shl rbx, 3
cmp rbx, rcx
jae 0x140025c05
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x140025c2e
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.140024c10
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 0x140025d40
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 0x140025c87
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x140025cc6
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x140025d34
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x140025d09
mov r10, qword [r10]
cmp r10, rax
je 0x140025cbf
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 0x140025cbf
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x140025d56
cmp qword [rdi + r11*8], r10
jne 0x140025cff
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 0x140025c77
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 0x140025d34
Function at 0x140027644
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov eax, dword [0x14008f2b0]
xor ebx, ebx
test al, 1
jne 0x140027699
or eax, 1
mov dword [0x14008f2b0], eax
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140027792
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x14008e588], rax
lea rcx, [0x14002eb78]
call fcn.1400164ac
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400276b0
mov eax, 0x80070002
jmp 0x140027782
test rdi, rdi
je 0x140027792
mov rax, qword [0x14008e588]
mov rdx, rdi
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1400276dc
add rax, 2
test cx, cx
jne 0x1400276c6
mov eax, ebx
jmp 0x1400276e1
sbb eax, eax
or eax, 1
test eax, eax
je 0x140027780
mov rsi, qword [0x14008ea60]
test rsi, rsi
je 0x140027714
cmp qword [rsi], rbx
je 0x140027707
mov edx, 2
mov rcx, qword [rsi]
call fcn.140002da0
mov edx, 8
mov rcx, rsi
call fcn.140002da0
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140002cec
nop
mov rdx, rax
lea rcx, [0x14008e588]
call fcn.140006324
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027751
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, 8
call fcn.140002cbc
test rax, rax
je 0x140027765
mov qword [rax], rbx
jmp 0x140027768
mov rax, rbx
mov qword [0x14008ea60], rax
mov rdx, rdi
call fcn.1400277a0
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140027782
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3

Function at 0x1400277a0
Capabilities:
Get file size
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
mov rdi, qword [0x14008ea60]
mov rsi, rdx
cmp qword [rdi], 0
je 0x1400277d3
mov eax, 0x80004005
jmp 0x140027890
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or r14, 0xffffffffffffffff
mov rbx, rax
cmp rax, r14
jne 0x140027821
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140027890
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x54], 0
jle 0x140027846
mov eax, 0x80070057
jmp 0x140027890
mov ebx, dword [rsp + 0x50]
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.14002657c
mov r9, rsi
mov qword [rdi], rax
mov r8d, ebx
lea rcx, str.Info
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x14002788b
lea ecx, [rbx - 1]
cmp eax, ecx
sbb eax, eax
not eax
and eax, 0x8007000d
jmp 0x140027890
mov eax, 0x8007000d
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400278a8
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, str.General
mov rdx, qword [rdx]
lea rcx, [rbp - 0x18]
call fcn.140027a40
test rdi, rdi
je 0x1400279f2
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x1400279f6
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 0x1400279f2
or dword [rbp + 0x20], 0xffffffff
test rdi, rdi
je 0x140027998
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 0x140027981
cmp dword [rbp + 0x30], 4
jne 0x140027998
cmp dword [rbp + 0x38], 4
jne 0x140027998
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140027998
mov eax, dword [rbp + 0x20]
jmp 0x1400279a0
mov eax, 1
mov dword [rbp + 0x20], eax
mov dword [0x14008d510], eax
test rdi, rdi
je 0x1400279bc
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 0x1400279e1
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 0x140027a23
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140027a23
mov rax, qword [rbp - 0x18]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027a11
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 0x140027a20
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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