joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021780
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x14002183a
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x140021806
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021825
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140021825
mov qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [case.0x14005f7f8.0]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x140021825
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x140101020], 0
jne 0x140021885
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021875
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140101018], rax
mov byte [0x140101020], 1
jmp 0x14002188c
mov rax, qword [0x140101018]
mov byte [0x140101020], 1
jmp 0x14002188c
mov rax, qword [0x140101018]
mov rdx, rsi
mov rcx, qword [rbx]
test rax, rax
je 0x14002180f
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x14005f7f8.0]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140022580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400fc3f8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140022605
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140022605
call fcn.140021470
mov ebx, eax
jmp 0x14002272a
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140022626
call fcn.140021470
jmp 0x140022719
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140022649
call fcn.140021470
jmp 0x140022719
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14002266b
mov ebx, 0x8007000e
jmp 0x14002271b
mov ecx, eax
test eax, eax
je 0x1400226a0
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140022762
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400226a0
lea rcx, [rsp + 0x60]
call fcn.1400212c0
jmp 0x1400226aa
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x1400226bd
cmp qword [rsp + 0x60], 0
jne 0x1400226cc
mov ebx, 0x8007000e
jmp 0x14002271b
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400226f6
call fcn.140021470
jmp 0x140022719
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140022090
mov ebx, eax
test rdi, rdi
je 0x14002272a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140022741
lea rcx, [rsp + 0x60]
call fcn.1400218c0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14008a6c0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1400214a0
int3
Function at 0x1400305a0
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa90
mov rax, qword [0x1400fc3f8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140030810
test eax, eax
jne 0x1400307b3
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400306b9
cmp eax, 0x104
je 0x1400306b9
mov r8d, 0x22
mov word [rsp + 0x70], r8w
lea ecx, [rax + 1]
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400307c8
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400306e0
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14002f430
test eax, eax
jne 0x1400306a2
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140092ed4
test eax, eax
je 0x1400306a2
cmp eax, 0xc
je 0x1400307e4
cmp eax, 0x16
je 0x1400307d9
cmp eax, 0x22
je 0x1400307d9
cmp eax, 0x50
jne 0x1400307ce
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14008a6c0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
add rdi, 0x68
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, rdi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x1400307a1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14002f430
test eax, eax
jne 0x140030796
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140092ed4
test eax, eax
je 0x140030796
cmp eax, 0xc
je 0x1400307bd
cmp eax, 0x16
je 0x1400307fa
cmp eax, 0x22
je 0x1400307fa
cmp eax, 0x50
jne 0x1400307ef
xor r9d, r9d
mov r8, rdi
jmp 0x1400306a9
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1400306bb
mov ecx, 0x8007000e
call fcn.1400214a0
int3
call fcn.14008a3a4
int3
mov ecx, 0x80004005
call fcn.1400214a0
int3
mov ecx, 0x80070057
call fcn.1400214a0
int3
mov ecx, 0x8007000e
call fcn.1400214a0
int3
mov ecx, 0x80004005
call fcn.1400214a0
int3
mov ecx, 0x80070057
call fcn.1400214a0
int3
Function at 0x140030880
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400fc3f8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140008330
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.14009878c
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x140030906
lea rcx, [rsp + 0x60]
call fcn.140093024
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140030957
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14008a6c0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140030980
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa80
mov rax, qword [0x1400fc3f8]
xor rax, rsp
mov qword [rsp + 0xa70], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140030a71
xor edx, edx
lea rcx, [0x1401023f0]
call fcn.14008b270
xor edi, edi
lea esi, [rbp + 1]
test rax, rax
je 0x140030a11
test edi, edi
jne 0x140030a52
mov r9d, 0x400
lea r8, [rsp + 0x270]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
lea rcx, [0x1401023f0]
mov edi, eax
inc esi
call fcn.14008b270
test rax, rax
jne 0x1400309d6
test edi, edi
jne 0x140030a52
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x270]
call fcn.140092ed4
test eax, eax
je 0x140030a52
cmp eax, 0xc
je 0x140030b9c
cmp eax, 0x16
je 0x140030b91
cmp eax, 0x22
je 0x140030b91
cmp eax, 0x50
jne 0x140030b86
xor r9d, r9d
lea r8, [0x1401010c8]
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140030b59
mov r8d, 0x104
lea rdx, [rsp + 0x62]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140030b50
cmp eax, 0x104
je 0x140030b50
lea ecx, [rax + 1]
mov r9d, 0x22
mov word [rsp + 0x60], r9w
mov word [rsp + rcx*2 + 0x60], r9w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140030b80
xor edi, edi
mov qword [rsp + 0xa90], rbx
mov word [rsp + rcx + 0x60], di
lea rsi, [0x1401010c8]
mov rcx, rbp
lea r8d, [r9 - 0x20]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x50], rsi
lea edx, [rdi + 0x10]
mov rbx, rax
mov qword [rsp + 0x48], rdi
lea rax, str.NT_AUTHORITYLocalService
mov rcx, rbx
mov qword [rsp + 0x40], rax
lea r9d, [rdi + 1]
lea rax, str.RPCSS
mov qword [rsp + 0x38], rax
lea r8d, [rdi + 3]
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0xa90]
mov al, 1
jmp 0x140030b5b
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.14008a6c0
lea r11, [rsp + 0xa80]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14008a3a4
int3
mov ecx, 0x80004005
call fcn.1400214a0
int3
mov ecx, 0x80070057
call fcn.1400214a0
int3
mov ecx, 0x8007000e
call fcn.1400214a0
int3
Function at 0x140031e40
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
movzx ebp, dl
mov rsi, rcx
call fcn.1400326e0
test eax, eax
je 0x140032010
lea rax, str.APPID
mov qword [rsp + 0x58], rax
lea r14, str.03c60971_8d65_4b18_b7de_47ce0f0576ee
mov qword [rsp + 0x60], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r9, [rsp + 0x58]
mov edx, 0x65
lea r8d, [rdx - 0x64]
mov rcx, qword [0x140106e18]
call fcn.140023870
test eax, eax
js 0x140032015
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0xb8], rbx
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031eef
mov eax, ebx
mov rdi, qword [rsp + 0xb8]
test eax, eax
je 0x140031f11
mov ecx, eax
call fcn.140021490
mov ebx, eax
test rdi, rdi
je 0x140031f0a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140032015
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140031f5b
mov eax, ebx
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x140031f8b
mov ecx, eax
call fcn.140021490
mov esi, eax
test rbx, rbx
je 0x140031f76
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140031f84
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x140032015
lea rdx, str.LocalService
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test bpl, bpl
je 0x14003202d
lea rcx, [rsi + 0x68]
test rcx, rcx
je 0x140031fe8
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140031fb4
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.1400305a0
test eax, eax
jne 0x14003202d
test rbx, rbx
je 0x140032002
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140032010
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
test rbx, rbx
je 0x14003203b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140032049
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140032015
Function at 0x140032050
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
lea rcx, [0x140101060]
call fcn.1400326e0
mov dword [0x1401012ec], 1
xor r9d, r9d
lea edx, [r9 + 0x65]
lea r8d, [r9 + 1]
lea rcx, [0x140101060]
call fcn.140023870
xor esi, esi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, esi
test eax, eax
cmove r15, qword [rsp + 0x50]
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.03c60971_8d65_4b18_b7de_47ce0f0576ee
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, esi
test eax, eax
cmove r14, qword [rsp + 0x58]
lea rbx, str.LocalService
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x28], 0x1a
mov qword [rsp + 0x20], rbx
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, [0x1400c69e0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0x12
lea rax, str._Service
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, str.ServiceParameters
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [0x140101060]
call fcn.1400305a0
test eax, eax
je 0x1400321eb
mov rbx, qword [0x1400fd3e0]
mov rax, qword [0x1400fd3e8]
cmp rbx, rax
jae 0x1400321d1
mov rdi, qword [rbx]
test rdi, rdi
je 0x1400321c4
mov ecx, 1
mov rax, qword [rdi + 8]
call qword [case.0x14005f7f8.0]
test eax, eax
js 0x1400321eb
mov rax, qword [rdi + 0x30]
call qword [case.0x14005f7f8.0]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rdi]
call fcn.14002f700
mov esi, eax
test eax, eax
js 0x1400321eb
mov rax, qword [0x1400fd3e8]
add rbx, 8
cmp rbx, rax
jb 0x140032181
test esi, esi
js 0x1400321eb
mov rax, qword [0x140106e30]
test rax, rax
je 0x1400321eb
mov rcx, qword [0x1401023f8]
call qword [case.0x14005f7f8.0]
nop
test r14, r14
je 0x1400321f9
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15, r15
je 0x140032208
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400323c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400fc3f8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14d, edx
mov rdi, rcx
xor r15d, r15d
mov ebx, r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x140032433
mov esi, r15d
mov rbx, qword [rsp + 0x38]
test esi, esi
je 0x140032452
mov dword [rdi + 0x27c], esi
test rbx, rbx
je 0x14003244b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1400325cf
mov rsi, r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.03c60971_8d65_4b18_b7de_47ce0f0576ee
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
test eax, eax
jne 0x14003248b
mov ebp, r15d
mov rsi, qword [rsp + 0x40]
test ebp, ebp
je 0x1400324b8
mov dword [rdi + 0x27c], ebp
test rsi, rsi
je 0x1400324a3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x1400324b1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x1400325cf
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140032512
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140032512
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140032561
test al, 1
jne 0x140032512
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x140032567
mov dword [rdi + 0x28c], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebp, eax
test eax, eax
jns 0x14003254b
cmp eax, 0x80010106
jne 0x140032495
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14003254f
jmp 0x140032495
mov byte [rdi + 0x62], 1
mov edx, r14d
mov rcx, rdi
call fcn.1400322f0
mov ebp, eax
jmp 0x14003248f
mov word [rsp + 0x70], r15w
mov dword [rdi + 0x28c], 1
lea rax, [rdi + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [0x140033940]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400325ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov edi, dword [rdi + 0x27c]
test rsi, rsi
je 0x1400325bf
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x1400325cd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14008a6c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140032aa0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
call fcn.1400326e0
test eax, eax
jne 0x140032acd
mov eax, 0x80004005
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140032b08
mov eax, ebx
mov rdi, qword [rsp + 0x68]
test eax, eax
je 0x140032b35
mov ecx, eax
call fcn.140021490
mov ebx, eax
test rdi, rdi
je 0x140032b23
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rsi, str.03c60971_8d65_4b18_b7de_47ce0f0576ee
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140032b6b
mov eax, ebx
mov rbx, qword [rsp + 0x70]
test eax, eax
je 0x140032b78
mov ecx, eax
call fcn.140021490
jmp 0x140032bba
lea rdx, str.LocalService
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rax, str.APPID
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea r9, [rsp + 0x30]
xor r8d, r8d
lea edx, [r8 + 0x65]
mov rcx, qword [0x140106e18]
call fcn.140023870
test rbx, rbx
mov esi, eax
je 0x140032bca
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140032bd8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140049ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
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
je 0x14004a065
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14004a065
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14004a055
nop
cmp rbx, rcx
jae 0x14004a065
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14004a040
cmp rbx, rcx
jae 0x14004a065
cmp word [rbx], 0
je 0x14004a065
mov rax, rbx
jmp 0x14004a067
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004c6c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rbp, r9
lea rcx, [rsp + 0x50]
mov rdi, r8
call fcn.14004b6c0
mov rax, qword [rdi]
mov r9, rbp
mov rsi, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp eax, 0xea
jne 0x14004c756
mov rcx, qword [rdi]
call fcn.140089ca0
mov qword [rdi], 0
lea rdx, [0x1400cedf8]
mov ecx, dword [rsi]
call fcn.14008a54c
mov rdx, qword [rsp + 0x50]
mov r9, rbp
mov qword [rdi], rax
xor r8d, r8d
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
mov eax, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c77e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005f7f8.0]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret