joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018334
Capabilities:
Hash data using fnv

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x20], rdx
mov word [rsp + 0x28], r8w
mov qword [rsp + 0x30], r9
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x38], eax
mov rdi, qword [rcx]
lea r13, [rdi + 0x10]
mov qword [r11 - 0x38], r13
xor esi, esi
mov qword [r11 - 0x30], rsi
lea ecx, [rsi + 0x30]
call fcn.140084c04
mov rbx, rax
mov qword [rsp + 0x48], rax
lea r15, [rax + 0x10]
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [r15], xmm0
movups xmm1, xmmword [rsp + 0x30]
movdqu xmmword [r15 + 0x10], xmm1
mov r14, qword [r15]
movzx eax, word [r15 + 8]
lea r12, [r14 + rax*2]
mov ebp, 0x811c9dc5
jmp 0x1400183d2
movzx ecx, word [r14]
call fcn.14009c8e8
movzx ecx, ax
imul rbp, rbp, 0x1000193
xor rbp, rcx
add r14, 2
cmp r14, r12
jne 0x1400183b8
mov r9, rbp
mov r8, r15
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400198e0
cmp qword [rsp + 0x28], rsi
je 0x14001840c
test rbx, rbx
je 0x140018501
mov edx, 0x30
mov rcx, rbx
call fcn.140084c40
jmp 0x140018501
mov rdx, qword [rdi + 0x18]
movabs rax, 0x555555555555555
cmp rdx, rax
je 0x140018522
lea rcx, [rdx + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140018436
cvtsi2ss xmm0, rcx
jmp 0x14001844b
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rdi + 0x40]
xorps xmm1, xmm1
test rcx, rcx
js 0x14001845e
cvtsi2ss xmm1, rcx
jmp 0x140018473
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rdi + 8]
seta al
test al, al
je 0x1400184aa
mov rcx, rdi
call fcn.1400195d0
mov r9, rbp
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400198e0
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
mov rdx, qword [rdi + 0x18]
mov r8, qword [rsp + 0x20]
mov r9, qword [r8 + 8]
lea rax, [rdx + 1]
mov qword [rdi + 0x18], rax
mov qword [rbx], r8
mov qword [rbx + 8], r9
mov qword [r9], rbx
mov qword [r8 + 8], rbx
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x38]
and rax, rbp
add rax, rax
mov rdx, qword [rcx + rax*8]
cmp rdx, qword [r13]
jne 0x1400184e7
mov qword [rcx + rax*8], rbx
jmp 0x1400184f9
cmp rdx, r8
jne 0x1400184f2
mov qword [rcx + rax*8], rbx
jmp 0x1400184fe
cmp qword [rcx + rax*8 + 8], r9
jne 0x1400184fe
mov qword [rcx + rax*8 + 8], rbx
mov sil, 1
mov al, sil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.unordered_map_set_too_long
call fcn.14005be58
int3
Function at 0x14001863c
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rcx + 0x10]
mov rdi, r8
lea rdx, [rcx + rcx]
movzx eax, dx
cmp rax, rdx
jne 0x1400186dc
cmp qword [rbx + 0x18], 8
jb 0x140018671
mov rbx, qword [rbx]
movzx eax, cx
mov ebp, 0x811c9dc5
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x28], ax
lea rsi, [rbx + rax*2]
jmp 0x1400186a2
movzx ecx, word [rbx]
call fcn.14009c8e8
imul rbp, rbp, 0x1000193
movzx ecx, ax
xor rbp, rcx
add rbx, 2
cmp rbx, rsi
jne 0x140018689
mov r9, rbp
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400198e0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400186dc
cmp rcx, qword [r14 + 0x10]
je 0x1400186dc
mov rax, qword [rcx + 0x20]
mov qword [rdi], rax
mov eax, dword [rcx + 0x28]
mov dword [rdi + 8], eax
mov al, 1
jmp 0x1400186de
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14001f4a0
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 0x14001f55a
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x14001f526
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001f53e
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001f53e
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.0x14005a798.0]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14001f53e
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 [0x1400fb020], 0
jne 0x14001f5a5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f595
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fb018], rax
mov byte [0x1400fb020], 1
jmp 0x14001f5ac
mov rax, qword [0x1400fb018]
mov byte [0x1400fb020], 1
jmp 0x14001f5ac
mov rax, qword [0x1400fb018]
mov rdx, rsi
mov rcx, qword [rbx]
test rax, rax
je 0x14001f52f
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x14005a798.0]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400202a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400f63f8]
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 0x140020325
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 0x140020325
call fcn.14001f190
mov ebx, eax
jmp 0x14002044a
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140020346
call fcn.14001f190
jmp 0x140020439
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 0x140020369
call fcn.14001f190
jmp 0x140020439
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 0x14002038b
mov ebx, 0x8007000e
jmp 0x14002043b
mov ecx, eax
test eax, eax
je 0x1400203c0
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140020482
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400203c0
lea rcx, [rsp + 0x60]
call fcn.14001efe0
jmp 0x1400203ca
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x1400203dd
cmp qword [rsp + 0x60], 0
jne 0x1400203ec
mov ebx, 0x8007000e
jmp 0x14002043b
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 0x140020416
call fcn.14001f190
jmp 0x140020439
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.14001fdb0
mov ebx, eax
test rdi, rdi
je 0x14002044a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140020461
lea rcx, [rsp + 0x60]
call fcn.14001f5e0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140085660
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.14001f1c0
int3
Function at 0x14002c670
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa90
mov rax, qword [0x1400f63f8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.14002c8e0
test eax, eax
jne 0x14002c883
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14002c789
cmp eax, 0x104
je 0x14002c789
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 0x14002c898
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 0x14002c7b0
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14002b500
test eax, eax
jne 0x14002c772
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14008db44
test eax, eax
je 0x14002c772
cmp eax, 0xc
je 0x14002c8b4
cmp eax, 0x16
je 0x14002c8a9
cmp eax, 0x22
je 0x14002c8a9
cmp eax, 0x50
jne 0x14002c89e
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.140085660
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 0x14002c871
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14002b500
test eax, eax
jne 0x14002c866
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14008db44
test eax, eax
je 0x14002c866
cmp eax, 0xc
je 0x14002c88d
cmp eax, 0x16
je 0x14002c8ca
cmp eax, 0x22
je 0x14002c8ca
cmp eax, 0x50
jne 0x14002c8bf
xor r9d, r9d
mov r8, rdi
jmp 0x14002c779
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14002c78b
mov ecx, 0x8007000e
call fcn.14001f1c0
int3
call fcn.140085344
int3
mov ecx, 0x80004005
call fcn.14001f1c0
int3
mov ecx, 0x80070057
call fcn.14001f1c0
int3
mov ecx, 0x8007000e
call fcn.14001f1c0
int3
mov ecx, 0x80004005
call fcn.14001f1c0
int3
mov ecx, 0x80070057
call fcn.14001f1c0
int3
Function at 0x14002c950
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 [0x1400f63f8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140007b60
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.1400933fc
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x14002c9d6
lea rcx, [rsp + 0x60]
call fcn.14008dc94
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14002ca27
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.140085660
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002ca50
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa80
mov rax, qword [0x1400f63f8]
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 0x14002cb41
xor edx, edx
lea rcx, [0x1400fc3f0]
call fcn.140086210
xor edi, edi
lea esi, [rbp + 1]
test rax, rax
je 0x14002cae1
test edi, edi
jne 0x14002cb22
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, [0x1400fc3f0]
mov edi, eax
inc esi
call fcn.140086210
test rax, rax
jne 0x14002caa6
test edi, edi
jne 0x14002cb22
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x270]
call fcn.14008db44
test eax, eax
je 0x14002cb22
cmp eax, 0xc
je 0x14002cc6c
cmp eax, 0x16
je 0x14002cc61
cmp eax, 0x22
je 0x14002cc61
cmp eax, 0x50
jne 0x14002cc56
xor r9d, r9d
lea r8, [0x1400fb0c8]
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14002cc29
mov r8d, 0x104
lea rdx, [rsp + 0x62]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14002cc20
cmp eax, 0x104
je 0x14002cc20
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 0x14002cc50
xor edi, edi
mov qword [rsp + 0xa90], rbx
mov word [rsp + rcx + 0x60], di
lea rsi, [0x1400fb0c8]
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 0x14002cc2b
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.140085660
lea r11, [rsp + 0xa80]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140085344
int3
mov ecx, 0x80004005
call fcn.14001f1c0
int3
mov ecx, 0x80070057
call fcn.14001f1c0
int3
mov ecx, 0x8007000e
call fcn.14001f1c0
int3
Function at 0x14002df10
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.14002e7b0
test eax, eax
je 0x14002e0e0
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 [0x140100f98]
call fcn.140021590
test eax, eax
js 0x14002e0e5
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 0x14002dfbf
mov eax, ebx
mov rdi, qword [rsp + 0xb8]
test eax, eax
je 0x14002dfe1
mov ecx, eax
call fcn.14001f1b0
mov ebx, eax
test rdi, rdi
je 0x14002dfda
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002e0e5
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 0x14002e02b
mov eax, ebx
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x14002e05b
mov ecx, eax
call fcn.14001f1b0
mov esi, eax
test rbx, rbx
je 0x14002e046
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x14002e054
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14002e0e5
lea rdx, str.LocalService
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test bpl, bpl
je 0x14002e0fd
lea rcx, [rsi + 0x68]
test rcx, rcx
je 0x14002e0b8
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14002e084
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.14002c670
test eax, eax
jne 0x14002e0fd
test rbx, rbx
je 0x14002e0d2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x14002e0e0
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 0x14002e10b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x14002e119
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14002e0e5
Function at 0x14002e120
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, [0x1400fb060]
call fcn.14002e7b0
mov dword [0x1400fb2ec], 1
xor r9d, r9d
lea edx, [r9 + 0x65]
lea r8d, [r9 + 1]
lea rcx, [0x1400fb060]
call fcn.140021590
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, [0x1400c19a0]
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, [0x1400fb060]
call fcn.14002c670
test eax, eax
je 0x14002e2bb
mov rbx, qword [0x1400f71d0]
mov rax, qword [0x1400f71d8]
cmp rbx, rax
jae 0x14002e2a1
mov rdi, qword [rbx]
test rdi, rdi
je 0x14002e294
mov ecx, 1
mov rax, qword [rdi + 8]
call qword [case.0x14005a798.0]
test eax, eax
js 0x14002e2bb
mov rax, qword [rdi + 0x30]
call qword [case.0x14005a798.0]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rdi]
call fcn.14002b7d0
mov esi, eax
test eax, eax
js 0x14002e2bb
mov rax, qword [0x1400f71d8]
add rbx, 8
cmp rbx, rax
jb 0x14002e251
test esi, esi
js 0x14002e2bb
mov rax, qword [0x140100fb0]
test rax, rax
je 0x14002e2bb
mov rcx, qword [0x1400fc3f8]
call qword [case.0x14005a798.0]
nop
test r14, r14
je 0x14002e2c9
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15, r15
je 0x14002e2d8
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 0x14002e490
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 [0x1400f63f8]
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 0x14002e503
mov esi, r15d
mov rbx, qword [rsp + 0x38]
test esi, esi
je 0x14002e522
mov dword [rdi + 0x27c], esi
test rbx, rbx
je 0x14002e51b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14002e69f
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 0x14002e55b
mov ebp, r15d
mov rsi, qword [rsp + 0x40]
test ebp, ebp
je 0x14002e588
mov dword [rdi + 0x27c], ebp
test rsi, rsi
je 0x14002e573
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14002e581
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x14002e69f
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 0x14002e5e2
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14002e5e2
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14002e631
test al, 1
jne 0x14002e5e2
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x14002e637
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 0x14002e61b
cmp eax, 0x80010106
jne 0x14002e565
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14002e61f
jmp 0x14002e565
mov byte [rdi + 0x62], 1
mov edx, r14d
mov rcx, rdi
call fcn.14002e3c0
mov ebp, eax
jmp 0x14002e55f
mov word [rsp + 0x70], r15w
mov dword [rdi + 0x28c], 1
lea rax, [rdi + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [0x14002f960]
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 0x14002e67b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov edi, dword [rdi + 0x27c]
test rsi, rsi
je 0x14002e68f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14002e69d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140085660
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