joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x90], 0
jg 0x14000e6bf
xor eax, eax
jmp 0x14000e8a7
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000e6f1
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call 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]
jmp 0x14000e8a7
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000e7a2
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140001da4
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140002a20
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000e897
mov rcx, qword [rsp + 0x80]
call fcn.14000cf6c
mov qword [rsp + 0x60], 0xfff
cmp qword [rsp + 0x28], 0xfff
jbe 0x14000e858
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x68], 0xfff
je 0x14000e853
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x14000e8a7
jmp 0x14000e7ce
cmp qword [rsp + 0x28], 0
jbe 0x14000e897
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140038100]
call fcn.140014604
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x14000e8d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14000e90a
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x14000e9f8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x14000e9a0
cmp qword [rsp + 0x28], 0
jle 0x14000e9a0
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x14000e94a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140002a20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x14000e9e8
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14000e9e8
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x1400115cc
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x740
lea rdi, [rsp + 0x30]
mov ecx, 0x1c4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x750]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x738], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x268], 0
mov r8, qword [rsp + 0x750]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x50]
call fcn.140001cc8
lea rcx, [0x140049598]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0
je 0x1400116a5
lea rdx, [0x1400495b8]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
jne 0x1400116a5
mov eax, dword [rsp + 0x30]
jmp 0x140011829
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x1400116e6
cmp qword [rsp + 0x278], 0
je 0x1400116dd
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140011829
mov dword [rsp + 0x290], 0x238
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14001172c
cmp qword [rsp + 0x278], 0
je 0x140011723
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140011829
lea rax, [rsp + 0x4f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x714], 0x104
mov qword [rsp + 0x38], 0
mov r8d, dword [rsp + 0x298]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400117ab
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x730], rax
lea r9, [rsp + 0x714]
lea r8, [rsp + 0x4f0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x730]
call qword [0x1400187a0]
lea rcx, [rsp + 0x4f0]
call fcn.140001cc8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400117dc
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x30], eax
jmp 0x1400117f9
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14001172c
cmp qword [rsp + 0x278], 0
je 0x140011812
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x140011825
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004c2b0]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0x738]
xor rcx, rsp
call fcn.140014710
add rsp, 0x740
pop rdi
ret
Function at 0x140011df0
Capabilities:
Compare security identifiers

Disassembly:
push rdi
sub rsp, 0x100
lea rdi, [rsp + 0x60]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x78]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011fe2
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x94], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x88]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140011fd7
mov eax, dword [rsp + 0x94]
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0xf0]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140011fd7
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x94]
mov r8, qword [rsp + 0x88]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140011fbe
mov byte [rsp + 0xb4], 0
mov byte [rsp + 0xb5], 0
mov byte [rsp + 0xb6], 0
mov byte [rsp + 0xb7], 0
mov byte [rsp + 0xb8], 0
mov byte [rsp + 0xb9], 5
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x12
mov dl, 1
lea rcx, [rsp + 0xb4]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140011fbe
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140011fbe
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov edi, eax
mov rcx, rsp
lea rdx, [0x14004be50]
call fcn.140014604
mov eax, edi
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140014710
add rsp, 0x100
pop rdi
ret
Function at 0x140012128
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x40], 0
jne 0x140012149
mov eax, dword [rsp + 0x20]
jmp 0x1400121cf
mov r8d, dword [rsp + 0x40]
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400121cb
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400121c0
mov edx, 0x186a0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400121ad
lea rdx, str._Process_was_terminated_successfully.
lea rcx, [0x140049080]
call fcn.140012b60
mov dword [rsp + 0x20], 1
jmp 0x1400121c0
lea rdx, str._Failed_to_terminate_the_process.
lea rcx, str.KillProcess:
call fcn.140012b60
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14001331c
Capabilities:
Create process on windows
Impersonate user

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x50]
mov ecx, MsiGetSummaryInformationW
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0xf8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x148], 0
xor r8d, r8d
mov rdx, qword [rsp + 0x180]
lea rcx, str.LaunchApplicationUsingDupToken::_Process_to_launch_:
call fcn.140012d44
mov r8d, dword [rsp + 0x188]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x158], 0
je 0x140013500
mov dword [rsp + 0x160], MsiDatabaseExportA
lea r8, [rsp + 0x128]
mov edx, dword [rsp + 0x160]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400134e2
mov dword [rsp + 0x164], 0x18b
lea rax, [rsp + 0x148]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, dword [rsp + 0x164]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400134c4
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], MsiDatabaseExportA
xor r9d, r9d
mov r8, qword [rsp + 0x180]
xor edx, edx
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x1400134a6
mov dword [rsp + 0x50], 1
jmp 0x1400134c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateProcessWithTokenW_failed_with
lea rcx, [0x14004e9f0]
call fcn.140012d44
jmp 0x1400134e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.DuplicateTokenEx_failed_with
lea rcx, [0x14004ea80]
call fcn.140012d44
jmp 0x1400134fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcessToken_failed_with
lea rcx, [0x14004eb10]
call fcn.140012d44
jmp 0x14001351c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcess_failed_with
lea rcx, str.LaunchApplicationUsingDupToken::
call fcn.140012d44
cmp qword [rsp + 0x128], 0
je 0x140013535
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x158], 0
je 0x14001354e
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xf8], 0
je 0x140013567
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x100], 0
je 0x140013580
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x148], 0
je 0x140013599
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, [0x14004f110]
call fcn.140014604
mov eax, edi
add rsp, 0x170
pop rdi
ret
Function at 0x140013810
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140013ab8
mov qword [rsp + 0x20], rax
mov ecx, 0x208
call fcn.140014778
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r8d, 0x208
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x34], 0
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.14001403c
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001389d
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140014770
mov eax, dword [rsp + 0x34]
add rsp, 0x50
pop rdi
ret

Function at 0x1400138bc
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140013ab8
mov qword [rsp + 0x20], rax
mov ecx, 0x208
call fcn.140014778
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r8d, 0x208
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0x200
cmp dword [rsp + 0x70], 0
je 0x14001392e
mov dword [rsp + 0x38], 0x100
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.14001403c
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001396d
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140014770
mov eax, dword [rsp + 0x34]
add rsp, 0x50
pop rdi
ret
Function at 0x14001398c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.140013ab8
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.140014778
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov r8d, 0x208
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x64], 0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.14001403c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x140013a68
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x140013a77
mov dword [rsp + 0x64], 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140014770
mov eax, dword [rsp + 0x64]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140051270]
call fcn.140014604
mov eax, edi
add rsp, 0x80
pop rdi
ret
Function at 0x140013c88
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.140013ab8
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.140014778
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov r8d, 0x208
xor edx, edx
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x84], 0
mov dword [rsp + 0xa4], 4
mov dword [rsp + 0xb4], 0x20019
cmp dword [rsp + 0xf8], 0
je 0x140013d45
mov eax, dword [rsp + 0xb4]
bts eax, 8
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.14001403c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xb4]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013dcc
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140013dcc
mov dword [rsp + 0x84], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140014770
mov eax, dword [rsp + 0x84]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1400510c0]
call fcn.140014604
mov eax, edi
add rsp, 0xd0
pop rdi
ret
Function at 0x140013e14
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
lea rdi, [rsp + 0x30]
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.140013ab8
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.140014778
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov r8d, 0x208
xor edx, edx
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [rsp + 0xf8]
mov qword [rsp + 0xb8], rax
mov eax, 2
mov rcx, qword [rsp + 0xb8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140014778
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0xf8]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [rsp + 0xf8]
shl rax, 1
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x94], 0x20019
cmp dword [rsp + 0xf0], 0
je 0x140013f2c
mov eax, dword [rsp + 0x94]
bts eax, 8
mov dword [rsp + 0x94], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.14001403c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x94]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013fe4
lea rax, [rsp + 0x84]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013fc3
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov ecx, dword [rsp + 0xf8]
dec ecx
mov ecx, ecx
shl rcx, 1
cmp rax, rcx
jb 0x140013fd1
mov qword [rsp + 0xe8], 0
jmp 0x140013fe4
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140014770
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140014770
mov rcx, rsp
lea rdx, [0x140051210]
call fcn.140014604
add rsp, 0xc0
pop rdi
ret