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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140006625
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x1400065f1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006610
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006610
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x140006610
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x140031640], 0
jne 0x140006670
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006660
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140031638], rax
mov byte [0x140031640], 1
jmp 0x140006677
mov rax, qword [0x140031638]
mov byte [0x140031640], 1
jmp 0x140006677
mov rax, qword [0x140031638]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x1400065fa
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x140006760
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x140030048]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400069e0
test eax, eax
je 0x140006791
mov eax, 1
jmp 0x140006898
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000698e
cmp eax, 0x104
je 0x14000698e
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400069d7
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400068b1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.1400059f0
test eax, eax
jne 0x14000686f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.1400137e0
test eax, eax
je 0x14000686f
cmp eax, 0xc
je 0x1400069ab
cmp eax, 0x16
je 0x1400069a0
cmp eax, 0x22
je 0x1400069a0
cmp eax, 0x50
jne 0x140006995
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 rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14000d8b0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140006972
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.1400059f0
test eax, eax
jne 0x140006967
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.1400137e0
test eax, eax
je 0x140006967
cmp eax, 0xc
je 0x1400069cc
cmp eax, 0x16
je 0x1400069c1
cmp eax, 0x22
je 0x1400069c1
cmp eax, 0x50
jne 0x1400069b6
xor r9d, r9d
mov r8, rdi
jmp 0x140006876
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140006888
xor eax, eax
jmp 0x140006898
mov ecx, 0x80004005
call fcn.140003fb0
int3
mov ecx, 0x80070057
call fcn.140003fb0
int3
mov ecx, 0x8007000e
call fcn.140003fb0
int3
mov ecx, 0x80004005
call fcn.140003fb0
int3
mov ecx, 0x80070057
call fcn.140003fb0
int3
mov ecx, 0x8007000e
call fcn.140003fb0
int3
call fcn.14000da10
int3
Function at 0x140006a50
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 [0x140030048]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140004980
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.140013528
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x140006ad6
lea rcx, [rsp + 0x60]
call fcn.140013abc
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140006b27
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.14000d8b0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007600
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov ebx, 1
mov qword [rsp + 0x68], r14
mov r14, qword [0x140031600]
mov rdi, rcx
mov rcx, qword [0x140031608]
xor ebp, ebp
lea r15d, [rbx + 3]
cmp r14, rcx
jae 0x1400076ad
test ebx, ebx
js 0x1400076ad
mov rsi, qword [r14]
test rsi, rsi
je 0x1400076a4
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x70], rbp
test rax, rax
jne 0x14000764f
mov ebx, ebp
jmp 0x1400076a4
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [0x140021c40]
call rax
mov ebx, eax
test eax, eax
js 0x14000768d
mov rax, qword [rsi + 0x20]
mov r9d, 5
mov rdx, qword [rsp + 0x70]
add rax, 8
mov rcx, qword [rsi]
mov r8d, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000769d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140031608]
add r14, 8
cmp r14, rcx
jb 0x140007631
mov r14, qword [rsp + 0x68]
test ebx, ebx
js 0x140007808
jne 0x140007804
cmp byte [rdi + 0x60], bpl
je 0x1400077a8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
je 0x14000778e
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140006b50]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14000771f
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x50], rbp
test rsi, rsi
je 0x14000778e
cmp dword [rdi + 0x28c], ebp
je 0x14000775f
mov eax, 2
lock cmpxchg dword [rdi + 0x274], r15d
jne 0x14000775f
lea rdx, str.Service_started_resumed
mov rcx, rdi
call fcn.140006a50
mov rcx, qword [rdi + 0x268]
lea rdx, [rdi + 0x270]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140007783
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rdi + 0x58]
mov rcx, rsi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400077eb
mov rcx, rdi
mov ebx, 0x80004005
call fcn.140009300
mov eax, ebx
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rdi + 0x28c], ebp
je 0x1400077e3
mov eax, 2
lock cmpxchg dword [rdi + 0x274], r15d
jne 0x1400077e3
lea rdx, str.Service_started_resumed
mov rcx, rdi
call fcn.140006a50
mov rcx, qword [rdi + 0x268]
lea rdx, [rdi + 0x270]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140007808
mov rcx, rdi
call fcn.140009300
mov eax, ebx
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov byte [rdi + 0x60], bpl
mov eax, ebx
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007c50
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140030048]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.140006d80
mov ebx, eax
test eax, eax
jne 0x140007d67
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140007d41
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140007c50
mov ebx, eax
test eax, eax
jne 0x140007d67
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140007cf0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007d56
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.140006570
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007d77
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000d8b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007da0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x80
movzx r14d, dl
mov rsi, rcx
call fcn.1400098c0
test eax, eax
jne 0x140007dd5
mov eax, 0x80004005
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop r14
ret
mov rcx, qword [0x1400315d8]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0x98], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rdi, str.BACFB3C3_4BFC_4522_9F65_1B384F58D01A
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.140009f50
test eax, eax
js 0x140007f50
mov qword [rsp + 0x90], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov r9d, 0x20006
mov qword [rsp + 0x40], rbx
mov rdx, 0xffffffff80000000
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
call fcn.140006d80
test eax, eax
je 0x140007e68
mov ecx, eax
call fcn.1400059e0
mov ebx, eax
jmp 0x140007f33
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], rbx
call fcn.140006400
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x140007eb5
mov ecx, eax
call fcn.1400059e0
mov ebx, eax
jmp 0x140007f25
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x140007f25
lea rcx, [rsi + 0x68]
test rcx, rcx
je 0x140007f14
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140007ee0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.140006760
test eax, eax
jne 0x140007f25
mov ebx, 0x80004005
test rdi, rdi
je 0x140007f33
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x140007f46
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop r14
ret
Function at 0x140008450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140030048]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], 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 0x1400084de
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 0x1400084de
call fcn.1400059c0
mov ebx, eax
jmp 0x140008603
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400084ff
call fcn.1400059c0
jmp 0x1400085f2
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 0x140008522
call fcn.1400059c0
jmp 0x1400085f2
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 0x140008544
mov ebx, 0x8007000e
jmp 0x1400085f4
mov ecx, eax
test eax, eax
je 0x140008579
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000863b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140008579
lea rcx, [rsp + 0x70]
call fcn.1400058a0
jmp 0x140008583
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140008596
cmp qword [rsp + 0x70], 0
jne 0x1400085a5
mov ebx, 0x8007000e
jmp 0x1400085f4
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
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 0x1400085cf
call fcn.1400059c0
jmp 0x1400085f2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140007f70
mov ebx, eax
test rdi, rdi
je 0x140008603
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000861a
lea rcx, [rsp + 0x70]
call fcn.1400066e0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000d8b0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140003fb0
int3
Function at 0x140009500
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x140030048]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r15d, r15d
lea r8, str.AppID
mov r14d, edx
mov qword [rsp + 0x50], r15
mov rdi, rcx
mov dword [rsp + 0x58], r15d
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x50]
mov r9d, 0x20019
call fcn.140006d80
mov ebx, eax
test eax, eax
je 0x140009571
mov dword [rdi + 0x27c], eax
jmp 0x1400096cc
mov rdx, qword [rsp + 0x50]
lea r8, str.BACFB3C3_4BFC_4522_9F65_1B384F58D01A
mov r9d, 0x20019
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], r15
call fcn.140006d80
mov ebx, eax
test eax, eax
jne 0x1400096b4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009620
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x1400095f3
lea eax, [rbx + 0xd]
jmp 0x140009620
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140009614
test al, 1
jne 0x14000960d
shr rax, 1
cmp word [rsp + rax*2 + 0x8e], r15w
je 0x14000961d
mov eax, 0xd
jmp 0x140009620
mov word [rsp + 0x90], r15w
mov eax, r15d
mov dword [rdi + 0x28c], r15d
test eax, eax
jne 0x14000967a
lea rax, [rdi + 0x68]
mov dword [rdi + 0x28c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14000a380]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r15
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140009672
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov ebx, dword [rdi + 0x27c]
jmp 0x1400096ba
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test eax, eax
jns 0x1400096a3
cmp eax, 0x80010106
jne 0x1400096ba
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400096a7
jmp 0x1400096ba
mov byte [rdi + 0x62], 1
mov edx, r14d
mov rcx, rdi
call fcn.140009360
mov ebx, eax
mov dword [rdi + 0x27c], eax
cmp qword [rsp + 0x38], r15
je 0x1400096cc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r15
je 0x1400096de
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000d8b0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x140009c80
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
call fcn.1400098c0
test eax, eax
jne 0x140009c97
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov qword [rsp + 0x38], rbx
mov rdx, 0xffffffff80000000
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
call fcn.140006d80
test eax, eax
je 0x140009cd9
mov ecx, eax
call fcn.1400059e0
mov ebx, eax
jmp 0x140009d3e
mov rdx, qword [rsp + 0x38]
lea r8, str.BACFB3C3_4BFC_4522_9F65_1B384F58D01A
mov r9d, 0x20006
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], rbx
call fcn.140006d80
test eax, eax
je 0x140009d10
mov ecx, eax
call fcn.1400059e0
jmp 0x140009d29
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.140009f00
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x140009d3e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x140009d51
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x14000a540
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x28]
mov ebx, r9d
call fcn.140004a40
mov rax, qword gs:[0x58]
mov ecx, dword [0x140031a50]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x140031930], eax
jg 0x14000a602
lea rcx, [rsp + 0x28]
call sub.KERNEL32.dll_DeleteCriticalSection
lea rcx, [0x1400318f0]
call fcn.14000c940
cmp byte [0x1400315b8], 0
je 0x14000a5a6
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
ret
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x140031650]
call fcn.140007370
cmp al, 1
jne 0x14000a5de
mov edx, ebx
lea rcx, [0x140031650]
call fcn.140009500
mov ebx, eax
jmp 0x14000a5e2
mov ebx, dword [rsp + 0x20]
cmp dword [0x1400318dc], 0
jne 0x14000a5fa
cmp byte [0x1400316b2], 0
je 0x14000a5fa
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
lea rcx, [0x140031930]
call fcn.14000d6e8
cmp dword [0x140031930], 0xffffffff
jne 0x14000a57c
lea rcx, [0x1400318f0]
call fcn.140004c90
lea rcx, [0x140020940]
call fcn.14000d4e8
lea rcx, [0x140031930]
call fcn.14000d688
jmp 0x14000a57c

Function at 0x14000cbb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rdx, qword [rdx]
lea rax, [rsp + 0x40]
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r8d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x14000cf20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov rdx, r9
mov rcx, rsi
call fcn.14000c700
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x90], edi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d088
mov eax, dword [rsp + 0xa0]
dec eax
cmp eax, 1
ja 0x14000d088
mov ebx, dword [rsp + 0x90]
shr ebx, 1
je 0x14000d088
mov edx, ebx
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.14000ca20
nop
lea eax, [rbx + rbx]
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d025
mov eax, dword [rsp + 0xa0]
dec eax
cmp eax, 1
ja 0x14000d025
test rbx, rbx
je 0x14000d03d
cmp dword [rsp + 0x90], edi
jne 0x14000d025
mov word [rbx], di
test rbx, rbx
je 0x14000d03d
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000d031
mov edi, eax
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call fcn.140004670
nop
test rbx, rbx
je 0x14000d088
mov rdx, qword [rsp + 0x50]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000d080
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d096
mov rcx, rbx
call fcn.14000d244
mov rax, rsi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14001194c
int3

Function at 0x14000d150
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
mov rbx, r8
test r8, r8
je 0x14000d17b
cmp dword [r9], 2
jae 0x14000d17b
mov eax, 0x7a
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, dword [r9]
xor r8d, r8d
add eax, eax
mov dword [r9], 0
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d1fc
cmp dword [rsp + 0x30], 7
jne 0x14000d1f7
mov eax, dword [rsp + 0x60]
test rbx, rbx
je 0x14000d1e6
test al, 1
jne 0x14000d1f7
mov ecx, eax
shr ecx, 1
cmp ecx, 1
jb 0x14000d1f7
mov edx, eax
shr rdx, 1
cmp word [rbx + rdx*2 - 2], 0
jne 0x14000d1f7
cmp ecx, 1
jbe 0x14000d1e6
cmp word [rbx + rdx*2 - 4], 0
jne 0x14000d1f7
shr eax, 1
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, 0xd
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140014220
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001404c