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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1400d0252
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400cfe10
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x1400d0217
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x1400d0183
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1400d0206
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x1400d01c0
mov r10, qword [rax]
cmp r10, rcx
je 0x1400d01ba
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1400d0206
mov r8, rax
cmp r10, rax
je 0x1400d01e2
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x1400d022c
cmp r10, rax
jne 0x1400d01d0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x1400d0130
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1400d0206
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x1400d2560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1405a9ae8]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x40]
call fcn.1400d6680
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400d6020
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400d25d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d25d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d25d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
cmp qword [rsp + 0x30], 0
je 0x1400d25ff
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d25ff
mov bl, 1
jmp 0x1400d2601
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400d2646
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2641
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d2641
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140322dc0
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403230f0
add rsp, 0x70
pop rbx
ret
Function at 0x1400d3930
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1405a9ae8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400d395d
xor eax, eax
jmp 0x1400d3ab2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400d3988
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400d3988
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400d3ab2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400d3aa5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400d39cb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400d39f6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400d3aaa
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400d3a65
sub eax, 1
je 0x1400d3a65
cmp eax, 2
jne 0x1400d3aa5
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400d3aaa
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400d3a93
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400d3aa5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x1400d3aaa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1403230f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400d5e60
Capabilities:
Create directory

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1405a9ae8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, rcx
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1400d5e90
xor r12d, r12d
mov qword [rsp + 0x278], rbx
cmp word [rcx], 0x5c
jne 0x1400d5efb
cmp word [rcx + 2], 0x5c
jne 0x1400d5efb
lea edx, [r12 + 0x5c]
add rcx, 4
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x1400d5ed3
lea edx, [r12 + 0x5c]
lea rcx, [rax + 2]
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
lea rbx, [rax + 2]
cmove rbx, rax
test rbx, rbx
jne 0x1400d5ef3
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400d5ff5
sub rbx, rbp
sar rbx, 1
jmp 0x1400d5f0b
cmp word [rbp + 2], 0x3a
mov ebx, r12d
mov ecx, 3
cmove ebx, ecx
mov qword [rsp + 0x280], rsi
mov qword [rsp + 0x248], r14
movsxd r14, edi
movsxd rsi, ebx
mov qword [rsp + 0x240], r15
cmp rsi, r14
jge 0x1400d5fa6
lea rax, [rsp + 0x20]
mov r15, rbp
sub r15, rax
nop dword [rax]
lea rdi, [rsp + 0x20]
lea rdi, [rdi + rsi*2]
movzx eax, word [r15 + rdi]
cmp ax, 0x5c
je 0x1400d5f5a
cmp ax, 0x2f
jne 0x1400d5f9c
movsxd r8, ebx
lea rcx, [rsp + 0x20]
add r8, r8
mov rdx, rbp
call fcn.14032409c
cmp rsi, 0x104
jae 0x1400d6019
xor edx, edx
mov word [rdi], r12w
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400d5f9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400d5fd4
inc ebx
inc rsi
cmp rsi, r14
jl 0x1400d5f40
movzx eax, word [rbp + r14*2 - 2]
cmp ax, 0x5c
je 0x1400d5fd8
cmp ax, 0x2f
je 0x1400d5fd8
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400d5fd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400d5fd8
xor eax, eax
jmp 0x1400d5fdd
mov eax, 1
mov r14, qword [rsp + 0x248]
mov rsi, qword [rsp + 0x280]
mov r15, qword [rsp + 0x240]
mov rbx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1403230f0
add rsp, 0x250
pop r12
pop rdi
pop rbp
ret
call fcn.1403235e0
int3
Function at 0x1400d6740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400d6771
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x1400d678f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d67b0
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400d67b2
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400d67e4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14032409c
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x1400d6881
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400d6822
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rdi, 0xfff
jbe 0x1400d6861
nop dword [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x1400d68a2
cmp rdi, rax
ja 0x1400d6830
test rbx, rbx
je 0x1400d6881
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x1400d6884
Function at 0x1400d68b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400d68e7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400d6908
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400d690a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400d6963
test ecx, ecx
jle 0x1400d6943
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.14032409c
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400d6963
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400d6963
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401bfd00
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x1405a9ae8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rax, vtable.vmsWinOsVersion.0
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x58], 0x11c
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x58]
test rax, rax
je 0x1401bfd7d
call rax
test eax, eax
sete al
jmp 0x1401bfd88
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
setne al
test al, al
je 0x1401bfda7
cmp dword [rsp + 0x5c], 0xa
jne 0x1401bfdaf
cmp dword [rsp + 0x64], 0x55f0
jb 0x1401bfdaf
mov dword [rsp + 0x5c], 0xb
jmp 0x1401bfdaf
mov dword [rsp + 0x5c], 0
mov edx, 5
lea rcx, str._1._2
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rsp + 0x38], rax
mov dl, 0x20
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx eax, word [rax]
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
mov r8d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_unsigned_int__int__int__class_QChar____ptr64]
mov rbx, rax
mov dl, 0x20
lea rcx, [rsp + 0x32]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx ecx, word [rax]
mov word [rsp + 0x28], cx
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_unsigned_int__int__int__class_QChar____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1403230f0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rdi
ret
Function at 0x1401d5fb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rax - 0x48], r15d
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rax - 0x48], 1
mov ebp, r15d
mov qword [rax - 0x40], r15
mov dword [rax - 0x38], r15d
mov qword [rax - 0x30], r15
mov qword [rax + 0x18], r15
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401d603f
mov eax, r15d
mov rbp, qword [rsp + 0x90]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], r15d
test eax, eax
jne 0x1401d616a
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401d6054
mov rdx, qword [rdi]
mov dword [rsp + 0x90], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d616a
mov eax, dword [rsp + 0x98]
dec eax
cmp eax, 1
ja 0x1401d616a
mov r14d, dword [rsp + 0x90]
shr r14d, 1
mov edx, r14d
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1401d60cb
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d60c0
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + r14*2], r15w
jmp 0x1401d60d9
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.1401d4660
mov rsi, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d60e6
mov rsi, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x1401d60f0
mov rdi, qword [rdi]
lea eax, [r14 + r14]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d6155
mov eax, dword [rsp + 0x90]
dec eax
cmp eax, 1
ja 0x1401d6155
test rsi, rsi
je 0x1401d616a
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1401d618f
test al, 1
jne 0x1401d6155
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x1401d616a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d6162
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov word [rax], r15w
test rbp, rbp
je 0x1401d6178
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rsi], r15w
jmp 0x1401d616a
Function at 0x1401d61a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rax - 0x48], r15d
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rax - 0x48], 1
mov ebp, r15d
mov qword [rax - 0x40], r15
mov dword [rax - 0x38], r15d
mov qword [rax - 0x30], r15
mov qword [rax + 0x18], r15
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Environment
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401d622f
mov eax, r15d
mov rbp, qword [rsp + 0x90]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], r15d
test eax, eax
jne 0x1401d635a
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401d6244
mov rdx, qword [rdi]
mov dword [rsp + 0x90], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d635a
mov eax, dword [rsp + 0x98]
dec eax
cmp eax, 1
ja 0x1401d635a
mov r14d, dword [rsp + 0x90]
shr r14d, 1
mov edx, r14d
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1401d62bb
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d62b0
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + r14*2], r15w
jmp 0x1401d62c9
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.1401d4660
mov rsi, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d62d6
mov rsi, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x1401d62e0
mov rdi, qword [rdi]
lea eax, [r14 + r14]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d6345
mov eax, dword [rsp + 0x90]
dec eax
cmp eax, 1
ja 0x1401d6345
test rsi, rsi
je 0x1401d635a
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1401d637f
test al, 1
jne 0x1401d6345
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x1401d635a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401d6352
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov word [rax], r15w
test rbp, rbp
je 0x1401d6368
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rsi], r15w
jmp 0x1401d635a
Function at 0x1401d7900
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401d7945
mov eax, edi
mov rbx, qword [rsp + 0x30]
test eax, eax
jne 0x1401d79b0
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.AppsUseLightTheme
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d79b0
cmp dword [rsp + 0x68], 4
jne 0x1401d79b0
mov eax, dword [rsp + 0x58]
neg eax
sbb edi, edi
test rbx, rbx
je 0x1401d79a2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [rdi + 2]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
test rbx, rbx
je 0x1401d79be
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1401ec530
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400483c0
test rax, rax
jne 0x140048370
mov rcx, rbx
call fcn.1400483c0
test rax, rax
je 0x140048386
mov rcx, rax
call qword [sym.imp.Qt5Gui.dll_public:_unsigned_long_long_unsigned___int64____cdecl_QWindow::winId_void_const___ptr64]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1401ec530
add rsp, 0x20
pop rbx
ret
sub rsp, 0x28
mov rax, rdx
test rdx, rdx
jne 0x1400483a6
call fcn.1400483c0
test rax, rax
je 0x1400483bb
mov rcx, rax
call qword [sym.imp.Qt5Gui.dll_public:_unsigned_long_long_unsigned___int64____cdecl_QWindow::winId_void_const___ptr64]
mov rcx, rax
add rsp, 0x28
jmp 0x1401ec530
add rsp, 0x28
ret
push rbx
sub rsp, 0x20
mov rbx, r9
test edx, edx
jne 0x140099a43
test r8d, r8d
je 0x140099a32
cmp r8d, 1
jne 0x140099a6f
add rsp, 0x20
pop rbx
jmp 0x140048350
mov rdx, qword [r9 + 8]
mov rdx, qword [rdx]
add rsp, 0x20
pop rbx
jmp 0x140048390
cmp edx, 0xc
jne 0x140099a6f
test r8d, r8d
jne 0x140099a56
mov rax, qword [r9 + 8]
cmp dword [rax], r8d
je 0x140099a65
mov rax, qword [r9]
mov dword [rax], 0xffffffff
add rsp, 0x20
pop rbx
ret
call fcn.140094270
mov rcx, qword [rbx]
mov dword [rcx], eax
add rsp, 0x20
pop rbx
ret
test rcx, rcx
je 0x1401ec5db
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1401ec5d6
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rbx
mov esi, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
cmp esi, eax
je 0x1401ec5ba
mov r8d, 1
mov edx, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, ebx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret