joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f2b0
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
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x90], 0
jg 0x14000f2ed
xor eax, eax
jmp 0x14000f4d5
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000f31f
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 0x14000f4d5
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 0x14000f3d0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140001d7c
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.140002f2c
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 0x14000f4c5
mov rcx, qword [rsp + 0x80]
call fcn.14000db50
mov qword [rsp + 0x60], 0xfff
cmp qword [rsp + 0x28], 0xfff
jbe 0x14000f486
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 0x14000f481
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x14000f4d5
jmp 0x14000f3fc
cmp qword [rsp + 0x28], 0
jbe 0x14000f4c5
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, [0x140037d00]
call fcn.140015370
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x14000f4f0
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 rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14000f53e
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 0x14000f62c
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 0x14000f5d4
cmp qword [rsp + 0x28], 0
jle 0x14000f5d4
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x14000f57e
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.140002f2c
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 0x14000f61c
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14000f61c
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 0x140012278
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x740
mov rdi, rsp
mov ecx, 0x1d0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x750]
mov rax, qword [0x140056008]
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.140001c64
lea rcx, [0x140048de8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0
je 0x14001234f
lea rdx, [0x140048a58]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
jne 0x14001234f
mov eax, dword [rsp + 0x30]
jmp 0x1400124d3
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x140012390
cmp qword [rsp + 0x278], 0
je 0x140012387
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x1400124d3
mov dword [rsp + 0x290], 0x238
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1400123d6
cmp qword [rsp + 0x278], 0
je 0x1400123cd
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x1400124d3
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 0x140012455
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 [0x1400197b0]
lea rcx, [rsp + 0x4f0]
call fcn.140001c64
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 0x140012486
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x30], eax
jmp 0x1400124a3
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400123d6
cmp qword [rsp + 0x278], 0
je 0x1400124bc
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x1400124cf
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, [0x14004b2e8]
call fcn.140015370
mov rax, rdi
mov rcx, qword [rsp + 0x738]
xor rcx, rsp
call fcn.140015470
add rsp, 0x740
pop rdi
ret
Function at 0x140012aac
Capabilities:
Compare security identifiers

Disassembly:
push rdi
sub rsp, 0x100
mov rdi, rsp
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140056008]
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 0x140012c9c
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 0x140012c91
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 0x140012c91
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 0x140012c78
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 0x140012c78
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 0x140012c78
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, [0x14004af90]
call fcn.140015370
mov eax, edi
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140015470
add rsp, 0x100
pop rdi
ret
Function at 0x140012de0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x40], 0
jne 0x140012e14
mov eax, dword [rsp + 0x20]
jmp 0x140012e9a
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 0x140012e96
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140012e8b
mov edx, 0x186a0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140012e78
lea rdx, str._Process_was_terminated_successfully.
lea rcx, [0x1400487f0]
call fcn.14001385c
mov dword [rsp + 0x20], 1
jmp 0x140012e8b
lea rdx, str._Failed_to_terminate_the_process.
lea rcx, str.KillProcess:
call fcn.14001385c
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 0x140014030
Capabilities:
Create process on windows
Impersonate user

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rdi, rsp
mov ecx, 0x5c
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.140013a3c
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 0x140014212
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 0x1400141f4
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 0x1400141d6
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 0x1400141b8
mov dword [rsp + 0x50], 1
jmp 0x1400141d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateProcessWithTokenW_failed_with
lea rcx, [0x14004da80]
call fcn.140013a3c
jmp 0x1400141f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.DuplicateTokenEx_failed_with
lea rcx, [0x14004db10]
call fcn.140013a3c
jmp 0x140014210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcessToken_failed_with
lea rcx, [0x14004dba0]
call fcn.140013a3c
jmp 0x14001422e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcess_failed_with
lea rcx, str.LaunchApplicationUsingDupToken::
call fcn.140013a3c
cmp qword [rsp + 0x128], 0
je 0x140014247
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x158], 0
je 0x140014260
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xf8], 0
je 0x140014279
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x100], 0
je 0x140014292
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x148], 0
je 0x1400142ab
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, [0x14004e170]
call fcn.140015370
mov eax, edi
add rsp, 0x170
pop rdi
ret
Function at 0x140014534
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rsp
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140014800
mov qword [rsp + 0x20], rax
mov ecx, 0x208
call fcn.1400154e8
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 main
mov dword [rsp + 0x34], 0
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140014d80
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 0x1400145d5
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400154e0
mov eax, dword [rsp + 0x34]
add rsp, 0x50
pop rdi
ret

Function at 0x1400145f4
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 rdi, rsp
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140014800
mov qword [rsp + 0x20], rax
mov ecx, 0x208
call fcn.1400154e8
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 main
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0x200
cmp dword [rsp + 0x70], 0
je 0x14001467a
mov dword [rsp + 0x38], 0x100
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140014d80
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 0x1400146b9
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400154e0
mov eax, dword [rsp + 0x34]
add rsp, 0x50
pop rdi
ret
Function at 0x1400149cc
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
mov rdi, rsp
mov ecx, 0x34
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.140014800
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.1400154e8
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 main
mov dword [rsp + 0x84], 0
mov dword [rsp + 0xa4], 4
mov dword [rsp + 0xb4], 0x20019
cmp dword [rsp + 0xf8], 0
je 0x140014a87
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.140014d80
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 0x140014b0e
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 0x140014b0e
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.1400154e0
mov eax, dword [rsp + 0x84]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140050070]
call fcn.140015370
mov eax, edi
add rsp, 0xd0
pop rdi
ret
Function at 0x140014b58
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
mov rdi, rsp
mov ecx, 0x30
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.140014800
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.1400154e8
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 main
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.1400154e8
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 main
mov eax, dword [rsp + 0xf8]
shl rax, 1
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x94], 0x20019
cmp dword [rsp + 0xf0], 0
je 0x140014c6e
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.140014d80
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 0x140014d26
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 0x140014d05
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 0x140014d13
mov qword [rsp + 0xe8], 0
jmp 0x140014d26
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.1400154e0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1400154e0
mov rcx, rsp
lea rdx, [0x1400501c0]
call fcn.140015370
add rsp, 0xc0
pop rdi
ret
Function at 0x140014e84
Capabilities:
Set 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, 0xb0
mov rdi, rsp
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov dword [rsp + 0x50], 0
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.140014800
mov qword [rsp + 0x58], rax
mov ecx, 0x208
call fcn.1400154e8
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov r8d, 0x208
xor edx, edx
mov rcx, qword [rsp + 0x60]
call main
mov dword [rsp + 0x88], 4
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0x90], 4
mov dword [rsp + 0x94], 0xf003f
cmp dword [rsp + 0xe0], 0
je 0x140014f52
mov eax, dword [rsp + 0x94]
bts eax, 8
mov dword [rsp + 0x94], eax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.140014d80
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x84], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x94]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
jne 0x140015047
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x8c]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.1400154e0
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, [0x14004ff40]
call fcn.140015370
mov eax, edi
add rsp, 0xb0
pop rdi
ret