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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov ebx, edx
mov rdi, rcx
and qword [rbp + 0x47], 0
lea rax, [rbp + 0x47]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftUEVAgentConfiguration
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001963e
mov dword [rbp + 0x37], 4
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x140019679
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3b]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001964d
mov edx, dword [rbp + 0x3b]
cmp edx, 4
jne 0x140019630
mov ebx, dword [rbp + 0x3f]
jmp 0x14001964d
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Unexpected_value_type__type__0x_X
call fcn.140003f48
jmp 0x14001964d
mov edx, eax
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Failed_to_open_configuration_key__status__0x_X
call fcn.140003f48
nop
lea rcx, [rbp + 0x47]
call fcn.140005940
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400afcd0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x31]
call fcn.1400059e0
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.140005244
lea rdx, [0x140110078]
lea rcx, [rbp - 9]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140020fd0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
xor r14d, r14d
cmp edx, ebx
jne 0x140021020
cmp edx, ebx
cmove esi, r14d
mov eax, esi
jmp 0x1400211e0
mov rax, qword [rcx + 0x40]
cmp qword [rax], r14
je 0x140021054
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140021054
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140021019
cmp qword [rdi + 0x90], r14
je 0x1400211de
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x14002108b
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x78], r14
jne 0x1400210ac
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400211de
mov byte [rbp - 0x19], sil
mov qword [rbp + 0x1f], 0xf
mov qword [rbp + 0x17], r14
mov byte [rbp + 7], r14b
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.14000fde4
nop
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
lea r9, [rbp + 7]
cmovae r9, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r8, qword [rbp + 0x17]
mov rax, qword [rdx + 0x38]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rdi + 0x84]
call qword [str.__a_v_]
test eax, eax
js 0x1400211cd
cmp eax, 1
jg 0x1400211b2
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, rdx
mov r15, qword [rbp - 0x11]
sub r15, rax
je 0x140021178
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r15
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r15, rax
jne 0x1400211cd
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x1400211ae
test r15, r15
jne 0x1400210d1
cmp qword [rbp + 0x17], 0x20
jae 0x1400211cd
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.1400066d8
jmp 0x1400210d1
mov ebx, esi
jmp 0x1400211cd
cmp eax, 3
jne 0x1400211cd
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp + 0x1f], 0x10
jb 0x1400211de
mov rcx, qword [rbp + 7]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400afcd0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140022cd4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140022d15
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
xor esi, esi
test eax, eax
je 0x140022dfd
lea eax, [rsi + 2]
mul r15
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.140093eac
mov rbx, rax
mov qword [rsp + 0x28], rax
cmp qword [rdi + 0x18], 8
jb 0x140022d55
mov rdi, qword [rdi]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140022dbb
cmp word [rbx], si
je 0x140022d7a
inc r14
cmp word [rbx + r14*2], si
jne 0x140022d6d
mov rsi, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.140005bc4
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400afcd0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x38]
call fcn.1400059e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.1400050f8
lea rdx, [0x140110038]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x38]
call fcn.1400059e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.1400050f8
lea rdx, [0x140110038]
lea rcx, [rsp + 0x110]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400230b4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rbp], rax
mov r13, rdx
cmp qword [rcx + 0x18], 8
jb 0x1400230f5
mov rcx, qword [rcx]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
inc rax
test rax, 0xfffffffffffffffe
je 0x14002326e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
je 0x1400232a8
mov ecx, r15d
call fcn.140093eac
mov r14, rax
mov rdi, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, r15d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400232e2
lea rcx, [rsp + 0x40]
call fcn.14000c1c4
cmp byte [rdi], 0xef
jne 0x1400231a3
cmp byte [rdi + 1], 0xbb
jne 0x1400231a3
cmp byte [rdi + 2], 0xbf
jne 0x1400231a3
add r14, 3
add r15d, 0xfffffffd
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, r15d
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r12, eax
test eax, eax
jle 0x140023220
mov eax, 2
mul r12
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.140093eac
mov rbx, rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r8, r12
mov rdx, rbx
mov rcx, r13
call fcn.140005bc4
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x140023233
xor r8d, r8d
lea rdx, [0x1400cad40]
mov rcx, r13
call fcn.140005bc4
nop
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rcx, [rsp + 0x40]
call fcn.14000a210
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400afcd0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.File_open_error
lea rcx, [rsp + 0x68]
call fcn.1400059e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400050f8
lea rdx, [0x140110038]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Unable_to_get_file_size
lea rcx, [rsp + 0x68]
call fcn.1400059e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400050f8
lea rdx, [0x140110038]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.File_read_error
lea rcx, [rsp + 0x68]
call fcn.1400059e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400050f8
lea rdx, [0x140110038]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140034e94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r12, rcx
mov rbp, rdx
cmp rdx, r8
je 0x140034f47
cmp rsi, qword [rsp + 0x80]
je 0x140034f51
movzx r14d, word [rbx]
add rbx, 2
movzx r15d, word [rsi]
add rsi, 2
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x68], rbx
call fcn.1400348a4
mov rcx, rax
movzx edx, r14w
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
call qword [str.__a_v_]
mov rcx, qword [rsp + 0x88]
movzx r14d, ax
call fcn.1400348a4
mov rcx, rax
movzx edx, r15w
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
call qword [str.__a_v_]
cmp r14w, ax
jne 0x140034f58
cmp rbx, rdi
jne 0x140034ed7
cmp rsi, qword [rsp + 0x80]
jne 0x140034f5e
lea rax, [rsp + 0x68]
jmp 0x140034f77
mov qword [r12], rbp
jmp 0x140034f7e
cmp byte [rsp + 0x90], 0
je 0x140034f72
lea rax, [rsp + 0x68]
cmp rbx, rdi
je 0x140034f77
lea rax, [rsp + 0x20]
mov rax, qword [rax]
mov qword [r12], rax
mov rax, r12
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400afcd0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140035ae8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x140114298], rbx
jne 0x140035b73
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400d8948]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140035b68
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x140035b40
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140035b34
mov rbx, rax
mov r8, rbx
lea rcx, [0x140114288]
call fcn.140005bc4
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x140114288]
call fcn.140005ce8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [0x140114288]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400afcd0
add rsp, 0x30
pop rbx
ret

