joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003af54
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x14003af77
mov eax, 0x8000ffff
jmp 0x14003b0ad
add rcx, 0x38
call fcn.140004564
test eax, eax
js 0x14003b0ad
xor r9d, r9d
mov byte [rbx + 0x60], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x14003afc1
cmp byte [rbx + 0x60], al
je 0x14003afb7
lea rcx, [rbx + 0x38]
mov byte [rbx + 0x60], al
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.140016d2c
jmp 0x14003b0ad
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
jne 0x14003affa
call fcn.140016d2c
mov rcx, rbx
mov edi, eax
call fcn.14003b158
test eax, eax
jns 0x14003b0ab
test edi, edi
cmovns edi, eax
jmp 0x14003b0ab
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.14003ad80
mov esi, eax
test eax, eax
jns 0x14003b026
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14003b158
mov eax, esi
jmp 0x14003b0ad
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
test rax, rax
je 0x14003afd9
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.14003ad80
mov edi, eax
test eax, eax
jns 0x14003b065
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14003b158
jmp 0x14003b0ab
lea rax, [rbx + 8]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14003b130]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
test rax, rax
je 0x14003afd9
mov rcx, qword [rbx + 0x68]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003b0ab
call fcn.140016d2c
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14003d698
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x1400f3190]
lea rsi, [0x1400f3190]
cmp rcx, rsi
je 0x14003d6e3
test byte [rcx + 0x1c], 1
je 0x14003d6e3
cmp byte [rcx + 0x19], 5
jb 0x14003d6e3
mov eax, dword [rdi]
lea r8, [0x1400d00c0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.14001fe50
mov rcx, qword [rbx]
lea rax, [rsp + 0x60]
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400cff88]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14003d730
mov eax, dword [rsp + 0x68]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x1400f3190]
cmp r10, rsi
je 0x14003d771
test byte [r10 + 0x1c], 2
je 0x14003d771
cmp byte [r10 + 0x19], 5
jb 0x14003d771
mov eax, dword [rsp + 0x50]
lea r8, [0x1400d00c0]
mov rcx, qword [r10 + 0x10]
mov edx, 0x2d
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.1400056d8
mov r10, qword [0x1400f3190]
test ebx, ebx
jne 0x14003d7b3
cmp r10, rsi
je 0x14003d7a6
test byte [r10 + 0x1c], 2
je 0x14003d7a6
cmp byte [r10 + 0x19], 4
jb 0x14003d7a6
mov eax, dword [rsp + 0x50]
lea edx, [rbx + 0x2e]
mov r9d, dword [rdi]
lea r8, [0x1400d00c0]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], eax
call fcn.1400056d8
mov eax, dword [rsp + 0x50]
mov dword [rdi], eax
mov r10, qword [0x1400f3190]
cmp r10, rsi
je 0x14003d7f2
test byte [r10 + 0x1c], 1
je 0x14003d7f2
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x14003d7f2
mov ecx, dword [rdi]
lea r8, [0x1400d00c0]
mov dword [rsp + 0x20], ecx
mov edx, 0x2f
mov rcx, qword [r10 + 0x10]
mov r9d, ebx
call fcn.1400056d8
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140064fd8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r12, r9
mov r15, r8
mov r14, rdx
and qword [rbp - 0x18], 0
lea rax, [0x1400f3190]
mov rcx, qword [0x1400f3190]
cmp rcx, rax
je 0x140065040
test byte [rcx + 0x1c], 2
je 0x140065040
cmp byte [rcx + 0x19], 5
jb 0x140065040
mov edx, SafeArrayDestroy
lea r8, [0x1400d6ed8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035e4
mov rax, qword [r14]
lea r8, [rbp - 0x18]
lea rdx, [0x1400d6e80]
mov rcx, r14
mov rax, qword [rax]
call qword [str.__f_]
mov ebx, eax
test eax, eax
js 0x1400651c8
lea rcx, [rbp + 0x30]
call fcn.14006d0d8
mov ebx, eax
test eax, eax
js 0x1400651c8
mov rdi, qword [rbp + 0x30]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.__f_]
mov rsi, qword [rbp - 0x18]
xor ebx, ebx
mov qword [rdi + 0x48], r15
mov rcx, qword [rdi + 0x50]
cmp rcx, rsi
je 0x1400650cd
test rsi, rsi
je 0x1400650b7
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [str.__f_]
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400650c9
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.__f_]
mov qword [rdi + 0x50], rsi
lea rax, [rdi + 0x68]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1400644c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x60], rax
test rax, rax
jne 0x14006510b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400651b7
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8d, 1
lea rdx, [0x1400d6ee8]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_ConnectToConnectionPoint]
mov ebx, eax
test eax, eax
js 0x1400651b7
and dword [rbp - 0x20], 0
and dword [rbp + 0x30], 0
and dword [rbp + 0x38], 0
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x20]
mov rax, qword [rax + 0x28]
call qword [str.__f_]
cmp dword [rbp + 0x30], 0
jne 0x140065199
cmp dword [rbp + 0x38], 0
jne 0x140065199
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
mov r9, r14
xor r8d, r8d
lea rdx, [0x1400d6ee8]
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_ConnectToConnectionPoint]
mov ebx, 0x80070490
jmp 0x1400651b7
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
mov edx, 2
mov r8d, 0x3e8
mov rax, qword [rax + 0x18]
call qword [str.__f_]
mov ebx, eax
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [str.__f_]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400651de
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.__f_]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400657cc
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx]
mov qword [rbp - 0x10], rsi
lea rax, [rsi + 0x48]
mov qword [rbp - 8], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rbp + 0x58], rax
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x10]
call fcn.1400647bc
mov ebx, eax
or r12, 0xffffffffffffffff
xor r15d, r15d
test eax, eax
js 0x140065950
lea rdx, str.SELECT_System.ItemNameDisplay__System.ItemUrl_FROM_SystemIndex_WHERE_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_stream__AND_NOT_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_hidden__AND_System.Shell.OmitFromView___true_AND__System.ItemType__.wpl_OR_System.ItemType__.m3u_
lea rcx, [rbp + 0x40]
call fcn.140004be4
nop
lea rdx, [0x1400d5b10]
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14006585e
mov r8d, eax
lea rcx, [rbp + 0x40]
call fcn.140004638
mov rdx, qword [rbp + 0x58]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x40]
call fcn.140004638
lea rdx, str._ORDER_BY_System.ItemNameDisplay_ASC
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14006588f
mov r8d, eax
lea rcx, [rbp + 0x40]
call fcn.140004638
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x40]
lea rdx, [0x1400d8ea0]
mov rax, qword [rax + 0x38]
call qword [str.__f_]
mov ebx, eax
test eax, eax
js 0x140065928
mov qword [rbp + 0x50], r15
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8, str.:s_f
xor edx, edx
mov rax, qword [rax + 0x20]
call qword [str.__f_]
mov ebx, eax
test eax, eax
js 0x140065911
mov r8, r14
mov rdx, qword [rbp + 0x50]
mov rcx, rdi
call fcn.14006493c
mov ebx, eax
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140065928
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.__f_]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140065950
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140065978
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140066d64
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f6388]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rdx
mov rcx, r9
mov rdx, qword [r8]
mov rdi, r9
mov r8d, dword [rdx - 0x10]
call fcn.140004638
or rbx, 0xffffffffffffffff
lea rdx, [0x1400cf6dc]
mov rax, rbx
xor ebp, ebp
inc rax
cmp word [rdx + rax*2], bp
jne 0x140066da7
mov r8d, eax
mov rcx, rdi
call fcn.140004638
mov r9, qword [rsi]
mov rdx, rbx
inc rdx
cmp word [r9 + rdx*2], bp
jne 0x140066dc1
mov eax, 0x811c9dc5
mov r8, rbp
add rdx, rdx
je 0x140066ded
movzx ecx, byte [r8 + r9]
inc r8
imul eax, eax, 0x1000193
xor eax, ecx
cmp r8, rdx
jb 0x140066dd8
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x20]
mov ecx, eax
lea r8d, [r9 + 0x11]
call qword [sym.imp.msvcrt.dll__ultow_s]
lea rax, [rsp + 0x20]
inc rbx
cmp word [rax + rbx*2], bp
jne 0x140066e09
mov r8d, ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140004638
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400c13a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140078b48
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
mov dil, r15b
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rbp - 0x38]
call fcn.140004be4
nop
or r12, 0xffffffffffffffff
test rbx, rbx
jne 0x140078b94
mov eax, r15d
jmp 0x140078ba1
mov rax, r12
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140078b97
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140004638
mov rbx, r15
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r15
mov qword [rbp - 0x30], r15
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rbp - 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140078d4d
mov rbx, qword [rbp - 0x30]
mov qword [rbp - 0x18], rbx
mov dword [rbp + 0x50], 4
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, str.UserLiveIDs
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140078d4d
cmp dword [rbp + 0x58], 4
jne 0x140078d4d
mov eax, r15d
test eax, eax
jne 0x140078d4d
mov esi, r15d
cmp dword [rbp + 0x40], r15d
jbe 0x140078d4d
lea r13d, [r15 + 1]
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rbp - 0x40], rax
mov r9d, esi
lea r8, str.UserLiveIDs
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.140008fe8
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x18]
call fcn.1400a9468
mov rbx, qword [rbp - 0x28]
test eax, eax
js 0x140078cf2
test r14, r14
je 0x140078cf2
cmp dword [rbx - 0x10], r15d
jl 0x140078cf2
mov rdx, r14
mov rcx, rbx
call fcn.140016050
test rax, rax
je 0x140078cf2
sub rax, rbx
sar rax, 1
movzx edi, dil
test eax, eax
cmovns edi, r13d
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140078d16
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140078d3d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
add esi, r13d
cmp esi, dword [rbp + 0x40]
jb 0x140078c54
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x140078d5c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x140078d83
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [str.__f_]
mov al, dil
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140078e3c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.140004564
mov ebx, eax
test eax, eax
js 0x140078f29
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, 0x20219
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x140078eae
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x140078ea2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x88], rax
test ecx, ecx
jne 0x140078f1b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x140078f14
mov rcx, rdi
call fcn.140079d50
mov ebx, eax
test eax, eax
js 0x140078f29
xor edx, edx
mov rcx, rdi
call fcn.1400792e0
mov ebx, eax
test eax, eax
js 0x140078f29
and qword [rsp + 0x28], 0
lea r8, [0x140079db0]
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0xa8], rax
jmp 0x140078f29
mov ebx, 0x8000ffff
jmp 0x140078f29
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140079e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp + 0x28], 0
lea r8, [rbp + 0x20]
and dword [rbp + 0x20], 0
lea rdx, [rbp + 0x28]
xor ecx, ecx
xor bl, bl
call qword [sym.imp.NETAPI32.dll_NetGetJoinInformation]
mov rcx, qword [rbp + 0x28]
mov edi, eax
test rcx, rcx
je 0x140079e3b
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test edi, edi
jne 0x140079e4c
cmp dword [rbp + 0x20], 3
lea eax, [rdi + 1]
movzx ebx, bl
cmove ebx, eax
lea rax, [rbp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetControlLsa
mov rcx, 0xffffffff80000002
mov dil, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140079ed4
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
lea r8, str.AllowOnlineID
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], 4
mov qword [rsp + 0x28], rax
lea rdx, str.Pku2u
lea rax, [rbp + 0x28]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140079eca
cmp dword [rbp + 0x28], 4
jne 0x140079eca
cmp dword [rbp + 0x30], eax
sete dil
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x140079fa4
Capabilities:
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
or r14, 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
mov ebx, ebp
test rdx, rdx
jne 0x140079fd3
mov eax, ebp
jmp 0x140079fdf
mov rax, r14
inc rax
cmp word [rdx + rax*2], bp
jne 0x140079fd6
mov r8d, eax
call fcn.140005040
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
mov r15d, 0x80070000
test rax, rax
jne 0x14007a01f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14007a0ed
mov edx, 1
mov rcx, rsi
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov qword [rdi + 0x18], rax
cmp rax, r14
jne 0x14007a04b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14007a0ed
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], rbp
xor r8d, r8d
lea rcx, [0x1400cbfc8]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
js 0x14007a0de
mov rcx, qword [rsp + 0x50]
mov edx, 1
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov qword [rdi + 0x20], rax
cmp rax, r14
jne 0x14007a0a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14007a0de
mov qword [rsp + 0x28], rbp
lea r8, [0x14007a940]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
test rax, rax
jne 0x14007a0de
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x14007a11b
mov rcx, qword [rdi + 0x18]
cmp rcx, r14
je 0x14007a100
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov qword [rdi + 0x18], r14
mov rcx, qword [rdi + 0x20]
cmp rcx, r14
je 0x14007a113
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov qword [rdi + 0x20], r14
mov rcx, rdi
call fcn.14007aec8
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400a6798
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov dword [rax + 0x10], edx
push r15
sub rsp, 0x60
mov rdi, rcx
mov rcx, qword [0x1400f3190]
lea r14, [0x1400f3190]
lea r15, [0x1400d8bc0]
cmp rcx, r14
je 0x1400a6811
test byte [rcx + 0x1c], 1
je 0x1400a67eb
mov rcx, qword [rcx + 0x10]
mov edx, DispGetParam
mov r8, r15
call fcn.1400035e4
mov rcx, qword [0x1400f3190]
cmp rcx, r14
je 0x1400a6811
test byte [rcx + 0x1c], 2
je 0x1400a6811
cmp byte [rcx + 0x19], 4
jb 0x1400a6811
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r8, r15
lea r9d, [rdx - 0x1a]
call fcn.1400036a8
mov edx, 1
mov rcx, rdi
call fcn.1400a6c04
mov ebx, eax
mov rcx, qword [0x1400f3190]
cmp rcx, r14
je 0x1400a684c
test byte [rcx + 0x1c], 2
je 0x1400a684c
cmp byte [rcx + 0x19], 4
jb 0x1400a684c
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r9d, eax
mov r8, r15
call fcn.1400036a8
cmp ebx, 1
jne 0x1400a690d
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x78]
lea edx, [rbx + 2]
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, eax
cmp eax, 1
je 0x1400a689b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400f3190]
cmp rcx, r14
je 0x1400a690d
test byte [rcx + 0x1c], 2
je 0x1400a690d
cmp byte [rcx + 0x19], 2
jb 0x1400a690d
mov edx, 0x1d
jmp 0x1400a68fe
mov rcx, qword [rdi + 0x10]
xor eax, eax
mov qword [rsp + 0x50], rax
or edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp eax, 1
je 0x1400a690d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400f3190]
cmp rcx, r14
je 0x1400a690d
test byte [rcx + 0x1c], 2
je 0x1400a690d
cmp byte [rcx + 0x19], 4
jb 0x1400a690d
mov edx, 0x1e
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400036a8
mov rcx, rdi
call fcn.1400a6e40
mov rcx, qword [0x1400f3190]
cmp rcx, r14
je 0x1400a6941
test byte [rcx + 0x1c], 1
je 0x1400a6941
cmp byte [rcx + 0x19], 5
jb 0x1400a6941
mov rcx, qword [rcx + 0x10]
mov edx, 0x1f
mov r9d, ebx
mov r8, r15
call fcn.1400036a8
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x1400a6960
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1400f3190]
lea rsi, [0x1400f3190]
cmp rcx, rsi
je 0x1400a69a0
test byte [rcx + 0x1c], 1
je 0x1400a69a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400d8bc0]
mov edx, 0x20
call fcn.1400035e4
xor edx, edx
mov rcx, rdi
call fcn.1400a6c04
mov ebx, eax
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x1400a69dc
test byte [rcx + 0x1c], 2
je 0x1400a69dc
cmp byte [rcx + 0x19], 4
jb 0x1400a69dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400d8bc0]
mov edx, 0x21
mov r9d, eax
call fcn.1400036a8
cmp ebx, 1
jne 0x1400a6a2d
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
cmp eax, 1
je 0x1400a6a2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x1400a6a2d
test byte [rcx + 0x1c], 2
je 0x1400a6a2d
cmp byte [rcx + 0x19], 4
jb 0x1400a6a2d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400d8bc0]
mov edx, 0x22
mov r9d, eax
call fcn.1400036a8
mov rcx, rdi
call fcn.1400a6e40
mov rcx, qword [0x1400f3190]
cmp rcx, rsi
je 0x1400a6a65
test byte [rcx + 0x1c], 1
je 0x1400a6a65
cmp byte [rcx + 0x19], 5
jb 0x1400a6a65
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400d8bc0]
mov edx, 0x23
mov r9d, ebx
call fcn.1400036a8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret