joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bb2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rdi, rdx
mov r12d, r9d
mov rdx, rcx
mov r15, rcx
mov rcx, r8
mov r9d, 0x20019
mov rbx, r8
call fcn.14000bd38
mov esi, eax
test eax, eax
je 0x14000bbc5
call fcn.140007b40
cmp dword [rax], 5
jbe 0x14000bbbe
cmp qword [rbx + 0x18], 8
mov dword [rbp + 0x40], esi
jb 0x14000bb85
mov rbx, qword [rbx]
lea rcx, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov qword [rbp + 0x60], rbx
mov qword [rbp - 0x10], rcx
lea rdx, [0x140022f8f]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400020c4
mov eax, esi
jmp 0x14000bd13
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x14000bbd2
mov r8, qword [rdi]
mov r14, qword [rbp + 0x50]
mov r9d, r12d
mov rcx, qword [r15]
xor edx, edx
mov qword [rsp + 0x30], r14
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14000bc6d
call fcn.140007b40
cmp dword [rax], 5
jbe 0x14000bbbe
cmp qword [rbx + 0x18], 8
mov dword [rbp + 0x40], esi
jb 0x14000bc18
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov qword [rbp + 0x60], rbx
jb 0x14000bc26
mov rdi, qword [rdi]
lea rcx, str.Failed_to_get_registry_value_size._Return_default_value
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rdx, [0x140022fc5]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140001aa0
jmp 0x14000bbbe
mov eax, dword [r14]
mov rsi, qword [rbp + 0x58]
mov dword [rsi], eax
dec eax
cmp eax, 0x3ffffff
ja 0x14000bc86
xor eax, eax
jmp 0x14000bd13
call fcn.140007b40
cmp dword [rax], 4
jbe 0x14000bd0e
cmp qword [rbx + 0x18], 8
mov ecx, dword [r14]
mov dword [rbp + 0x48], ecx
mov ecx, dword [rsi]
mov dword [rbp + 0x68], ecx
mov dword [rbp + 0x40], 0x4000000
jb 0x14000bcac
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov qword [rbp + 0x60], rbx
jb 0x14000bcba
mov rdi, qword [rdi]
lea rcx, str.Registry_value_is_empty_or_bigger_than_max_length._Return_default_value
mov qword [rbp - 8], rdi
mov qword [rbp - 0x10], rcx
lea rdx, [0x140023006]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x68]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 8]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140001bc8
mov eax, 0xd
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000dbd8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14002aa00], eax
call fcn.14000e220
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14002aa00], 0
jne case.default.0x14000dc2e
mov ecx, 1
call fcn.14000e220
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
invalid

Function at 0x140010d58
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14002a400]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, r8
xor ebx, ebx
mov qword [r8], rbx
mov r14d, 0x104
mov r8, rcx
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140010bd8
lea r8, [0x14001ed08]
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140010ad4
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140010e0d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140010f01
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
lea edx, [r14 - 0x3b]
call fcn.140007f90
mov ebx, eax
jmp 0x140010f01
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebx
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.14000fe3c
mov edi, eax
test eax, eax
jns 0x140010e4a
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
mov r9d, eax
mov edx, 0xcf
call fcn.140008710
mov ebx, edi
jmp 0x140010f01
lea r8, [0x14001ed10]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140010ad4
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140010ea6
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
mov edx, 0xd5
call fcn.140007f90
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.14000a844
jmp 0x140010f01
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000fe3c
mov edi, eax
test eax, eax
jns 0x140010ee3
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
mov r9d, eax
mov edx, 0xd7
call fcn.140008710
lea rcx, [rsp + 0x28]
call fcn.14000a844
jmp 0x140010e43
lea rcx, [rsp + 0x28]
call fcn.14000a844
movsxd rdx, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x24]
shl rdx, 0x1f
or rcx, rdx
mov qword [rsi], rcx
lea rcx, [rsp + 0x30]
call fcn.14000a844
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400132f8
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14002a400]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x38], rcx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov rcx, rdx
jb 0x140013335
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor r14d, r14d
mov esi, eax
test eax, eax
jne 0x1400133c2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.140007b40
cmp dword [rax], 2
jbe 0x1400133ad
cmp qword [rdi + 0x18], 8
jb 0x140013371
mov rdi, qword [rdi]
lea rcx, str.Failed_to_expand_environment_strings_in_path
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x38], rcx
lea rdx, [0x140022b3f]
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x40], esi
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002d44
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
jmp 0x140013496
lea edx, [rax - 1]
lea rcx, [rbp - 0x28]
call fcn.14000ac44
cmp qword [rbp - 0x10], 8
lea rdx, [rbp - 0x28]
mov rcx, rdi
cmovae rdx, qword [rbp - 0x28]
cmp qword [rdi + 0x18], 8
jb 0x1400133e9
mov rcx, qword [rdi]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14001346c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.140007b40
cmp dword [rax], 2
jbe 0x14001345a
cmp qword [rdi + 0x18], 8
jb 0x14001341e
mov rdi, qword [rdi]
lea rcx, str.Failed_to_expand_environment_strings_in_path_after_increasing_buffer_size
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rcx
lea rdx, [0x140022b3f]
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x40], esi
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002d44
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
jmp 0x14001348d
movups xmm0, xmmword [rbp - 0x28]
mov word [rbp - 0x28], r14w
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx], xmm0
movdqa xmm0, xmmword [0x14001d7d0]
movdqu xmmword [rbp - 0x18], xmm0
movups xmmword [rbx + 0x10], xmm1
lea rcx, [rbp - 0x28]
call fcn.1400074e4
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140013608
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov rax, qword [0x14002a400]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov r8d, 0x104
lea rdx, [0x14002b390]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1400136d4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140007b40
cmp dword [rax], 2
jbe 0x1400136c0
mov dword [rsp + 0x48], ebx
lea rcx, str.GetModuleFileName_failed
mov qword [rsp + 0x40], rcx
test ebx, ebx
jle 0x14001368f
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140022bc7]
mov rcx, rax
call fcn.140002c80
lea rdx, [0x14001d7e0]
mov rcx, rdi
call fcn.140006d00
jmp 0x1400137f2
movdqa xmm0, xmmword [0x14001d7d0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], si
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], si
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], si
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], si
mov r8d, eax
lea rdx, [0x14002b390]
lea rcx, [rbp - 0x40]
call fcn.14000ad5c
nop
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x40]
lea r8, [rbp - 0x20]
lea rdx, [rbp]
mov rcx, rax
call fcn.1400140a8
test al, al
sete bl
lea rcx, [rbp - 0x40]
call fcn.1400074e4
test bl, bl
je 0x140013754
lea rdx, [0x14001d7e0]
mov rcx, rdi
call fcn.140006d00
jmp 0x1400137cb
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], rsi
mov ecx, 7
mov qword [rsp + 0x70], rcx
mov word [rsp + 0x58], si
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rcx
mov word [rbp - 0x40], si
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.140007960
mov rbx, rax
lea rdx, [rbp]
lea rcx, [rbp - 0x60]
call fcn.140007960
nop
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x40]
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140013ddc
nop
lea rcx, [rbp + 0x20]
call fcn.1400074e4
nop
lea rcx, [rbp + 0x40]
call fcn.1400074e4
nop
lea rcx, [rbp - 0x20]
call fcn.1400074e4
nop
lea rcx, [rbp]
call fcn.1400074e4
mov rax, rdi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140013a28
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14002a400]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movdqa xmm0, xmmword [0x14001d7d0]
lea rdx, [rbp - 0x39]
mov rbx, rcx
xor edi, edi
xor ecx, ecx
mov word [rbp - 0x11], di
movdqu xmmword [rbp - 1], xmm0
mov dword [rbp - 0x39], edi
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
nop dword [rax + rax]
mov edx, dword [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.14000bab4
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x39]
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140013ae9
mov r8d, dword [rbp - 0x39]
lea rcx, [rbp + 0x2f]
mov rdx, qword [rbp - 0x29]
dec r8d
call fcn.14000ad5c
mov rdx, rax
lea r8, [0x14001d7c0]
lea rcx, [rbp + 0xf]
call fcn.1400077fc
lea r8, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rdx, rax
mov rcx, rbx
call fcn.1400077fc
lea rcx, [rbp + 0xf]
call fcn.1400074e4
lea rcx, [rbp + 0x2f]
call fcn.1400074e4
jmp 0x140013b3f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140007b40
cmp dword [rax], 2
jbe 0x140013b30
lea rcx, str.GetAllUsersProfileDirectory_failed
mov dword [rbp - 0x35], edi
mov qword [rbp - 0x31], rcx
lea rdx, [0x140022b74]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x35]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002bdc
lea rdx, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rcx, rbx
call fcn.140006d00
lea rcx, [rbp - 0x29]
call fcn.14000c7f0
lea rcx, [rbp - 0x11]
call fcn.1400074e4
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400152c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
sub r9, r8
mov rax, rdx
sub rax, rcx
mov r15, r8
xor rax, r9
mov rbp, rdx
mov r14, rcx
test rax, 0xfffffffffffffffe
jne 0x14001533c
mov rbx, qword [rsp + 0x60]
sub r15, rcx
cmp r14, rbp
je 0x140015340
movzx edx, word [r15 + r14]
mov rcx, qword [rbx + 8]
movzx esi, word [r14]
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
movzx edx, si
movzx edi, ax
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
cmp ax, di
jne 0x14001533c
add r14, 2
jmp 0x1400152fd
xor al, al
jmp 0x140015342
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140017eb0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x38], 0
mov rdi, rdx
mov rbx, rcx
lea rdx, [rbp + 0x38]
mov rcx, rdi
call fcn.1400180fc
mov esi, eax
test eax, eax
je 0x140017f3f
call fcn.140007b40
cmp dword [rax], 3
jbe 0x140017f2c
cmp qword [rdi + 0x18], 8
jb 0x140017ef0
mov rdi, qword [rdi]
lea rcx, str.Could_not_open_the_registry_key
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rcx
lea rdx, [0x140022d77]
lea rcx, [rbp - 0x30]
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002f5c
test esi, esi
jle 0x140017fba
movzx esi, si
or esi, 0x80070000
jmp 0x140017fba
cmp qword [rbx + 0x18], 8
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov rdx, rbx
jb 0x140017f54
mov rdx, qword [rbx]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
nop dword [rax + rax]
test al, al
jne 0x140017fca
call fcn.140007b40
cmp dword [rax], 3
jbe 0x140017fac
cmp qword [rbx + 0x18], 8
jb 0x140017f7c
mov rbx, qword [rbx]
lea rcx, str.Could_not_create_a_UNICODE_STRING_to_hold_valueName
mov qword [rbp + 0x30], rbx
mov qword [rbp - 0x28], rcx
lea rdx, [0x140022e0b]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002264
lea rcx, [rbp - 0x30]
call fcn.140017c2c
mov esi, 0x80070057
lea rcx, [rbp + 0x38]
call fcn.14000c89c
mov eax, esi
jmp 0x1400180e4
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140018075
cmp eax, 0xc0000034
je 0x140018075
call fcn.140007b40
cmp dword [rax], 3
jbe 0x14001805a
cmp qword [rdi + 0x18], 8
jb 0x140018007
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
mov qword [rbp - 0x28], rdi
jb 0x140018015
mov rbx, qword [rbx]
lea rcx, str.Failed_to_delete_registry_value
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rcx
lea rdx, [0x140022e3c]
lea rcx, [rbp - 0x28]
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400012d8
lea rcx, [rbp - 0x30]
call fcn.140017c2c
lea rcx, [rbp + 0x38]
call fcn.14000c89c
bts esi, 0x1c
jmp 0x140017fc3
call fcn.140007b40
cmp dword [rax], 4
jbe 0x1400180d0
cmp qword [rdi + 0x18], 8
jb 0x140018089
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
mov qword [rbp + 0x30], rdi
jb 0x140018097
mov rbx, qword [rbx]
lea rcx, str.Delete_registry_value
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rcx
lea rdx, [0x140022e7d]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400028cc
lea rcx, [rbp - 0x30]
call fcn.140017c2c
lea rcx, [rbp + 0x38]
call fcn.14000c89c
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400181d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x30], 0
mov rdi, rdx
mov rsi, rcx
movzx r15d, r9b
mov rdx, r8
lea rcx, [rbp - 0x30]
mov r14, r8
call fcn.140017c50
mov ebx, eax
test eax, eax
je 0x140018220
jle 0x140018373
movzx ebx, ax
jmp 0x1400182f7
cmp qword [rdi + 0x18], 8
lea r9d, [r15*2 + 1]
mov eax, dword [rdi + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rdi
jb 0x14001823f
mov rax, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x14001824c
mov rdx, qword [rsi]
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400182ff
call fcn.140007b40
cmp dword [rax], 3
jbe 0x1400182f0
cmp qword [rdi + 0x18], 8
jb 0x140018286
mov rdi, qword [rdi]
cmp qword [r14 + 0x18], 8
mov qword [rbp - 0x28], rdi
jb 0x140018294
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
mov qword [rbp - 0x20], r14
jb 0x1400182a2
mov rsi, qword [rsi]
lea rcx, str.Failed_to_set_registry_key
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rdx, [0x140022f06]
lea rcx, [rbp - 0x28]
mov dword [rbp + 0x40], ebx
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400017f0
test ebx, ebx
jle 0x140018373
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140018373
call fcn.140007b40
cmp dword [rax], 4
jbe 0x140018371
cmp qword [rdi + 0x18], 8
jb 0x140018313
mov rdi, qword [rdi]
cmp qword [r14 + 0x18], 8
mov qword [rbp - 0x10], rdi
jb 0x140018321
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
mov qword [rbp - 0x18], r14
jb 0x14001832f
mov rsi, qword [rsi]
lea rcx, str.Write_registry_value
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x28], rcx
lea rdx, [0x140022f4e]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140001950
xor ebx, ebx
lea rcx, [rbp - 0x30]
call fcn.14000c89c
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400183a4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
and dword [rbp - 0x30], 0
mov rdi, rcx
and qword [rbp - 0x28], 0
lea rcx, [rbp - 0x28]
mov rdx, r8
mov rsi, r8
call fcn.140017c50
mov ebx, eax
test eax, eax
je 0x1400183ee
jle 0x140018520
movzx ebx, ax
jmp 0x1400184ac
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400183fb
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400184b4
call fcn.140007b40
cmp dword [rax], 3
jbe 0x1400184a5
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp - 0x30]
mov dword [rbp + 0x38], ecx
jb 0x140018449
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x20], rsi
jb 0x140018457
mov rdi, qword [rdi]
lea rcx, str.Failed_to_set_registry_key
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rcx
lea rdx, [0x14002309e]
lea rcx, [rbp + 0x38]
mov dword [rbp + 0x28], ebx
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400016b8
test ebx, ebx
jle 0x140018520
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140018520
call fcn.140007b40
cmp dword [rax], 4
jbe 0x14001851e
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp - 0x30]
mov dword [rbp + 0x38], ecx
jb 0x1400184ce
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x10], rsi
jb 0x1400184dc
mov rdi, qword [rdi]
lea rcx, str.Write_registry_value
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rcx
lea rdx, [0x14002305d]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140001aa0
xor ebx, ebx
lea rcx, [rbp - 0x28]
call fcn.14000c89c
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret