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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
movabs rax, 0x800000000000001
cmp rdx, rax
jae 0x14000225f
mov rsi, rcx
dec rdx
or rdx, 1
bsr rcx, rdx
xor ecx, 0x3f
neg cl
mov ebx, 1
shl rbx, cl
lea rax, [rsi + 0x18]
mov rdi, qword [rsi + 8]
mov edx, 2
shl rdx, cl
mov rcx, rax
mov r8, rdi
call fcn.140001aa0
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rbx
mov rax, qword [rsi + 8]
mov rax, qword [rax]
cmp rax, rdi
je 0x140002252
movabs rcx, 0xcbf29ce484222325
movabs rdx, 0x100000001b3
jmp 0x140002151
mov qword [r9 + r10*8], r8
mov qword [r9 + rbx*8], r8
cmp rax, rdi
je 0x140002252
mov r8, rax
mov rax, qword [rax]
movzx r9d, byte [r8 + 0x10]
xor r9, rcx
imul r9, rdx
movzx r10d, byte [r8 + 0x11]
xor r10, r9
imul r10, rdx
movzx r9d, byte [r8 + 0x12]
xor r9, r10
imul r9, rdx
movzx r11d, byte [r8 + 0x13]
xor r11, r9
imul r11, rdx
and r11, qword [rsi + 0x30]
mov r9, qword [rsi + 0x18]
lea r10, [r11 + r11]
lea rbx, [r11*2 + 1]
shl r11, 4
mov r11, qword [r9 + r11]
cmp r11, rdi
je 0x140002140
mov r14, qword [r9 + rbx*8]
mov ebp, dword [r8 + 0x10]
cmp ebp, dword [r14 + 0x10]
jne 0x1400021f0
mov r10, qword [r14]
cmp r10, r8
je 0x140002144
mov r11, qword [r8 + 8]
mov qword [r11], rax
mov r14, qword [rax + 8]
mov qword [r14], r10
mov r15, qword [r10 + 8]
mov qword [r15], r8
mov qword [r10 + 8], r14
mov qword [rax + 8], r11
mov qword [r8 + 8], r15
jmp 0x140002144
cmp r11, r14
je 0x140002228
mov r14, qword [r14 + 8]
cmp ebp, dword [r14 + 0x10]
jne 0x1400021f0
mov r9, qword [r14]
mov r10, qword [r8 + 8]
mov qword [r10], rax
mov r11, qword [rax + 8]
mov qword [r11], r9
mov rbx, qword [r9 + 8]
mov qword [rbx], r8
mov qword [r9 + 8], r11
mov qword [rax + 8], r10
mov qword [r8 + 8], rbx
jmp 0x140002148
mov rbx, qword [r8 + 8]
mov qword [rbx], rax
mov r14, qword [rax + 8]
mov qword [r14], r11
mov r15, qword [r11 + 8]
mov qword [r15], r8
mov qword [r11 + 8], r14
mov qword [rax + 8], rbx
mov qword [r8 + 8], r15
mov qword [r9 + r10*8], r8
jmp 0x140002148
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3

Function at 0x140003138
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003182
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003182
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003182
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003182
cmp dword [rcx + 0x84], 0xe
jbe 0x140003182
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003184
xor al, al
add rsp, 0x28
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020504]
cmp r15, 1
jne 0x140004953
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205e4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205e4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205e4]
call fcn.14000dd0c
mov rcx, qword [0x1400205e4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205ec]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add bh, bh
add eax, 0x4bff0605
push rsp
invalid
add bh, bh
add byte [rax], al
add bh, bh
sub al, 0x23
jmp rbx
scasd eax, dword [rdi]
invalid
jmp 0x12a03a68a
scasd eax, dword [rdi]
invalid
scasd eax, dword [rdi]
invalid
scasd eax, dword [rdi]
jmp rcx
adc eax, 0x52ff1b17
pop rbx
push 0xffffffffffffffff
pop r10
pop rdx
inc dword [rcx]
add al, byte [rdx]
inc dword [rax]
add byte [rax], al
inc dword [rax]
add byte [rax], al
inc dword [rcx]
add byte [rax], al
push qword [rcx - 0x16007a58]
invalid
add dword [rdx], eax
add bh, bh
add byte [rax], al
add bh, bh
add byte [rax], al
add bh, bh
add dword [rax], eax
add bh, bh
mov cl, 0xa8
test edi, edi
jmp 0x12a03a6ea
Function at 0x1400014a0
Capabilities:
Write file on windows

Disassembly:
jmp 0x14008c340
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14008c377
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14008c398
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14008c39a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14008c3f3
test ecx, ecx
jle 0x14008c3d3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14008c3f3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14008c3f3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002c140
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400bf028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14002c19a
movzx ecx, word [rsp + 0x30]
mov eax, 0x4e20
add cx, 0x1e
mov word [rsp + 0x22], ax
mov word [rsp + 0x20], cx
mov rcx, rbx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
xor eax, eax
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rcx, rbx
movzx eax, word [rsp + 0x30]
add ax, 0x1d
mov word [rsp + 0x2c], ax
mov eax, 0x32
mov word [rsp + 0x2e], ax
lea edx, [rax - 0x31]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002950
add rsp, 0x50
pop rbx
ret
Function at 0x14008c340
Capabilities:
Write file on windows

Disassembly:
jmp 0x14008c340
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14008c377
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14008c398
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14008c39a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14008c3f3
test ecx, ecx
jle 0x14008c3d3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14008c3f3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14008c3f3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14238e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14238ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14238fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14238e5
lea eax, [rcx + 1]
jmp 0x142390b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x142391e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1423904
sub eax, 3
jb 0x142393e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x142398d
sar eax, 1
movsxd rbp, eax
jb 0x1423974
jmp 0x142394c
add ebx, ebx
jne 0x142394a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1423974
inc ecx
add ebx, ebx
jne 0x142395a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1423974
call r11
adc ecx, ecx
add ebx, ebx
jne 0x142396d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x142395c
add ecx, 2
jmp 0x1423979
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.014238a2
jmp 0x14238ed
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x100f000]
mov eax, dword [rdi]
or eax, eax
je 0x14239e9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1023000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1423999
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14239e3
mov qword [rbx], rax
add rbx, 8
jmp 0x14239b9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1423a2d
cmp al, 0xef
ja 0x1423a15
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14239f5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1423a04
mov eax, dword [rdi]
add rdi, 4
jmp 0x1423a04
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1423a81
sub rsp, 0xffffffffffffff80
jmp 0x45bb20
Function at 0x10008d690
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x13]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x10008d6cf
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x40
pop rbx
ret

Function at 0x10008df04
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rdi, rcx
call fcn.10008e260
test eax, eax
js 0x10008df74
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x10008df74
mov rbx, qword [rsp + 0x50]
mov rsi, rax
mov rdx, qword [rbx]
lea r9, [rsp + 0x58]
mov r8d, 0xf003f
mov rcx, rdi
call fcn.10008dfc4
test eax, eax
js 0x10008df6a
mov rcx, qword [rsp + 0x58]
call fcn.10008df04
test eax, eax
jns 0x10008df6a
mov rcx, qword [rsp + 0x58]
call fcn.10008dc88
add rbx, 8
sub rsi, 1
jne 0x10008df38
cmp qword [rsp + 0x50], 0
je 0x10008df9a
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
test eax, eax
js 0x10008dfb2
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x10008ead8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov r13, r8
mov r14, rdx
mov r12, rcx
xor esi, esi
mov rdx, r14
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
test r13, r13
je 0x10008eb4f
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r13
mov rcx, r12
call fcn.10008dfc4
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x10008eb48
mov rbx, qword [rsp + 0x38]
jmp 0x10008eb52
mov rbx, qword [rsp + 0x38]
jmp 0x10008eb84
mov rbx, r12
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp rbx, r12
je 0x10008eb96
test rbx, rbx
je 0x10008eb96
mov rcx, rbx
call fcn.10008dc88
cmp edi, 0xc000017d
jne 0x10008ebd6
int3
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x10008f044
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rdx], 0
mov rdi, r8
mov rsi, rdx
xor edx, edx
mov ebx, ecx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov r11, qword gs:[0x30]
xor edx, edx
mov rcx, qword [r11 + 0x60]
lea r8d, [rdx + 0x6a]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x10008f0a1
mov eax, 0xc0000017
jmp 0x10008f18e
and qword [rsp + 0x20], 0
lea r8, [0x10014f420]
mov r9d, ebx
mov edx, 0x35
mov rcx, rax
call sub.msvcrt.dll_swprintf_s
mov rdx, rsi
mov rcx, rbp
call fcn.10008f1ac
mov ebx, eax
test eax, eax
jns 0x10008f113
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.10008f534
mov ebx, eax
test eax, eax
js 0x10008f14b
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.10008f1ac
xor edx, edx
mov ebx, eax
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
js 0x10008f14b
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x10008f12d
mov eax, dword [rax + 8]
mov dword [rdi + 4], 1
mov dword [rdi + 8], eax
jmp 0x10008f147
cmp dword [rax], 1
jne 0x10008f142
movdqu xmm0, xmmword [rax + 8]
and dword [rdi + 4], 0
movdqu xmmword [rdi + 8], xmm0
jmp 0x10008f147
mov ebx, 0xc000000d
test ebx, ebx
jns 0x10008f170
mov r8, qword [rsi]
test r8, r8
je 0x10008f170
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and qword [rsi], 0
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1000a145c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r12, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000a14a7
test byte [rcx + 0x1c], 1
je 0x1000a14a7
cmp byte [rcx + 0x19], 4
jb 0x1000a14a7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x26
call fcn.10001c7b8
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x78], ebx
mov dword [rdi], ebx
cmp rsi, rbx
jne 0x1000a14d4
lea r8, [0x10000a408]
lea rcx, [0x10000a2b8]
mov edx, 0x2cf
call fcn.100099ad8
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov rdx, rsi
mov rcx, r12
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
cmp ebp, ebx
je 0x1000a1515
cmp eax, 2
jne 0x1000a1515
lea ebx, [rax - 1]
jmp 0x1000a158d
cmp eax, ebx
je 0x1000a156b
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000a15c1
test byte [rcx + 0x1c], 1
je 0x1000a159b
cmp byte [rcx + 0x19], 3
jb 0x1000a159b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x27
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000a1594
cmp dword [rsp + 0x68], 4
je 0x1000a1579
mov ebx, 0x8007065d
jmp 0x1000a158d
cmp dword [rsp + 0x78], 4
je 0x1000a1587
mov ebx, 0x80004005
jmp 0x1000a158d
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
lea rdi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000a15c1
test byte [rcx + 0x1c], 1
je 0x1000a15c1
cmp byte [rcx + 0x19], 4
jb 0x1000a15c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039e8]
mov edx, 0x28
call fcn.10001c7b8
mov eax, ebx
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1000a1840
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov qword [rax + 8], rbx
test rcx, rcx
jne 0x1000a187a
lea r8, [0x10000a430]
lea rcx, [0x10000a2b8]
mov edx, 0x614
call fcn.100099ad8
and qword [rsi], rbx
mov edi, 0x208
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x1000a189a
mov edi, 0x8007000e
jmp 0x1000a18f4
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov edx, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test eax, eax
js 0x1000a18dd
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.10009b37c
mov edi, eax
test eax, eax
js 0x1000a18d8
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
jmp 0x1000a18dd
mov rbx, qword [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x1000a18f4
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1000fabc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebp, ebp
mov esi, eax
cmp eax, ebp
jne 0x1000fac02
lea edx, [rbp + 1]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
cmp rax, rbp
jne 0x1000fac3b
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x8007000e
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rdi + 0x10]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jne 0x1000fac64
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x80070057
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
cmp rbx, rbp
jne 0x1000fac75
mov rax, qword [rdi + 0x10]
mov word [rax], bp
mov dword [rdi + 0x18], ebp
jmp 0x1000faca2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rdi
mov r8d, eax
call fcn.1000f2a80
cmp eax, ebp
jge 0x1000faca2
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.msvcrt.dll_free]

Function at 0x1000fde5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, r8
mov dword [rsp + 0x60], 4
test r8, r8
jne 0x1000fde92
lea r8, [0x10000a418]
lea rcx, [0x100011a60]
mov edx, 0x46e
call fcn.100099ad8
jmp 0x1000fdee4
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1000fdea2
mov ebx, 0x8000ffff
jmp 0x1000fdef1
and dword [r8], ebx
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000fdedd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1000fdef1
cmp dword [rsp + 0x68], 4
je 0x1000fdeeb
mov ebx, 0x80004005
jmp 0x1000fdef1
mov ecx, dword [rsp + 0x30]
mov dword [rdi], ecx
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret