joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012a2c
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.1400022c0
lea rcx, [0x14004b588]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0
je 0x140012b05
lea rdx, [0x14004b5a8]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
jne 0x140012b05
mov eax, dword [rsp + 0x30]
jmp 0x140012c89
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x140012b46
cmp qword [rsp + 0x278], 0
je 0x140012b3d
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140012c89
mov dword [rsp + 0x290], 0x238
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140012b8c
cmp qword [rsp + 0x278], 0
je 0x140012b83
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140012c89
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 0x140012c0b
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 [0x1400197c0]
lea rcx, [rsp + 0x4f0]
call fcn.1400022c0
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 0x140012c3c
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x30], eax
jmp 0x140012c59
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140012b8c
cmp qword [rsp + 0x278], 0
je 0x140012c72
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x140012c85
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, [0x14004e2a0]
call fcn.140015a64
mov rax, rdi
mov rcx, qword [rsp + 0x738]
xor rcx, rsp
call fcn.140015b70
add rsp, 0x740
pop rdi
ret
Function at 0x140013250
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 0x140013442
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 0x140013437
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 0x140013437
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 0x14001341e
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 0x14001341e
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 0x14001341e
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, [0x14004de40]
call fcn.140015a64
mov eax, edi
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140015b70
add rsp, 0x100
pop rdi
ret
Function at 0x140013588
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 0x1400135a9
mov eax, dword [rsp + 0x20]
jmp 0x14001362f
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 0x14001362b
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140013620
mov edx, 0x186a0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001360d
lea rdx, str._Process_was_terminated_successfully.
lea rcx, [0x14004b070]
call fcn.140013fc0
mov dword [rsp + 0x20], 1
jmp 0x140013620
lea rdx, str._Failed_to_terminate_the_process.
lea rcx, str.KillProcess:
call fcn.140013fc0
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 0x14001477c
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.1400141a4
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 0x140014960
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 0x140014942
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 0x140014924
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 0x140014906
mov dword [rsp + 0x50], 1
jmp 0x140014922
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateProcessWithTokenW_failed_with
lea rcx, [0x1400509e0]
call fcn.1400141a4
jmp 0x140014940
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.DuplicateTokenEx_failed_with
lea rcx, [0x140050a70]
call fcn.1400141a4
jmp 0x14001495e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcessToken_failed_with
lea rcx, [0x140050b00]
call fcn.1400141a4
jmp 0x14001497c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenProcess_failed_with
lea rcx, str.LaunchApplicationUsingDupToken::
call fcn.1400141a4
cmp qword [rsp + 0x128], 0
je 0x140014995
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x158], 0
je 0x1400149ae
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xf8], 0
je 0x1400149c7
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x100], 0
je 0x1400149e0
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x148], 0
je 0x1400149f9
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, [0x140051100]
call fcn.140015a64
mov eax, edi
add rsp, 0x170
pop rdi
ret
Function at 0x140014c70
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.140014f18
mov qword [rsp + 0x20], rax
mov ecx, 0x208
call fcn.140015bd8
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.14001549c
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 0x140014cfd
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140015bd0
mov eax, dword [rsp + 0x34]
add rsp, 0x50
pop rdi
ret

Function at 0x140014d1c
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.140014f18
mov qword [rsp + 0x20], rax
mov ecx, 0x208
call fcn.140015bd8
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 0x140014d8e
mov dword [rsp + 0x38], 0x100
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.14001549c
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 0x140014dcd
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140015bd0
mov eax, dword [rsp + 0x34]
add rsp, 0x50
pop rdi
ret
Function at 0x140014dec
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.140014f18
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.140015bd8
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.14001549c
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 0x140014ec8
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 0x140014ed7
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.140015bd0
mov eax, dword [rsp + 0x64]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140053120]
call fcn.140015a64
mov eax, edi
add rsp, 0x80
pop rdi
ret
Function at 0x1400150e8
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.140014f18
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.140015bd8
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 0x1400151a5
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.14001549c
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 0x14001522c
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 0x14001522c
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.140015bd0
mov eax, dword [rsp + 0x84]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140052f70]
call fcn.140015a64
mov eax, edi
add rsp, 0xd0
pop rdi
ret
Function at 0x140015274
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.140014f18
mov qword [rsp + 0x30], rax
mov ecx, 0x208
call fcn.140015bd8
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.140015bd8
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 0x14001538c
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.14001549c
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 0x140015444
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 0x140015423
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 0x140015431
mov qword [rsp + 0xe8], 0
jmp 0x140015444
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.140015bd0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140015bd0
mov rcx, rsp
lea rdx, [0x1400530c0]
call fcn.140015a64
add rsp, 0xc0
pop rdi
ret
Function at 0x14001558c
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
lea rdi, [rsp + 0x50]
mov ecx, 0x18
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.140014f18
mov qword [rsp + 0x58], rax
mov ecx, 0x208
call fcn.140015bd8
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 sub.api_ms_win_crt_string_l1_1_0.dll_memset
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 0x14001565c
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.14001549c
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 0x140015751
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.140015bd0
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140052e40]
call fcn.140015a64
mov eax, edi
add rsp, 0xb0
pop rdi
ret
Function at 0x14001578c
Capabilities:
Set 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, 0xb0
lea rdi, [rsp + 0x50]
mov ecx, 0x18
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.140014f18
mov qword [rsp + 0x58], rax
mov ecx, 0x208
call fcn.140015bd8
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 sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x88], 0x104
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x94], 0xf003f
cmp dword [rsp + 0xe0], 0
je 0x14001585c
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.14001549c
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x88], eax
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 0x140015969
mov eax, dword [rsp + 0x88]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [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.140015bd0
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140052fd0]
call fcn.140015a64
mov eax, edi
add rsp, 0xb0
pop rdi
ret

Function at 0x140016bb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016bfe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016bfe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016bfe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016bfe
cmp dword [rcx + 0x84], 0xe
jbe 0x140016bfe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140016c00
xor al, al
add rsp, 0x28
ret