joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d6c8
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 [0x140118a50]
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 0x14001d739
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14001d739
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14001d717
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400d5240]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14001bf34
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 0x14001d79c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001d858
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
call fcn.14001d4bc
mov esi, eax
jmp 0x14001d85b
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.14001d584
mov esi, eax
test eax, eax
jns 0x14001d7d2
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.14001d480
jmp 0x14001d85b
lea r8, [0x1400d5248]
lea rcx, [rsp + 0x30]
call fcn.14001bf34
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14001d801
mov edx, 0xd4
jmp 0x14001d789
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001d584
mov esi, eax
test eax, eax
jns 0x14001d837
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.14001d480
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001d8ad
jmp 0x14001d85b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001d8bf
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 0x14001d86d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001d89b
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400b6250
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, 0x90e
call fcn.14001d4dc
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.14001d4dc
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.14001d4dc
int3
Function at 0x140020530
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 [0x140118a50]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x140020572
xor eax, eax
jmp 0x14002073b
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400205ac
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1400205ac
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 0x14002073b
cmp qword [rdi + 0x90], 0
je 0x140020739
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x1400205e4
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 0x140020606
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
cmp eax, ebx
cmovne ebx, esi
jmp 0x140020739
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.140010938
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 [0x1400c91f0]
test eax, eax
js 0x140020728
cmp eax, 1
jg 0x14002070d
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 0x1400206d3
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 0x140020728
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x140020709
test r14, r14
jne 0x14002062c
cmp qword [rbp + 0x17], 0x20
jae 0x140020728
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.140006cd4
jmp 0x14002062c
mov ebx, esi
jmp 0x140020728
cmp eax, 3
jne 0x140020728
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 0x140020739
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.1400b6250
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400275b4
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 [0x140118a50]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400275f5
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 0x14002769f
lea eax, [rsi + 2]
mul r15
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.14009a56c
mov rbx, rax
mov qword [rsp + 0x28], rax
cmp qword [rdi + 0x18], 8
jb 0x140027635
mov rdi, qword [rdi]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400276e1
cmp word [rbx], si
je 0x14002765e
inc r14
cmp word [rbx + r14*2], si
jne 0x140027651
mov rsi, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.140006190
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.1400b6250
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.140005f98
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.140005678
lea rdx, [0x14010e228]
lea rcx, [rsp + 0x110]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x38]
call fcn.140005f98
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.140005678
lea rdx, [0x14010e228]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400279a0
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 [0x140118a50]
xor rax, rsp
mov qword [rbp], rax
mov r13, rdx
cmp qword [rcx + 0x18], 8
jb 0x1400279e1
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 0x140027b94
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
je 0x140027bce
mov ecx, r15d
call fcn.14009a56c
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 0x140027b5a
lea rcx, [rsp + 0x40]
call fcn.14000cbe4
cmp byte [rdi], 0xef
jne 0x140027a8f
cmp byte [rdi + 1], 0xbb
jne 0x140027a8f
cmp byte [rdi + 2], 0xbf
jne 0x140027a8f
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 0x140027b0c
mov eax, 2
mul r12
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.14009a56c
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.140006190
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x140027b1f
xor r8d, r8d
lea rdx, [0x1400ced70]
mov rcx, r13
call fcn.140006190
nop
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rcx, [rsp + 0x40]
call fcn.14000aaac
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400b6250
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.140005f98
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140005678
lea rdx, [0x14010e228]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.File_open_error
lea rcx, [rsp + 0x68]
call fcn.140005f98
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140005678
lea rdx, [0x14010e228]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Unable_to_get_file_size
lea rcx, [rsp + 0x68]
call fcn.140005f98
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140005678
lea rdx, [0x14010e228]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14003af34
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140118a50]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x1401122a8], rbx
jne 0x14003afbf
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400dd190]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14003afb4
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x14003af8c
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x14003af80
mov rbx, rax
mov r8, rbx
lea rcx, [0x140112298]
call fcn.140006190
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x140112298]
call fcn.1400062b8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [0x140112298]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b6250
add rsp, 0x30
pop rbx
ret
Function at 0x140040f68
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 0x140040f7f
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x140040faf
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x140040f91
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 0x140040fe8
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret

Function at 0x140045818
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 0x1400459b3
mov ecx, edx
cmp ecx, 0x7c
je 0x1400459b3
cmp ecx, 0x29
jne 0x140045861
cmp dword [rbx + 0x1c], 0
jne 0x1400459b3
cmp ecx, ecx
jne 0x140045861
test dword [rbx + 0x80], 0x10000000
je 0x1400459df
cmp ecx, 0x2e
jne 0x140045881
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.140045afc
mov rcx, rbx
call fcn.1400457ac
jmp 0x14004599b
cmp ecx, 0x5c
jne 0x1400458e8
mov rcx, rbx
call fcn.1400457ac
test byte [rbx + 0x80], 0x80
je 0x1400458db
cmp word [rbx + 0x78], 0x62
jne 0x1400458b9
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.140045afc
mov rcx, rbx
call fcn.1400457ac
jmp 0x1400459a3
cmp word [rbx + 0x78], 0x42
jne 0x1400458db
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.140045afc
mov rax, qword [rbx + 0x48]
add rax, 0xc
xor dword [rax], 1
jmp 0x1400458ac
mov rcx, rbx
call fcn.140045f58
jmp 0x14004599b
cmp ecx, 0x5b
jne 0x14004590c
mov rcx, rbx
call fcn.1400457ac
mov rcx, rbx
call fcn.140045de8
cmp dword [rbx + 0x7c], 0x5d
jne 0x1400459c9
jmp 0x140045874
cmp ecx, 0x28
jne 0x140045930
mov rcx, rbx
call fcn.1400457ac
mov rcx, rbx
call fcn.1400460cc
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400459d4
jmp 0x14004598e
cmp ecx, 0x5e
jne 0x14004593d
lea edx, [rcx - 0x5c]
jmp 0x1400458a3
cmp ecx, 0x24
jne 0x14004594a
lea edx, [rcx - 0x21]
jmp 0x1400458a3
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400459be
cmp ecx, 0x3f
je 0x1400459be
cmp ecx, 0x7b
je 0x1400459be
cmp edx, 0x7d
jne 0x14004596d
test dword [rbx + 0x80], 0x10000000
je 0x1400459ea
cmp edx, 0x5d
jne 0x14004597e
test dword [rbx + 0x80], 0x10000000
je 0x1400459f5
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.1400462c8
mov dil, 1
mov rcx, rbx
call fcn.1400457ac
test dil, dil
je 0x1400459a3
mov rcx, rbx
call fcn.1400461c0
mov edx, dword [rbx + 0x7c]
mov al, 1
mov ecx, edx
cmp edx, 0xffffffff
jne 0x140045835
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
call fcn.140045350
int3
mov edx, 4
call fcn.140045350
int3
mov edx, 5
call fcn.140045350
int3
mov edx, 5
call fcn.140045350
int3
mov edx, 6
call fcn.140045350
int3
mov edx, 4
call fcn.140045350
int3
Function at 0x1400480d4
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 [0x140118a50]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r8
mov r14, rdx
mov ecx, 0x18
call fcn.140099438
mov rdi, rax
mov qword [rbp + 7], rax
xor r13d, r13d
test rax, rax
je 0x140048133
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
jmp 0x140048136
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
jne 0x140048267
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.14009a56c
mov rbx, rax
mov qword [rbp - 0x49], rax
mov esi, r13d
cmp dword [rbp + 0xf], r13d
jbe 0x140048231
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 0x1400482ae
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.140006190
nop
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140040000
nop
cmp qword [rbp - 0x61], 8
jb 0x14004822a
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 0x1400481b8
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.1400b6250
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 [0x14011a1c0], 2
je 0x14004827f
mov r8d, eax
lea rdx, [0x1400ce340]
call fcn.1400078e0
lea rdx, str.Unable_to_query_template_index.
lea rcx, [rbp - 0x79]
call fcn.140005f98
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140047d2c
lea rdx, [0x14010f1b8]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
test byte [0x14011a1c0], 2
je 0x1400482c6
mov r8d, eax
lea rdx, [0x1400ce0e0]
call fcn.1400078e0
lea rdx, str.Unable_to_enumerate_template_index_subkeys.
lea rcx, [rbp - 0x79]
call fcn.140005f98
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140047d2c
lea rdx, [0x14010f1b8]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140048b84
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 0x140048c61
mov cl, 1
call fcn.140099c80
mov qword [rsp + 0x60], rax
cmp qword [rsi + 0x18], 8
jb 0x140048bee
mov rax, qword [rsi]
jmp 0x140048bf1
mov rax, rsi
movzx ebx, word [rax + rbp*2]
lea rcx, [rsp + 0x60]
call fcn.140006818
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
movzx edx, bx
mov rcx, r8
call qword [0x1400c91f0]
movzx ecx, ax
imul r12, r12, 0x1000193
xor r12, rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140048c55
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400c91f0]
mov r8, rax
test rax, rax
je 0x140048c55
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 1
mov rcx, r8
call qword [0x1400c91f0]
add rbp, rdi
cmp rbp, r14
jb 0x140048bd6
mov rdx, qword [r15 + 0x28]
mov rax, rdx
and rax, r12
cmp qword [r15 + 0x30], rax
ja 0x140048c7e
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 0x140048c9c
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 [0x140118a50]
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 0x140048ce0
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x140048d0f
movzx eax, byte [r8 + rdx]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x140048cf1
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 0x140048d36
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 0x140048d9b
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rcx
je 0x140048d9b
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, rdi
call fcn.1400379a8
test al, al
jne 0x140048d76
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
jne 0x140048d56
jmp 0x140048d9b
mov rdx, rdi
lea rcx, [rbx + 0x10]
call fcn.1400379a8
test al, al
jne 0x140048d8b
mov rbx, qword [rbx]
jmp 0x140048d9b
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x140048e80
mov rax, qword [r14]
mov r13, qword [rax]
mov r9, rdi
mov r8, qword [r13 + 8]
mov rdx, r13
call fcn.14004970c
mov rdx, rax
mov rax, qword [r14 + 8]
movabs rcx, 0x492492492492491
sub rcx, rax
cmp rcx, 1
jb 0x140048e9d
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 0x140048e23
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 0x140048e3c
mov qword [rcx + rsi*8], rdi
mov rax, qword [r14 + 0x10]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x140048e6c
cmp qword [rcx + rsi*8], rbx
jne 0x140048e48
mov qword [rcx + rsi*8], rdi
jmp 0x140048e6c
mov rax, qword [rcx + rsi*8 + 8]
mov rdx, qword [rax]
mov qword [rcx + rsi*8 + 8], rdx
cmp rdx, rdi
je 0x140048e6c
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.140048eb0
nop
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b6250
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.14009974c
int3
Function at 0x140048f68
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 [0x140118a50]
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 0x140048fa4
mov r8, qword [rsi]
jmp 0x140048fa7
mov r8, rsi
xor ebp, ebp
movabs rcx, 0xcbf29ce484222325
mov edx, ebp
add r9, r9
je 0x140048fd8
movzx eax, byte [r8 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r10
cmp rdx, r9
jb 0x140048fba
mov r8, qword [r14 + 0x28]
mov rdx, rcx
shr rdx, 0x20
xor rdx, rcx
and rdx, r8
cmp qword [r14 + 0x30], rdx
ja 0x140048ffc
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 0x14004902b
cmp qword [rcx + rdx*8], rbx
jne 0x140049020
mov rax, qword [r14]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r14 + 0x10]
mov rax, qword [r14]
jmp 0x140049024
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140049038
cmp qword [rcx + rdx*8], rbx
jne 0x140049038
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rdi, qword [rbx]
cmp rbx, qword [r14]
je 0x14004907e
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 0x140049062
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.1400b6250
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret