joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d11c
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.14000d328
mov esi, eax
test eax, eax
je 0x14000d1b5
call fcn.140008bdc
cmp dword [rax], 5
jbe 0x14000d1ae
cmp qword [rbx + 0x18], 8
mov dword [rbp + 0x40], esi
jb 0x14000d175
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, [0x14002ec13]
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.1400022ec
mov eax, esi
jmp 0x14000d303
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x14000d1c2
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 0x14000d25d
call fcn.140008bdc
cmp dword [rax], 5
jbe 0x14000d1ae
cmp qword [rbx + 0x18], 8
mov dword [rbp + 0x40], esi
jb 0x14000d208
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov qword [rbp + 0x60], rbx
jb 0x14000d216
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, [0x14002eb2c]
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.140001cc8
jmp 0x14000d1ae
mov eax, dword [r14]
mov rsi, qword [rbp + 0x58]
mov dword [rsi], eax
dec eax
cmp eax, 0x3ffffff
ja 0x14000d276
xor eax, eax
jmp 0x14000d303
call fcn.140008bdc
cmp dword [rax], 4
jbe 0x14000d2fe
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 0x14000d29c
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov qword [rbp + 0x60], rbx
jb 0x14000d2aa
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, [0x14002eb6d]
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.140001df0
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 0x14000ec74
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 [0x140037db0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movdqa xmm0, xmmword [0x140027c20]
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.14000d0a4
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x39]
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14000ed35
mov r8d, dword [rbp - 0x39]
lea rcx, [rbp + 0x2f]
mov rdx, qword [rbp - 0x29]
dec r8d
call fcn.14000c34c
mov rdx, rax
lea r8, [0x140027c10]
lea rcx, [rbp + 0xf]
call fcn.1400084ac
lea r8, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rdx, rax
mov rcx, rbx
call fcn.1400084ac
lea rcx, [rbp + 0xf]
call fcn.140007fe4
lea rcx, [rbp + 0x2f]
call fcn.140007fe4
jmp 0x14000ed8b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140008bdc
cmp dword [rax], 2
jbe 0x14000ed7c
lea rcx, str.GetAllUsersProfileDirectory_failed
mov dword [rbp - 0x35], edi
mov qword [rbp - 0x31], rcx
lea rdx, [0x14002e65c]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x35]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002ecc
lea rdx, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rcx, rbx
call fcn.140007470
lea rcx, [rbp - 0x29]
call fcn.14000de30
lea rcx, [rbp - 0x11]
call fcn.140007fe4
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000f830
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000f858
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 [0x140038440], eax
call fcn.14000fea0
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 [0x140038440], 0
jne case.default.0x14000f8ae
mov ecx, 1
call fcn.14000fea0
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]
lodsd eax, dword [rsi]
pop rbp
invalid
Function at 0x140012a88
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 [0x140037db0]
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.140012874
lea r8, [0x140029218]
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140012770
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 0x140012b3d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140012c31
mov rcx, qword [rbp + 0x178]
lea r8, [0x1400291b4]
lea edx, [r14 - 0x3b]
call fcn.14000b9d4
mov ebx, eax
jmp 0x140012c31
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebx
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.140011a9c
mov edi, eax
test eax, eax
jns 0x140012b7a
mov rcx, qword [rbp + 0x178]
lea r8, [0x1400291b4]
mov r9d, eax
mov edx, 0xcf
call fcn.14000b8c8
mov ebx, edi
jmp 0x140012c31
lea r8, [0x140029220]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140012770
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 0x140012bd6
mov rcx, qword [rbp + 0x178]
lea r8, [0x1400291b4]
mov edx, 0xd5
call fcn.14000b9d4
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.14000c124
jmp 0x140012c31
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140011a9c
mov edi, eax
test eax, eax
jns 0x140012c13
mov rcx, qword [rbp + 0x178]
lea r8, [0x1400291b4]
mov r9d, eax
mov edx, 0xd7
call fcn.14000b8c8
lea rcx, [rsp + 0x28]
call fcn.14000c124
jmp 0x140012b73
lea rcx, [rsp + 0x28]
call fcn.14000c124
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.14000c124
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000f830
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 0x140015e98
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x18], 0
lea rax, str.Sense
and qword [r11 - 0x10], 0
lea rcx, [r11 - 0x28]
mov qword [r11 - 0x28], rax
lea rax, [0x1400132b0]
mov qword [r11 - 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
lea rdx, str.Failed_to_start_service_control_dispatcher
mov qword [rsp + 0x20], rdx
lea r8, str.amcorewcd_source_service_src_service.cpp
mov edx, 0x8a
mov r9d, eax
call fcn.14000910c
cmp qword [0x140038d88], 0
jne 0x140015f10
cmp dword [0x140037ddc], 1
jne 0x140015f9a
jmp 0x140015f94
cmp dword [0x140037ddc], 1
je 0x140015f94
call fcn.140008bdc
cmp dword [rax], 2
jbe 0x140015f74
mov ecx, dword [0x140037ddc]
lea rdx, [0x14002e189]
mov dword [rsp + 0x70], ecx
lea rcx, str.Service_stopped_with_unexpected_service_status._Terminating_process
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rsp + 0x78], 0x507
call fcn.1400026b0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
mov edx, 2
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
add rsp, 0x68
ret
mov ecx, 0x8007000e
call fcn.14000f2dc
mov rcx, qword [rsp + 0x68]
lea r8, str.amcorewcd_source_service_src_service.cpp
mov r9d, eax
mov edx, 0x8f
lea rax, str.Service_control_dispatcher_failed_without_saying_so...
mov qword [rsp + 0x20], rax
call fcn.140016ddc
int3

Function at 0x140019c50
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 0x140019ccc
mov rbx, qword [rsp + 0x60]
sub r15, rcx
cmp r14, rbp
je 0x140019cd0
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 0x140019ccc
add r14, 2
jmp 0x140019c8d
xor al, al
jmp 0x140019cd2
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 0x14001d578
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 [0x140037db0]
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 0x14001d5b5
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 0x14001d642
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.140008bdc
cmp dword [rax], 2
jbe 0x14001d62d
cmp qword [rdi + 0x18], 8
jb 0x14001d5f1
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, [0x14002e627]
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.140003034
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
jmp 0x14001d716
lea edx, [rax - 1]
lea rcx, [rbp - 0x28]
call fcn.14000c234
cmp qword [rbp - 0x10], 8
lea rdx, [rbp - 0x28]
mov rcx, rdi
cmovae rdx, qword [rbp - 0x28]
cmp qword [rdi + 0x18], 8
jb 0x14001d669
mov rcx, qword [rdi]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d6ec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.140008bdc
cmp dword [rax], 2
jbe 0x14001d6da
cmp qword [rdi + 0x18], 8
jb 0x14001d69e
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, [0x14002e627]
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.140003034
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
jmp 0x14001d70d
movups xmm0, xmmword [rbp - 0x28]
mov word [rbp - 0x28], r14w
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx], xmm0
movdqa xmm0, xmmword [0x140027c20]
movdqu xmmword [rbp - 0x18], xmm0
movups xmmword [rbx + 0x10], xmm1
lea rcx, [rbp - 0x28]
call fcn.140007fe4
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000f830
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 0x14001d888
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 [0x140037db0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov r8d, 0x104
lea rdx, [0x140038f20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14001d954
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140008bdc
cmp dword [rax], 2
jbe 0x14001d940
mov dword [rsp + 0x48], ebx
lea rcx, str.GetModuleFileName_failed
mov qword [rsp + 0x40], rcx
test ebx, ebx
jle 0x14001d90f
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, [0x14002e68b]
mov rcx, rax
call fcn.140002f70
lea rdx, [0x140027c30]
mov rcx, rdi
call fcn.140007470
jmp 0x14001da72
movdqa xmm0, xmmword [0x140027c20]
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, [0x140038f20]
lea rcx, [rbp - 0x40]
call fcn.14000c34c
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.14001e338
test al, al
sete bl
lea rcx, [rbp - 0x40]
call fcn.140007fe4
test bl, bl
je 0x14001d9d4
lea rdx, [0x140027c30]
mov rcx, rdi
call fcn.140007470
jmp 0x14001da4b
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.140008740
mov rbx, rax
lea rdx, [rbp]
lea rcx, [rbp - 0x60]
call fcn.140008740
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.14001e06c
nop
lea rcx, [rbp + 0x20]
call fcn.140007fe4
nop
lea rcx, [rbp + 0x40]
call fcn.140007fe4
nop
lea rcx, [rbp - 0x20]
call fcn.140007fe4
nop
lea rcx, [rbp]
call fcn.140007fe4
mov rax, rdi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000f830
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 0x14001ebcc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001ebe5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
test al, 3
je 0x14001ec28
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001ec02
mov rcx, qword [rbx]
and eax, 0xfffffffc
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ec28
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14001eccb
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001ec35
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001ec65
test al, 0x10
je 0x14001ec65
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001ec57
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
jmp 0x14001ec7e
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001ec72
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ecc9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
lea edx, [rax - 2]
cmp edx, 1
jbe 0x14001ecc9
cmp qword [rbx + 0x18], 8
jb 0x14001eca2
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ecc9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f7a0
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.14001f9ec
mov esi, eax
test eax, eax
je 0x14001f82f
call fcn.140008bdc
cmp dword [rax], 3
jbe 0x14001f81c
cmp qword [rdi + 0x18], 8
jb 0x14001f7e0
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, [0x14002e963]
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.14000324c
test esi, esi
jle 0x14001f8aa
movzx esi, si
or esi, 0x80070000
jmp 0x14001f8aa
cmp qword [rbx + 0x18], 8
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov rdx, rbx
jb 0x14001f844
mov rdx, qword [rbx]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
nop dword [rax + rax]
test al, al
jne 0x14001f8ba
call fcn.140008bdc
cmp dword [rax], 3
jbe 0x14001f89c
cmp qword [rbx + 0x18], 8
jb 0x14001f86c
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, [0x14002ea31]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000248c
lea rcx, [rbp - 0x30]
call fcn.14001f51c
mov esi, 0x80070057
lea rcx, [rbp + 0x38]
call fcn.14000dedc
mov eax, esi
jmp 0x14001f9d4
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 0x14001f965
cmp eax, 0xc0000034
je 0x14001f965
call fcn.140008bdc
cmp dword [rax], 3
jbe 0x14001f94a
cmp qword [rdi + 0x18], 8
jb 0x14001f8f7
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
mov qword [rbp - 0x28], rdi
jb 0x14001f905
mov rbx, qword [rbx]
lea rcx, str.Failed_to_delete_registry_value
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rcx
lea rdx, [0x14002ea62]
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.140001400
lea rcx, [rbp - 0x30]
call fcn.14001f51c
lea rcx, [rbp + 0x38]
call fcn.14000dedc
bts esi, 0x1c
jmp 0x14001f8b3
call fcn.140008bdc
cmp dword [rax], 4
jbe 0x14001f9c0
cmp qword [rdi + 0x18], 8
jb 0x14001f979
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
mov qword [rbp + 0x30], rdi
jb 0x14001f987
mov rbx, qword [rbx]
lea rcx, str.Delete_registry_value
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rcx
lea rdx, [0x14002e9f7]
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.140002bbc
lea rcx, [rbp - 0x30]
call fcn.14001f51c
lea rcx, [rbp + 0x38]
call fcn.14000dedc
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001fac0
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.14001f540
mov ebx, eax
test eax, eax
je 0x14001fb10
jle 0x14001fc63
movzx ebx, ax
jmp 0x14001fbe7
cmp qword [rdi + 0x18], 8
lea r9d, [r15*2 + 1]
mov eax, dword [rdi + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rdi
jb 0x14001fb2f
mov rax, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x14001fb3c
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 0x14001fbef
call fcn.140008bdc
cmp dword [rax], 3
jbe 0x14001fbe0
cmp qword [rdi + 0x18], 8
jb 0x14001fb76
mov rdi, qword [rdi]
cmp qword [r14 + 0x18], 8
mov qword [rbp - 0x28], rdi
jb 0x14001fb84
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
mov qword [rbp - 0x20], r14
jb 0x14001fb92
mov rsi, qword [rsi]
lea rcx, str.Failed_to_set_registry_key
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rdx, [0x14002eaa3]
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.140001a18
test ebx, ebx
jle 0x14001fc63
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14001fc63
call fcn.140008bdc
cmp dword [rax], 4
jbe 0x14001fc61
cmp qword [rdi + 0x18], 8
jb 0x14001fc03
mov rdi, qword [rdi]
cmp qword [r14 + 0x18], 8
mov qword [rbp - 0x10], rdi
jb 0x14001fc11
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
mov qword [rbp - 0x18], r14
jb 0x14001fc1f
mov rsi, qword [rsi]
lea rcx, str.Write_registry_value
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x28], rcx
lea rdx, [0x14002eaeb]
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.140001b78
xor ebx, ebx
lea rcx, [rbp - 0x30]
call fcn.14000dedc
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