joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fd590
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140142010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400fd6c7
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.140101330
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x1400fd6cb
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1400fd710
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b6130
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140102a50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140102a92
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140102ad9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140102b32
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140102af0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140102b73
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401153fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401153fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140102b40
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400043b0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
mov eax, 0x2058
call fcn.14002e9e0
sub rsp, rax
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x2040], rax
cmp r8d, dword [0x140072af8]
mov rsi, r9
mov ebp, r8d
mov r12d, edx
mov rdi, rcx
jg 0x1400044bd
mov edx, 0x5c
mov qword [rsp + 0x2050], rbx
call fcn.140024518
mov rbx, rax
test rax, rax
je 0x14000440e
add rbx, 2
jmp 0x140004411
mov rbx, rdi
mov r8, qword [rsp + 0x20a0]
lea r9, [rsp + 0x20a8]
lea rcx, [rsp + 0x40]
mov edx, 0x800
call fcn.140024500
lea r8, [0x140073010]
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x1040]
test rsi, rsi
je 0x14000447d
cmp qword [0x140073028], 8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
cmovae r8, qword [0x140073010]
lea rdx, [0x14005bc50]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
call fcn.1400242a4
jmp 0x1400044a7
cmp qword [0x140073028], 8
mov qword [rsp + 0x30], rax
lea rdx, [0x14005bca0]
cmovae r8, qword [0x140073010]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
call fcn.1400242a4
lea rcx, [rsp + 0x1040]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x2050]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140023ca0
add rsp, 0x2058
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400050c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400050f3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005136
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140005131
cmp rbx, r11
jae 0x140005136
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140005120
cmp rbx, r11
jb 0x14000513a
xor eax, eax
jmp 0x140005146
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400063f0
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x4a0
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbp, rcx
mov r12, rdx
lea rcx, [rsp + 0x72]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bx
call fcn.140026b30
lea rdx, [rsp + 0x70]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400065b7
cmp word [rsp + 0x70], bx
je 0x1400065b7
lea rcx, [rsp + 0x284]
xor edx, edx
mov r8d, 0x204
mov qword [rsp + 0x4d0], rsi
mov dword [rsp + 0x280], 0x22
mov qword [rsp + 0x4d8], rdi
call fcn.140026b30
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x280]
lea r8, [rsp + 0x70]
repne scasw ax, word [rdi]
xor edx, edx
nop dword [rax + rax]
movzx eax, word [r8 + rdx]
add rdx, 2
mov word [rdi + rdx - 4], ax
test ax, ax
jne 0x1400064a0
xor eax, eax
or rcx, 0xffffffffffffffff
xor edx, edx
lea rdi, [rsp + 0x280]
lea r8d, [rdx + 3]
repne scasw ax, word [rdi]
mov eax, dword [0x14005ca8c]
xor ecx, ecx
mov dword [rdi - 2], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenSCManager_failed.
mov r8d, eax
mov rcx, rsi
call fcn.1400056f0
test rsi, rsi
je 0x140006589
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x280]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 4
mov r8, r12
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateService_failed.
mov r8d, eax
mov rcx, rdi
call fcn.1400056f0
test rdi, rdi
je 0x140006580
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x4d0]
mov rdi, qword [rsp + 0x4d8]
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140023ca0
add rsp, 0x4a0
pop r12
pop rbp
pop rbx
ret
mov eax, ebx
jmp 0x14000659b
Function at 0x1400065c0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x440
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbp, rcx
mov r12d, 1
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov r8d, r12d
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13, [0x14005bd4c]
test rdi, rdi
jne 0x14000665d
lea r8, str.OpenSCManager_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x30]
mov r9d, eax
call fcn.140006a80
lea r11, [rsp + 0x30]
lea edx, [rbx + 0x31]
mov qword [rsp + 0x28], r11
lea rcx, str.s:p4clientconsumermainrel2consumerplatform_vista_sharedGenericService.h
xor r9d, r9d
mov r8d, r12d
mov qword [rsp + 0x20], r13
call fcn.1400043b0
jmp 0x140006672
mov r8d, 0x10
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
jne 0x1400066be
lea r8, str.OpenService_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x30]
mov r9d, eax
call fcn.140006a80
lea r11, [rsp + 0x30]
lea edx, [rsi + 0x31]
mov qword [rsp + 0x28], r11
lea rcx, str.s:p4clientconsumermainrel2consumerplatform_vista_sharedGenericService.h
xor r9d, r9d
mov r8d, r12d
mov qword [rsp + 0x20], r13
call fcn.1400043b0
jmp 0x1400066db
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rsi
test eax, eax
cmovne ebx, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400066e9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140023ca0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140006720
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x450
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
mov r12, rdx
mov rbp, rcx
lea r8d, [rdi + 1]
xor edx, edx
xor ecx, ecx
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13, [0x14005bd4c]
test rsi, rsi
jne 0x1400067b4
lea r8, str.OpenSCManager_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x40]
mov r9d, eax
call fcn.140006a80
lea r11, [rsp + 0x40]
lea edx, [rdi + 0x31]
mov qword [rsp + 0x28], r11
lea r8d, [rdi + 1]
lea rcx, str.s:p4clientconsumermainrel2consumerplatform_vista_sharedGenericService.h
xor r9d, r9d
mov qword [rsp + 0x20], r13
call fcn.1400043b0
jmp 0x1400067c9
mov r8d, 2
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
jne 0x140006814
lea r8, str.OpenService_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x40]
mov r9d, eax
call fcn.140006a80
lea r11, [rsp + 0x40]
lea edx, [rbx + 0x31]
mov qword [rsp + 0x28], r11
lea r8d, [rbx + 1]
lea rcx, str.s:p4clientconsumermainrel2consumerplatform_vista_sharedGenericService.h
xor r9d, r9d
mov qword [rsp + 0x20], r13
call fcn.1400043b0
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x30], r12
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x140006865
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rcx, str...SharedGenericService.cpp
mov dword [rsp + 0x28], eax
lea rax, str.Service_description_has_been_updated.
lea r8d, [r9 + 2]
mov edx, 0x1b0
mov qword [rsp + 0x20], rax
call fcn.1400043b0
mov edi, 1
jmp 0x140006893
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rcx, str...SharedGenericService.cpp
mov dword [rsp + 0x28], eax
lea rax, str.ChangeServiceConfig2_failed.
lea r8d, [r9 + 2]
mov edx, 0x1b5
mov qword [rsp + 0x20], rax
call fcn.1400043b0
test rbx, rbx
je 0x1400068a1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x1400068af
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140023ca0
mov rbx, qword [rsp + 0x490]
add rsp, 0x450
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x430
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x420], rax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14005cbe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006b4c
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x14005cbd0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x140072af8]
mov eax, dword [rsp + 0x30]
test eax, eax
cmovne ecx, eax
mov dword [0x140072af8], ecx
lea rcx, [rsp + 0x50]
call fcn.140007170
lea rcx, [rsp + 0x50]
call fcn.140005ae0
lea r11, vtable.CWavesSysSvcService.0
mov qword [rsp + 0x50], r11
lea rcx, [rsp + 0x3c0]
call fcn.140003470
nop
lea rcx, [rsp + 0x120]
call fcn.140004510
nop
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140006baf
call fcn.140023c7c
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rbx
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140006bdc
call fcn.140023c7c
nop
jmp 0x140006bdc
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140023ca0
add rsp, 0x430
pop rbx
ret
Function at 0x140008300
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
mov eax, 0x1058
call fcn.14002e9e0
sub rsp, rax
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
cmp r8d, dword [0x140072af8]
mov rsi, r9
mov ebp, r8d
mov r12d, edx
mov rdi, rcx
jg 0x14000840c
mov edx, 0x5c
mov qword [rsp + 0x1050], rbx
call fcn.1400256d0
mov rbx, rax
test rax, rax
je 0x14000835d
inc rbx
jmp 0x140008360
mov rbx, rdi
mov r8, qword [rsp + 0x10a0]
lea r9, [rsp + 0x10a8]
lea rcx, [rsp + 0x40]
mov edx, 0x800
call fcn.140024ad0
lea r8, [0x140073038]
lea rax, [rsp + 0x40]
mov r9, rbx
lea rcx, [rsp + 0x840]
test rsi, rsi
je 0x1400083cc
cmp qword [0x140073050], 0x10
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
cmovae r8, qword [0x140073038]
lea rdx, str._s__s__d____d_:_ASSERT___s_____s__n
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
call fcn.140025438
jmp 0x1400083f6
cmp qword [0x140073050], 0x10
mov qword [rsp + 0x30], rax
lea rdx, str._s__s__d____d_:_trace__s_n
cmovae r8, qword [0x140073038]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
call fcn.140025438
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [rsp + 0x1050]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140023ca0
add rsp, 0x1058
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a1f0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, r8
mov rsi, rdx
xor dil, dil
xor r12d, r12d
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp qword [rsp + 0x50], r12
je 0x14000a38e
lea rax, [rbp - 0x68]
mov qword [rbp - 0x70], rax
test rbx, rbx
jne 0x14000a288
mov edx, r12d
mov qword [rbp - 0x70], rdx
jmp 0x14000a2f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [rax + 1]
lea r8, [rbp - 0x68]
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.140008250
movsxd rdx, edi
mov r9, rdx
mov r8, rbx
mov rcx, qword [rbp - 0x70]
call fcn.1400246c0
test eax, eax
je 0x14000a2ee
cmp eax, 0xc
je 0x14000a2e3
cmp eax, 0x16
je 0x14000a2d8
cmp eax, 0x22
je 0x14000a2d8
cmp eax, 0x50
je 0x14000a2ee
mov ecx, 0x80004005
call fcn.1400050a0
int3
mov ecx, 0x80070057
call fcn.1400050a0
int3
mov ecx, 0x8007000e
call fcn.1400050a0
int3
mov rdx, qword [rbp - 0x70]
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.140002720
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x14000a333
call fcn.140024614
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete dil
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
cmp qword [rbp - 0x80], 0x10
jb 0x14000a38e
mov rcx, qword [rsp + 0x68]
call fcn.140023c7c
movzx eax, dil
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140023ca0
add rsp, 0x130
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000aa70
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x14000ab17
lea rax, [rsp + 0x58]
mov rdx, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0xffffffff
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000ab17
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
lea rdx, str.1da5d803_d492_4edd_8c23_e0c0ffee7f0e_0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
mov rbx, qword [rsp + 0x30]
je 0x14000ab17
cmp dword [rsp + 0x40], 3
sete al
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret
Function at 0x140011680
Capabilities:
Delete registry key
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov esi, r8d
mov ebp, edx
mov rdi, rcx
call fcn.140010350
test ebp, ebp
jns 0x1400116af
mov ebp, dword [rdi + 0xda8]
test esi, esi
jns 0x1400116b9
mov esi, dword [rdi + 0xdac]
mov rcx, rdi
call fcn.140013ce0
xor r9d, r9d
mov r8d, esi
mov edx, ebp
lea rcx, [rdi + 0xcb8]
call fcn.14001c2a0
mov r13, rax
xor r9d, r9d
mov r8d, esi
mov edx, ebp
mov rcx, rdi
call fcn.140013b20
mov r12, rax
test r13, r13
je 0x140011864
test rax, rax
je 0x140011864
xor edx, edx
mov rcx, qword [rax + 8]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
movzx ecx, word [r13 + 0xb0]
and ecx, 1
test cl, cl
je 0x1400117f0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x98], rax
mov r8d, ebp
lea rdx, str.SoundModeOnOutput_d
lea rcx, [rsp + 0x98]
call fcn.140016a40
mov dword [rsp + 0x88], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rbx, qword [rsp + 0x98]
mov rdx, rbx
mov rcx, qword [rdi + 0xc18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebp, dword [rdi + 0xda8]
jne 0x1400117d5
mov dword [rdi + 0xdac], esi
mov dword [rsp + 0x90], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ActiveSoundMode
mov rcx, qword [rdi + 0xc18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400117f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov r8d, esi
mov edx, ebp
lea rcx, [rdi + 0xcb8]
call fcn.14001c330
test eax, eax
je 0x14001183c
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebp, dword [rdi + 0xda8]
jne 0x140011860
cmp esi, dword [rdi + 0xdac]
jne 0x140011860
mov r9d, 1
mov r8, r12
mov rdx, r13
mov rcx, rdi
call fcn.1400140f0
mov al, 1
jmp 0x140011866
xor al, al
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012b00
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rsi, rcx
mov r8d, edx
lea rdx, str.Property_u
lea rcx, [rsp + 0x30]
mov edi, r9d
call fcn.140016d90
mov rcx, qword [rsi + 0xc18]
lea rdx, [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140023ca0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x140012b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400710e0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [rsp + 0xc0]
mov rbx, r8
mov esi, edx
mov r8d, edx
mov rbp, rcx
lea rdx, str.Property_u
lea rcx, [rsp + 0x38]
call fcn.140016d90
mov rcx, qword [rbp + 0xc18]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r11d, dword [rsp + 0x30]
test r11d, r11d
je 0x140012c6d
test rbx, rbx
je 0x140012c3f
mov rcx, qword [rbp + 0xc18]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
je 0x140012c6d
mov r11d, dword [rsp + 0x30]
test rdi, rdi
je 0x140012c6d
mov dword [rdi], r11d
cmp esi, 1
jne 0x140012c6d
mov rcx, rbx
call fcn.140009870
test al, al
jne 0x140012c8f
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.140026b30
mov dword [rdi], 0
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140023ca0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
mov al, 1
jmp 0x140012c6f