joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140042600]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140042610]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140051008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140042560]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400425f0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140051028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140051020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140051020], rbp
call dbg.__main
mov rax, qword [0x140042580]
mov r8, qword [0x140051018]
mov ecx, dword [0x140051028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140051020]
call sym.main
mov ecx, dword [0x14005100c]
mov dword [0x140051010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140051008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140042610]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140042650]
mov rcx, qword [0x140042640]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x140051010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140042670]
mov rcx, qword [0x140042660]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop

Function at 0x140002b50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140005370
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, rcx
xor esi, esi
mov qword [r11 - 0x18], rsi
lea rax, [r11 - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000548f
mov r9, qword [rdi + 0x18]
mov edx, esi
test r9, r9
je 0x140005413
lea edx, [rsi + 0x32]
mov r8d, edx
mov rax, r9
cmp word [rax], si
je 0x1400053f4
add rax, 2
sub r8, 1
jne 0x1400053e5
mov rax, r8
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test r8, r8
je 0x14000540e
sub rdx, r8
jmp 0x140005418
mov rdx, rsi
jmp 0x140005418
mov ecx, 0x80070057
test ecx, ecx
js 0x140005421
add rdx, rdx
jmp 0x140005424
mov rdx, rsi
test ecx, ecx
jne 0x140005467
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400054d7
lea eax, [rdx + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400054a3
lea rcx, str.Unable_to_add_an_entry_for_the_UE_V_agent_service_to_the_App_V_4.x_ServiceInclusions_registry_key__error_code_0x_X_
jmp 0x14000549b
test dword [0x14011c1c0], 0x200
je 0x1400054a3
lea r8, str.Unexpected_error_getting_the_length_of_the_UE_V_registry_value
lea rdx, [0x1400c9730]
lea rcx, [0x140114050]
call fcn.140002ab4
jmp 0x1400054a3
cmp eax, 2
je 0x1400054a3
lea rcx, str.An_unexpected_error_occurred_opening_the_App_V_4.x_product_registry_key__error_code_0x_X_
mov edx, eax
call fcn.140006518
nop
lea rcx, [rsp + 0xa0]
call fcn.140005970
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400afd50
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x38]
call fcn.140005a10
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140005274
lea rdx, [0x140110088]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400195bc
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 0x14001966e
mov dword [rbp + 0x37], 4
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x1400196a9
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 0x14001967d
mov edx, dword [rbp + 0x3b]
cmp edx, 4
jne 0x140019660
mov ebx, dword [rbp + 0x3f]
jmp 0x14001967d
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Unexpected_value_type__type__0x_X
call fcn.140003f78
jmp 0x14001967d
mov edx, eax
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Failed_to_open_configuration_key__status__0x_X
call fcn.140003f78
nop
lea rcx, [rbp + 0x47]
call fcn.140005970
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400afd50
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.140005a10
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.140005274
lea rdx, [0x140110088]
lea rcx, [rbp - 9]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140021000
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 0x140021050
cmp edx, ebx
cmove esi, r14d
mov eax, esi
jmp 0x140021210
mov rax, qword [rcx + 0x40]
cmp qword [rax], r14
je 0x140021084
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140021084
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 0x140021049
cmp qword [rdi + 0x90], r14
je 0x14002120e
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x1400210bb
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 0x1400210dc
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
cmp eax, ebx
cmovne ebx, esi
jmp 0x14002120e
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.14000fe14
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 [0x1400c51a0]
test eax, eax
js 0x1400211fd
cmp eax, 1
jg 0x1400211e2
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 0x1400211a8
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 0x1400211fd
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x1400211de
test r15, r15
jne 0x140021101
cmp qword [rbp + 0x17], 0x20
jae 0x1400211fd
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140006708
jmp 0x140021101
mov ebx, esi
jmp 0x1400211fd
cmp eax, 3
jne 0x1400211fd
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 0x14002120e
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.1400afd50
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 0x140022d04
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 0x140022d45
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 0x140022e2d
lea eax, [rsi + 2]
mul r15
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.140093f2c
mov rbx, rax
mov qword [rsp + 0x28], rax
cmp qword [rdi + 0x18], 8
jb 0x140022d85
mov rdi, qword [rdi]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140022deb
cmp word [rbx], si
je 0x140022daa
inc r14
cmp word [rbx + r14*2], si
jne 0x140022d9d
mov rsi, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.140005bf4
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.1400afd50
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.140005a10
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.140005128
lea rdx, [0x140110048]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x38]
call fcn.140005a10
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.140005128
lea rdx, [0x140110048]
lea rcx, [rsp + 0x110]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400230e4
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 0x140023125
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 0x14002329e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
je 0x1400232d8
mov ecx, r15d
call fcn.140093f2c
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 0x140023312
lea rcx, [rsp + 0x40]
call fcn.14000c1f4
cmp byte [rdi], 0xef
jne 0x1400231d3
cmp byte [rdi + 1], 0xbb
jne 0x1400231d3
cmp byte [rdi + 2], 0xbf
jne 0x1400231d3
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 0x140023250
mov eax, 2
mul r12
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.140093f2c
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.140005bf4
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x140023263
xor r8d, r8d
lea rdx, [0x1400cad60]
mov rcx, r13
call fcn.140005bf4
nop
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rcx, [rsp + 0x40]
call fcn.14000a240
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400afd50
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.140005a10
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140005128
lea rdx, [0x140110048]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Unable_to_get_file_size
lea rcx, [rsp + 0x68]
call fcn.140005a10
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140005128
lea rdx, [0x140110048]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.File_read_error
lea rcx, [rsp + 0x68]
call fcn.140005a10
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140005128
lea rdx, [0x140110048]
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140035b18
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 0x140035ba3
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400d8938]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140035b98
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x140035b70
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140035b64
mov rbx, rax
mov r8, rbx
lea rcx, [0x140114288]
call fcn.140005bf4
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x140114288]
call fcn.140005d18
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.1400afd50
add rsp, 0x30
pop rbx
ret
Function at 0x14003b94c
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 0x14003b963
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x14003b993
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x14003b975
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 0x14003b9cc
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret

Function at 0x14003ffec
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 0x140040193
mov ecx, edx
cmp ecx, 0x7c
je 0x140040193
cmp ecx, 0x29
jne 0x140040035
cmp dword [rbx + 0x1c], 0
jne 0x140040193
cmp ecx, ecx
jne 0x140040035
test dword [rbx + 0x80], 0x10000000
je 0x1400401b4
cmp ecx, 0x2e
jne 0x140040055
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.1400402cc
mov rcx, rbx
call fcn.14003ff88
jmp 0x14004017b
cmp ecx, 0x5c
jne 0x1400400bc
mov rcx, rbx
call fcn.14003ff88
test byte [rbx + 0x80], 0x80
je 0x1400400af
cmp word [rbx + 0x78], 0x62
jne 0x14004008d
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.1400402cc
mov rcx, rbx
call fcn.14003ff88
jmp 0x140040183
cmp word [rbx + 0x78], 0x42
jne 0x1400400af
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400402cc
mov rax, qword [rbx + 0x48]
add rax, 0xc
xor dword [rax], 1
jmp 0x140040080
mov rcx, rbx
call fcn.140040708
jmp 0x14004017b
cmp ecx, 0x5b
jne 0x1400400e0
mov rcx, rbx
call fcn.14003ff88
mov rcx, rbx
call fcn.1400405a0
cmp dword [rbx + 0x7c], 0x5d
jne 0x14004019e
jmp 0x140040048
cmp ecx, 0x28
jne 0x140040104
mov rcx, rbx
call fcn.14003ff88
mov rcx, rbx
call fcn.140040874
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400401a9
jmp 0x14004016e
cmp ecx, 0x5e
jne 0x140040111
lea edx, [rcx - 0x5c]
jmp 0x140040077
cmp ecx, 0x24
jne 0x14004011e
lea edx, [rcx - 0x21]
jmp 0x140040077
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400401d5
cmp ecx, 0x3f
je 0x1400401d5
cmp ecx, 0x7b
je 0x1400401d5
cmp edx, 0x7d
jne 0x14004014d
test dword [rbx + 0x80], 0x10000000
je 0x1400401bf
cmp edx, 0x5d
jne 0x14004015e
test dword [rbx + 0x80], 0x10000000
je 0x1400401ca
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140040a60
mov dil, 1
mov rcx, rbx
call fcn.14003ff88
test dil, dil
je 0x140040183
mov rcx, rbx
call fcn.140040960
mov edx, dword [rbx + 0x7c]
mov al, 1
mov ecx, edx
cmp edx, 0xffffffff
jne 0x140040009
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 4
call fcn.14003fb4c
int3
mov edx, 5
call fcn.14003fb4c
int3
mov edx, 5
call fcn.14003fb4c
int3
mov edx, 6
call fcn.14003fb4c
int3
mov edx, 4
call fcn.14003fb4c
int3
mov edx, 0xa
call fcn.14003fb4c
int3
Function at 0x140042800
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.140092f2c
mov rdi, rax
mov qword [rbp + 7], rax
xor r13d, r13d
test rax, rax
je 0x14004285f
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
jmp 0x140042862
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 0x1400428bd
test byte [0x14011c1c0], 2
jne 0x1400429a8
jmp 0x1400429b7
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.140093f2c
mov rbx, rax
mov qword [rbp - 0x49], rax
mov esi, r13d
cmp dword [rbp + 0xf], r13d
jbe 0x140042967
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 0x14004299d
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.140005bf4
nop
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14003aa7c
nop
cmp qword [rbp - 0x61], 8
jb 0x140042960
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 0x1400428f2
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.1400afd50
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 [0x14011c1c0], 2
jne 0x1400429e6
jmp 0x1400429f5
mov r8d, eax
lea rdx, [0x1400ca300]
call fcn.1400072c8
lea rdx, str.Unable_to_query_template_index.
lea rcx, [rbp - 0x79]
call fcn.140005a10
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140042464
lea rdx, [0x140110f78]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
mov r8d, eax
lea rdx, [0x1400ca428]
call fcn.1400072c8
lea rdx, str.Unable_to_enumerate_template_index_subkeys.
lea rcx, [rbp - 0x79]
call fcn.140005a10
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140042464
lea rdx, [0x140110f78]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400432b4
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 0x140043391
mov cl, 1
call fcn.1400936b8
mov qword [rsp + 0x60], rax
cmp qword [rsi + 0x18], 8
jb 0x14004331e
mov rax, qword [rsi]
jmp 0x140043321
mov rax, rsi
movzx ebx, word [rax + rbp*2]
lea rcx, [rsp + 0x60]
call fcn.140006270
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
movzx edx, bx
mov rcx, r8
call qword [0x1400c51a0]
movzx ecx, ax
imul r12, r12, 0x1000193
xor r12, rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140043385
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400c51a0]
mov r8, rax
test rax, rax
je 0x140043385
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 1
mov rcx, r8
call qword [0x1400c51a0]
add rbp, rdi
cmp rbp, r14
jb 0x140043306
mov rdx, qword [r15 + 0x28]
mov rax, rdx
and rax, r12
cmp qword [r15 + 0x30], rax
ja 0x1400433ae
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