joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d4dc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14001d54d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14001d54d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14001d52b
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400d62a0]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14001bd44
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14001d5b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001d66c
mov edx, 0xc0
mov rcx, qword [rbp + 0x168]
call fcn.14001d25c
mov esi, eax
jmp 0x14001d66f
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.14001d398
mov esi, eax
test eax, eax
jns 0x14001d5e6
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xc6
call fcn.14001d220
jmp 0x14001d66f
lea r8, [0x1400d62a8]
lea rcx, [rsp + 0x30]
call fcn.14001bd44
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14001d615
mov edx, 0xcc
jmp 0x14001d59d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001d398
mov esi, eax
test eax, eax
jns 0x14001d64b
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.14001d220
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001d6c1
jmp 0x14001d66f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001d6d3
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14001d681
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001d6af
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400b6c20
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14001d27c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14001d27c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.14001d27c
int3
Function at 0x140020360
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x1400203a2
xor eax, eax
jmp 0x14002056b
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400203dc
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1400203dc
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
mov eax, esi
jmp 0x14002056b
cmp qword [rdi + 0x90], 0
je 0x140020569
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x140020414
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], 0
jne 0x140020436
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
cmp eax, ebx
cmovne ebx, esi
jmp 0x140020569
mov byte [rbp - 0x19], sil
mov qword [rbp + 0x1f], 0xf
and qword [rbp + 0x17], 0
mov byte [rbp + 7], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.14001090c
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 [0x1400ca210]
test eax, eax
js 0x140020558
cmp eax, 1
jg 0x14002053d
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x11]
sub r14, rax
je 0x140020503
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r14, rax
jne 0x140020558
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x140020539
test r14, r14
jne 0x14002045c
cmp qword [rbp + 0x17], 0x20
jae 0x140020558
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.140006d0c
jmp 0x14002045c
mov ebx, esi
jmp 0x140020558
cmp eax, 3
jne 0x140020558
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 0x140020569
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.1400b6c20
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400273a4
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 [0x140119ad0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400273e5
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 0x14002748f
lea eax, [rsi + 2]
mul r15
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.14009afbc
mov rbx, rax
mov qword [rsp + 0x28], rax
cmp qword [rdi + 0x18], 8
jb 0x140027425
mov rdi, qword [rdi]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400274d1
cmp word [rbx], si
je 0x14002744e
inc r14
cmp word [rbx + r14*2], si
jne 0x140027441
mov rsi, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.1400061d0
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.1400b6c20
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.140005fd8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.1400056b8
lea rdx, [0x14010f8f8]
lea rcx, [rsp + 0x110]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x38]
call fcn.140005fd8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.1400056b8
lea rdx, [0x14010f8f8]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140027790
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 [0x140119ad0]
xor rax, rsp
mov qword [rbp], rax
mov r13, rdx
cmp qword [rcx + 0x18], 8
jb 0x1400277d1
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 0x140027984
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
je 0x1400279be
mov ecx, r15d
call fcn.14009afbc
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 0x14002794a
lea rcx, [rsp + 0x40]
call fcn.14000cbe4
cmp byte [rdi], 0xef
jne 0x14002787f
cmp byte [rdi + 1], 0xbb
jne 0x14002787f
cmp byte [rdi + 2], 0xbf
jne 0x14002787f
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 0x1400278fc
mov eax, 2
mul r12
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.14009afbc
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.1400061d0
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x14002790f
xor r8d, r8d
lea rdx, [0x1400cfdc0]
mov rcx, r13
call fcn.1400061d0
nop
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rcx, [rsp + 0x40]
call fcn.14000aabc
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400b6c20
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_read_error
lea rcx, [rsp + 0x68]
call fcn.140005fd8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400056b8
lea rdx, [0x14010f8f8]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.File_open_error
lea rcx, [rsp + 0x68]
call fcn.140005fd8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400056b8
lea rdx, [0x14010f8f8]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Unable_to_get_file_size
lea rcx, [rsp + 0x68]
call fcn.140005fd8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400056b8
lea rdx, [0x14010f8f8]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140039f6c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x1401132a8], rbx
jne 0x140039ff7
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400de258]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140039fec
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x140039fc4
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140039fb8
mov rbx, rax
mov r8, rbx
lea rcx, [0x140113298]
call fcn.1400061d0
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x140113298]
call fcn.1400062f8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [0x140113298]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b6c20
add rsp, 0x30
pop rbx
ret
Function at 0x14003ff74
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 0x14003ff8b
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x14003ffbb
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x14003ff9d
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 0x14003fff4
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret

Function at 0x140044d0c
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x140044eab
cmp ecx, 0x7c
je 0x140044eab
cmp ecx, 0x29
jne 0x140044d53
cmp dword [rbx + 0x1c], 0
jne 0x140044eab
cmp ecx, ecx
jne 0x140044d53
test dword [rbx + 0x80], 0x10000000
je 0x140044ecc
cmp ecx, 0x2e
jne 0x140044d73
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.140044ff4
mov rcx, rbx
call fcn.140044ca4
jmp 0x140044e99
cmp ecx, 0x5c
jne 0x140044dda
mov rcx, rbx
call fcn.140044ca4
test byte [rbx + 0x80], 0x80
je 0x140044dcd
cmp word [rbx + 0x78], 0x62
jne 0x140044dab
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.140044ff4
mov rcx, rbx
call fcn.140044ca4
jmp 0x140044ea1
cmp word [rbx + 0x78], 0x42
jne 0x140044dcd
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.140044ff4
mov rax, qword [rbx + 0x48]
add rax, 0xc
xor dword [rax], 1
jmp 0x140044d9e
mov rcx, rbx
call fcn.140045710
jmp 0x140044e99
cmp ecx, 0x5b
jne 0x140044dfe
mov rcx, rbx
call fcn.140044ca4
mov rcx, rbx
call fcn.1400455b8
cmp dword [rbx + 0x7c], 0x5d
jne 0x140044eb6
jmp 0x140044d66
cmp ecx, 0x28
jne 0x140044e22
mov rcx, rbx
call fcn.140044ca4
mov rcx, rbx
call fcn.140045880
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x140044ec1
jmp 0x140044e8c
cmp ecx, 0x5e
jne 0x140044e2f
lea edx, [rcx - 0x5c]
jmp 0x140044d95
cmp ecx, 0x24
jne 0x140044e3c
lea edx, [rcx - 0x21]
jmp 0x140044d95
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x140044eed
cmp ecx, 0x3f
je 0x140044eed
cmp ecx, 0x7b
je 0x140044eed
cmp ecx, 0x7d
jne 0x140044e6b
test dword [rbx + 0x80], 0x10000000
je 0x140044ed7
cmp ecx, 0x5d
jne 0x140044e7c
test dword [rbx + 0x80], 0x10000000
je 0x140044ee2
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140045a7c
mov dil, 1
mov rcx, rbx
call fcn.140044ca4
test dil, dil
je 0x140044ea1
mov rcx, rbx
call fcn.140045974
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x140044d1e
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 4
call fcn.140044480
int3
mov edx, 5
call fcn.140044480
int3
mov edx, 5
call fcn.140044480
int3
mov edx, 6
call fcn.140044480
int3
mov edx, 4
call fcn.140044480
int3
mov edx, 0xa
call fcn.140044480
int3
Function at 0x140048434
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 [0x140119ad0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, r8
mov rsi, rdx
mov qword [rbp + 0x17], rdx
mov ecx, 0x18
call fcn.140099e88
mov rdi, rax
mov qword [rbp + 7], rax
xor r13d, r13d
test rax, rax
je 0x140048497
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
jmp 0x14004849a
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 + 0x17]
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
jne 0x1400485ce
mov r12d, dword [rbp + 0x17]
inc r12d
mov ecx, r12d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14009afbc
mov rbx, rax
mov qword [rbp - 0x49], rax
mov r14d, r13d
cmp dword [rbp + 0xf], r13d
jbe 0x140048598
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, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140048615
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.1400061d0
nop
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14003f018
nop
cmp qword [rbp - 0x61], 8
jb 0x14004858f
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
inc r14d
cmp r14d, dword [rbp + 0xf]
jb 0x14004851c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsi], rdi
mov rax, rsi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400b6c20
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 [0x14011b2c0], 2
je 0x1400485e6
mov r8d, eax
lea rdx, [0x1400cf390]
call fcn.140007900
lea rdx, str.Unable_to_query_template_index.
lea rcx, [rbp - 0x79]
call fcn.140005fd8
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140048084
lea rdx, [0x140110888]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
test byte [0x14011b2c0], 2
je 0x14004862d
mov r8d, eax
lea rdx, [0x1400cf130]
call fcn.140007900
lea rdx, str.Unable_to_enumerate_template_index_subkeys.
lea rcx, [rbp - 0x79]
call fcn.140005fd8
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140048084
lea rdx, [0x140110888]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140048eec
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov rsi, rdx
mov r15, rcx
xor ebp, ebp
mov r12d, 0x811c9dc5
mov r14, qword [rdx + 0x10]
movabs rax, 0xcccccccccccccccd
mul r14
mov rdi, rdx
shr rdi, 3
inc rdi
test r14, r14
je 0x140048fc9
mov cl, 1
call fcn.14009a6d0
mov qword [rsp + 0x60], rax
cmp qword [rsi + 0x18], 8
jb 0x140048f56
mov rax, qword [rsi]
jmp 0x140048f59
mov rax, rsi
movzx ebx, word [rax + rbp*2]
lea rcx, [rsp + 0x60]
call fcn.140006850
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
movzx edx, bx
mov rcx, r8
call qword [0x1400ca210]
movzx ecx, ax
imul r12, r12, 0x1000193
xor r12, rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140048fbd
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400ca210]
mov r8, rax
test rax, rax
je 0x140048fbd
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 1
mov rcx, r8
call qword [0x1400ca210]
add rbp, rdi
cmp rbp, r14
jb 0x140048f3e
mov rdx, qword [r15 + 0x28]
mov rax, rdx
and rax, r12
cmp qword [r15 + 0x30], rax
ja 0x140048fe6
shr rdx, 1
or rcx, 0xffffffffffffffff
sub rcx, rdx
add rax, rcx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140049004
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 [0x140119ad0]
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 0x140049048
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x140049077
movzx eax, byte [r8 + rdx]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x140049059
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 0x14004909e
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 0x140049103
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rcx
je 0x140049103
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, rdi
call fcn.1400369b0
test al, al
jne 0x1400490de
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
jne 0x1400490be
jmp 0x140049103
mov rdx, rdi
lea rcx, [rbx + 0x10]
call fcn.1400369b0
test al, al
jne 0x1400490f3
mov rbx, qword [rbx]
jmp 0x140049103
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x1400491e8
mov rax, qword [r14]
mov r13, qword [rax]
mov r9, rdi
mov r8, qword [r13 + 8]
mov rdx, r13
call fcn.140049a70
mov rdx, rax
mov rax, qword [r14 + 8]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, 1
jb 0x140049205
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 0x14004918b
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 0x1400491a4
mov qword [rcx + rsi*8], rdi
mov rax, qword [r14 + 0x10]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x1400491d4
cmp qword [rcx + rsi*8], rbx
jne 0x1400491b0
mov qword [rcx + rsi*8], rdi
jmp 0x1400491d4
mov rax, qword [rcx + rsi*8 + 8]
mov rdx, qword [rax]
mov qword [rcx + rsi*8 + 8], rdx
cmp rdx, rdi
je 0x1400491d4
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.140049218
nop
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b6c20
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.14009a19c
int3
Function at 0x1400492d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rsp + 0x20], rax
lea rsi, [r8 + 0x10]
mov rbx, r8
cmp qword [rsi + 0x18], 8
mov r15, rdx
mov r9, qword [rsi + 0x10]
mov r14, rcx
jb 0x14004930c
mov r8, qword [rsi]
jmp 0x14004930f
mov r8, rsi
xor ebp, ebp
movabs rcx, 0xcbf29ce484222325
mov edx, ebp
add r9, r9
je 0x140049340
movzx eax, byte [r8 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r10
cmp rdx, r9
jb 0x140049322
mov r8, qword [r14 + 0x28]
mov rdx, rcx
shr rdx, 0x20
xor rdx, rcx
and rdx, r8
cmp qword [r14 + 0x30], rdx
ja 0x140049364
shr r8, 1
or rax, 0xffffffffffffffff
sub rax, r8
add rdx, rax
mov rcx, qword [r14 + 0x10]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x140049393
cmp qword [rcx + rdx*8], rbx
jne 0x140049388
mov rax, qword [r14]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r14 + 0x10]
mov rax, qword [r14]
jmp 0x14004938c
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400493a0
cmp qword [rcx + rdx*8], rbx
jne 0x1400493a0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rdi, qword [rbx]
cmp rbx, qword [r14]
je 0x1400493e6
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rsi + 0x18], 8
jb 0x1400493ca
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsi + 0x18], 7
mov rcx, rbx
mov qword [rsi + 0x10], rbp
mov word [rsi], bp
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
dec qword [r14 + 8]
mov qword [r15], rdi
mov rax, r15
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400b6c20
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret