joyce8/EMBER2024-capa huggingface dataset:
Function at 0x658414b3
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push rbp
sub rsp, 0x900
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x890], rcx
mov dword [rbp + 0x898], edx
mov qword [rbp + 0x878], 0
lea rax, [rbp + 0x810]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp + 0x810], 0x68
lea rax, [rbp + 0x7f0]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x810]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call rax
mov dword [rbp + 0x84c], 0x101
mov word [rbp + 0x850], 0
mov qword [rbp + 0x868], 0
mov qword [rbp + 0x870], 0
mov qword [rbp + 0x860], 0
lea rax, [rbp + 0x3f0]
mov r8d, 0x400
mov rdx, rax
lea rcx, str.windir
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
lea rdx, [rbp + 0x3f0]
lea rax, [rbp - 0x10]
mov r9, rdx
lea r8, str._sSysWOW64_rundll32.exe
mov edx, 0x400
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__snprintf]
call rax
lea rax, [rbp - 0x10]
lea rdx, [rbp + 0x7f0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x810]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x65841666
mov rax, qword [rbp + 0x7f0]
mov qword [rbp + 0x878], rax
cmp qword [rbp + 0x878], 0
je 0x65841669
mov eax, dword [rbp + 0x898]
movsxd rcx, eax
mov rax, qword [rbp + 0x7f0]
mov rdx, qword [rbp + 0x7f8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp + 0x800]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x878]
mov r9, rcx
mov r8, qword [rbp + 0x890]
mov rcx, rax
call fcn.658413d0
jmp 0x6584166a
nop
jmp 0x6584166a
nop
add rsp, 0x900
pop rbp
ret

Function at 0x65841710
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 0
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x65841ae0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.65842d60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.65842d60
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x65841b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x658475e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x65841cf8
mov rax, qword [0x658475e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x65841b9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x65841c27
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x65841b80
mov rcx, r12
call fcn.65842850
mov rbp, rax
test rax, rax
je 0x65841d32
mov rax, qword [0x658475e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.65842980
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x658475e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x65841d41
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x65841c20
sub eax, 4
and eax, 0xfffffffb
jne 0x65841cb0
add dword [0x658475e4], 1
cmp ebx, 8
jae 0x65841c58
test bl, 4
jne 0x65841d00
test ebx, ebx
je 0x65841c49
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x65841d20
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x65841c49
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x65841c8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x658475e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x65841c20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.65841ae0
nop dword [rax]
xor edi, edi
jmp 0x65841ba7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x65841c49
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x65841c49
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.65841ae0
mov rax, qword [0x658475e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.65841ae0
nop
nop dword [rax]
Function at 0x658424c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x658478c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x658478a0]
test rbx, rbx
je 0x65842514
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6584250b
test r12, r12
je 0x6584250b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x658424f0
lea rcx, [0x658478c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x65842850
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x65844260]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x658428c9
mov rcx, r10
call fcn.65842720
test eax, eax
je 0x658428c9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x658428c6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x658428bd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x658428c9
add r8, 0x28
cmp r8, r9
jne 0x658428a8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140003e20
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x140017058]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2c0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x68], 0x104
xor r14d, r14d
mov dword [rsp + 0x60], r14d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004060
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x2c0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x64], 0xff
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140004060
mov ebx, r14d
nop word [rax + rax]
mov dword [rsp + 0x64], 0xff
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x64]
lea r8, [rbp + 0xc0]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140004054
lea r9, [rbp + 0xc0]
mov r8, rsi
lea rdx, [0x1400117a0]
lea rcx, [0x1400173d0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xff
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [0x1400173d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003fd0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140005070
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140004011
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rbp - 0x68], 0
add qword [rdi + 8], 0x20
jmp 0x140004021
lea r8, [rbp - 0x68]
mov rcx, rdi
call fcn.1400029f0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140004054
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000404f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004088
call fcn.14000f244
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140003f20
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.14000f5c0
add rsp, 0x5e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140004a60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140017058]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004b33
cmp byte [rcx + 0x71], 0
je 0x140004b33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004b2f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004af4
sub eax, 1
je 0x140004af8
cmp eax, 2
jne 0x140004b2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f5c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004b26
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004b2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004adc
xor al, al
jmp 0x140004adc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f5c0
add rsp, 0x60
pop rbx
ret
Function at 0x140007230
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x370
mov rax, qword [0x140017058]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r8
xor r14d, r14d
mov dword [rsp + 0x40], r14d
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000729f
mov r8, qword [rdi]
mov dword [rsp + 0x28], 0xff
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
mov rbx, 0xffffffffffffffff
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x44], 0x100
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov qword [rsi + 0x10], r14
mov byte [rsi], 0
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x160]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000738a
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Installdir
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000738a
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xff
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rsp + 0x160]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x60]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140007371
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140005070
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400073cc
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400073c7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400073fc
mov rcx, r8
call fcn.14000f244
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, rsi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14000f5c0
add rsp, 0x370
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140008530
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140017058]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000855d
xor eax, eax
jmp 0x1400086b2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140008588
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140008588
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 0x1400086b2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400086a5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400085cb
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 0x1400085f6
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 0x1400086aa
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
js 0x1400086a5
cmp eax, 1
jle 0x140008665
cmp eax, 3
jne 0x1400086a5
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 0x1400086aa
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008693
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 0x1400086a5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x1400086aa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000f5c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400087c0
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x140017058]
xor rax, rsp
mov qword [rbp + 0x440], rax
cmp qword [rcx + 0x40], 0x10
lea r8, [rcx + 0x28]
mov rbx, rcx
mov dword [rsp + 0x30], 0x100
jb 0x1400087ff
mov r8, qword [r8]
lea rdx, [0x1400118fc]
lea rcx, [rsp + 0x40]
call fcn.140009220
lea rax, [rbp + 0x40]
mov dword [rsp + 0x28], 0xff
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp qword [rbx + 0x20], 0x10
lea r8, [rbx + 8]
jb 0x140008844
mov r8, qword [r8]
lea rdx, str.SoftwareQuickPluginsQuickTiles_s
lea rcx, [rsp + 0x40]
call fcn.140009220
lea rax, [rbp + 0x240]
mov dword [rsp + 0x28], 0xff
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp byte [rbx], 0
lea rdx, [rbp + 0x240]
mov rcx, 0xffffffff80000001
je 0x14000895a
lea r8, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400088d5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Installdir
lea rax, [rbp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000891e
jmp 0x1400088f2
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
lea rdx, [rbp + 0x240]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140008960
mov eax, dword [rsp + 0x30]
lea rdx, str.Installdir
mov rcx, qword [rsp + 0x38]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rsp + 0x30]
lea rdx, [0x140011928]
mov rcx, qword [rsp + 0x38]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [0x140011924]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008960
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.14000f5c0
mov rbx, qword [rsp + 0x568]
add rsp, 0x550
pop rbp
ret
Function at 0x140008fc0
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 0x140008ff1
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 case.default.0x140009008
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 0x140009030
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009032
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009064
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
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 0x140009101
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400090a2
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 0x1400090e1
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 0x140009122
cmp rdi, rax
ja 0x1400090b0
test rbx, rbx
je 0x140009101
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 0x140009104
mov bl, 0x5c
or bl, byte [rbx]
test ax, sp
test eax, esp
sub eax, 0x5551d32d
pop rax
sahf
xchg esp, eax
lock sub byte [rdi + riz*4 - 0x3936d879], al
jmp 0x14002783d
Function at 0x140009130
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 case.default.0x140009160
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 0x140009188
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000918a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400091e3
test ecx, ecx
jle 0x1400091c3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
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 0x1400091e3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400091e3
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
mov ebp, 0x12337743
mov ebx, 0x56d2b9ea
mov ecx, 0x38b06aad
push rcx
movabs dword [0x639b456c25db327e], eax
add eax, 0xde247784
jne 0x1400278e8
mov ah, 0x9d
xor byte [rdx], 0x25
out dx, al
add bl, byte [rsi + 0x5fc27558]
movabs eax, dword [0x1647b4b8d9540116]
jne 0x140027846
cdq
mov word [rsi], gs
xor byte [rdx + 0x58450e38], cl
sub esp, 0x6ca07cba
sal dword [rsi], cl
xchg edx, eax
adc eax, 0x10909d59
mov byte [rsi - 0x18db58e0], 0x39
adc eax, 0x95592565
cmp edx, ebp
popfq
adc eax, 0x9b0d738a
wait
adc dl, byte [rdx]
add al, 0xfa
or esi, esi
invalid