Function at 0x14003b91c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
mov r9, qword [rdx + 0x10]
jb 0x14003b933
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x14003b963
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x14003b945
mov rax, rcx
mov edx, 0x1f31d
shr rax, 0x20
xor ecx, eax
btr ecx, 0x1f
call qword [sym.imp.msvcrt.dll_ldiv]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x14003b99c
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret
Function at 0x14003bcf4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r9
mov rbx, rdx
mov r13, rcx
mov r11, qword [rcx]
mov rax, qword [r11 + 8]
mov r14, r11
mov sil, 1
cmp byte [rax + 0x19], 0
jne 0x14003bddc
mov r12, qword [r9 + 0x10]
mov r14, rax
lea rcx, [rax + 0x20]
mov r15, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14003bd61
mov rcx, qword [rcx]
cmp qword [rdi + 0x18], 8
jb 0x14003bd6d
mov r8, qword [rdi]
jmp 0x14003bd70
mov r8, rdi
mov rdx, r15
cmp r12, r15
cmovb rdx, r12
test rdx, rdx
jmp 0x14003bd99
movzx r9d, word [r8]
movzx r10d, word [rcx]
cmp r9w, r10w
jne 0x14003bdc0
add r8, 2
add rcx, 2
sub rdx, 1
jne 0x14003bd7f
xor ecx, ecx
xor esi, esi
cmp r12, r15
setne sil
mov edx, 0xffffffff
cmovb esi, edx
test ecx, ecx
cmovne esi, ecx
shr esi, 0x1f
test sil, sil
je 0x14003bdc9
mov rax, qword [rax]
jmp 0x14003bdcd
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x14003bd9d
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x14003bd4c
or r12d, edx
jmp 0x14003bde0
or r12d, 0xffffffff
mov rax, r14
mov qword [rsp + 0x30], rax
test sil, sil
je 0x14003be36
cmp r14, qword [r11]
jne 0x14003be27
mov al, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r9, r14
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14003c3cc
mov rax, qword [rax]
mov qword [rbx], rax
mov byte [rbx + 8], 1
mov rax, rbx
jmp 0x14003bee7
lea rcx, [rsp + 0x30]
call fcn.1400135b0
mov rax, qword [rsp + 0x30]
lea rcx, [rax + 0x20]
mov r15, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x14003be4a
mov r8, qword [rdi]
jmp 0x14003be4d
mov r8, rdi
mov r11, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14003be5b
mov rcx, qword [rcx]
mov rdx, r15
cmp r11, r15
cmovb rdx, r11
test rdx, rdx
jmp 0x14003be84
movzx r9d, word [rcx]
movzx r10d, word [r8]
cmp r9w, r10w
jne 0x14003be88
add rcx, 2
add r8, 2
sub rdx, 1
jne 0x14003be6a
jmp 0x14003be91
sbb edx, edx
and edx, 0xfffffffe
inc edx
jmp 0x14003be93
xor edx, edx
xor ecx, ecx
cmp r11, r15
setne cl
cmovb ecx, r12d
test edx, edx
cmovne ecx, edx
shr ecx, 0x1f
test cl, cl
je 0x14003bedd
mov al, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
mov r9, r14
mov r8b, sil
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14003c3cc
mov rax, qword [rax]
mov qword [rbx], rax
mov byte [rbx + 8], 1
mov rax, rbx
jmp 0x14003bee7
mov qword [rbx], rax
mov byte [rbx + 8], 0
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400afcd0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x14003ffbc
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x7c]
xor al, al
mov rbx, rcx
cmp edx, 0xffffffff
je 0x140040163
mov ecx, edx
cmp ecx, 0x7c
je 0x140040163
cmp ecx, 0x29
jne 0x140040005
cmp dword [rbx + 0x1c], 0
jne 0x140040163
cmp ecx, ecx
jne 0x140040005
test dword [rbx + 0x80], 0x10000000
je 0x140040184
cmp ecx, 0x2e
jne 0x140040025
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14004029c
mov rcx, rbx
call fcn.14003ff58
jmp 0x14004014b
cmp ecx, 0x5c
jne 0x14004008c
mov rcx, rbx
call fcn.14003ff58
test byte [rbx + 0x80], 0x80
je 0x14004007f
cmp word [rbx + 0x78], 0x62
jne 0x14004005d
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14004029c
mov rcx, rbx
call fcn.14003ff58
jmp 0x140040153
cmp word [rbx + 0x78], 0x42
jne 0x14004007f
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14004029c
mov rax, qword [rbx + 0x48]
add rax, 0xc
xor dword [rax], 1
jmp 0x140040050
mov rcx, rbx
call fcn.1400406d8
jmp 0x14004014b
cmp ecx, 0x5b
jne 0x1400400b0
mov rcx, rbx
call fcn.14003ff58
mov rcx, rbx
call fcn.140040570
cmp dword [rbx + 0x7c], 0x5d
jne 0x14004016e
jmp 0x140040018
cmp ecx, 0x28
jne 0x1400400d4
mov rcx, rbx
call fcn.14003ff58
mov rcx, rbx
call fcn.140040844
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x140040179
jmp 0x14004013e
cmp ecx, 0x5e
jne 0x1400400e1
lea edx, [rcx - 0x5c]
jmp 0x140040047
cmp ecx, 0x24
jne 0x1400400ee
lea edx, [rcx - 0x21]
jmp 0x140040047
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400401a5
cmp ecx, 0x3f
je 0x1400401a5
cmp ecx, 0x7b
je 0x1400401a5
cmp edx, 0x7d
jne 0x14004011d
test dword [rbx + 0x80], 0x10000000
je 0x14004018f
cmp edx, 0x5d
jne 0x14004012e
test dword [rbx + 0x80], 0x10000000
je 0x14004019a
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140040a30
mov dil, 1
mov rcx, rbx
call fcn.14003ff58
test dil, dil
je 0x140040153
mov rcx, rbx
call fcn.140040930
mov edx, dword [rbx + 0x7c]
mov al, 1
mov ecx, edx
cmp edx, 0xffffffff
jne 0x14003ffd9
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 4
call fcn.14003fb1c
int3
mov edx, 5
call fcn.14003fb1c
int3
mov edx, 5
call fcn.14003fb1c
int3
mov edx, 6
call fcn.14003fb1c
int3
mov edx, 4
call fcn.14003fb1c
int3
mov edx, 0xa
call fcn.14003fb1c
int3
Function at 0x1400427d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r8
mov r14, rdx
mov ecx, 0x18
call fcn.140092eac
mov rdi, rax
mov qword [rbp + 7], rax
xor r13d, r13d
test rax, rax
je 0x14004282f
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
jmp 0x140042832
mov rdi, r13
mov qword [rbp - 0x51], rdi
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14004288d
test byte [0x14011c180], 2
jne 0x140042978
jmp 0x140042987
mov r12d, dword [rbp + 0x13]
inc r12d
mov ecx, r12d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140093eac
mov rbx, rax
mov qword [rbp - 0x49], rax
mov esi, r13d
cmp dword [rbp + 0xf], r13d
jbe 0x140042937
mov dword [rbp + 7], r12d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 7]
mov r8, rbx
mov edx, esi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004296d
mov r8d, dword [rbp + 7]
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], r13
mov word [rbp - 0x79], r13w
mov rdx, rbx
lea rcx, [rbp - 0x79]
call fcn.140005bc4
nop
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14003aa4c
nop
cmp qword [rbp - 0x61], 8
jb 0x140042930
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
inc esi
cmp esi, dword [rbp + 0xf]
jb 0x1400428c2
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [r14], rdi
mov rax, r14
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400afcd0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test byte [0x14011c180], 2
jne 0x1400429b6
jmp 0x1400429c5
mov r8d, eax
lea rdx, [0x1400ca2e0]
call fcn.140007298
lea rdx, str.Unable_to_query_template_index.
lea rcx, [rbp - 0x79]
call fcn.1400059e0
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140042434
lea rdx, [0x140110f68]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
mov r8d, eax
lea rdx, [0x1400ca408]
call fcn.140007298
lea rdx, str.Unable_to_enumerate_template_index_subkeys.
lea rcx, [rbp - 0x79]
call fcn.1400059e0
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140042434
lea rdx, [0x140110f68]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140043398
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x1400433dc
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x14004340b
movzx eax, byte [r8 + rdx]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x1400433ed
mov rax, rcx
shr rax, 0x20
xor rcx, rax
mov rdx, qword [r14 + 0x28]
mov rsi, rdx
and rsi, rcx
cmp qword [r14 + 0x30], rsi
ja 0x140043432
shr rdx, 1
or rax, 0xffffffffffffffff
sub rax, rdx
add rsi, rax
mov rbx, qword [r14]
add rsi, rsi
mov rax, qword [r14 + 0x10]
mov rcx, qword [rax + rsi*8]
cmp rbx, rcx
je 0x140043497
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rcx
je 0x140043497
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, rdi
call fcn.140032670
test al, al
jne 0x140043472
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
jne 0x140043452
jmp 0x140043497
mov rdx, rdi
lea rcx, [rbx + 0x10]
call fcn.140032670
test al, al
jne 0x140043487
mov rbx, qword [rbx]
jmp 0x140043497
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x14004357c
mov rax, qword [r14]
mov r13, qword [rax]
mov r9, rdi
mov r8, qword [r13 + 8]
mov rdx, r13
call fcn.140043dd4
mov rdx, rax
mov rax, qword [r14 + 8]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, 1
jb 0x140043599
inc rax
mov qword [r14 + 8], rax
mov qword [r13 + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov rdx, qword [r14]
mov rdi, qword [rdx]
mov qword [rsp + 0x20], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14004351f
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x10]
cmp qword [rcx + rsi*8], rdx
jne 0x140043538
mov qword [rcx + rsi*8], rdi
mov rax, qword [r14 + 0x10]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x140043568
cmp qword [rcx + rsi*8], rbx
jne 0x140043544
mov qword [rcx + rsi*8], rdi
jmp 0x140043568
mov rax, qword [rcx + rsi*8 + 8]
mov rdx, qword [rax]
mov qword [rcx + rsi*8 + 8], rdx
cmp rdx, rdi
je 0x140043568
mov r8, qword [r14 + 0x10]
mov rax, qword [r8 + rsi*8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + rsi*8 + 8], rdx
mov rcx, r14
call fcn.1400435a8
nop
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400afcd0
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, str.list_T__too_long
call fcn.140093170
int3