joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001924
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov r9, rcx
mov ecx, 0x8664
mov r15, rdx
cmp word [rax + r9 + 4], cx
jne 0x14000195d
mov ecx, dword [rax + r9 + 0x88]
jmp 0x140001962
mov ecx, dword [rax + r9 + 0x78]
mov r11d, ecx
xor ebx, ebx
mov ebp, dword [r11 + r9 + 0x20]
mov esi, dword [r11 + r9 + 0x24]
add rbp, r9
mov r10d, dword [r11 + r9 + 0x18]
add rsi, r9
dec r10d
lea edi, [r10 + rbx]
mov rcx, r15
shr edi, 1
mov edx, dword [rbp + rdi*4]
add rdx, r9
call fcn.140001da4
test eax, eax
jns 0x14000199e
lea r10d, [rdi - 1]
jmp 0x1400019a3
jle 0x1400019a8
lea ebx, [rdi + 1]
cmp r10d, ebx
jae 0x14000197f
cmp r10d, ebx
jb 0x1400019cc
movzx eax, word [rsi + rdi*2]
cmp eax, dword [r11 + r9 + 0x14]
jae 0x1400019cc
mov eax, dword [r11 + r9 + 0x1c]
movzx ecx, word [rsi + rdi*2]
add rax, r9
mov eax, dword [rax + rcx*4]
add rax, r9
jmp 0x1400019ce
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140001b20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov edx, 0x208
mov dword [rsp + 0x20], 0x5c003a
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x24], 0x79006d
mov dword [rsp + 0x28], 0x700061
mov dword [rsp + 0x2c], 0x2e0070
mov dword [rsp + 0x30], 0x780065
mov dword [rsp + 0x34], 0x65
call fcn.140001ae8
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400020d4
test rax, rax
je 0x140001ba3
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlExitUserProcess]
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rbp
ret
Function at 0x1400021e0
Capabilities:
Bypass uac via rpc

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x140
mov esi, r9d
mov r14d, r8d
mov r15, rdx
mov r12, rcx
xor ebx, ebx
mov qword [rax + 0x30], rbx
mov dword [rax + 0x40], ebx
mov rdi, qword [rsp + 0x1a8]
test rdi, rdi
je 0x140002229
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov edx, 0x18
lea rcx, [rsp + 0x78]
call fcn.140001ae8
mov edx, 0x38
lea rcx, [rsp + 0x90]
call fcn.140001ae8
mov dword [rsp + 0xb4], 1
mov word [rsp + 0xb8], bx
mov edx, 0x70
lea rcx, [rsp + 0xd0]
call fcn.140001ae8
lea rdx, [rsp + 0x1a8]
lea rcx, str.201ef99a_7fa0_444c_9399_19ba84f12a1a
call fcn.14000f764
test eax, eax
jne 0x140002396
lea rcx, [rsp + 0xd0]
call fcn.140002168
test eax, eax
jne 0x140002396
lea rax, [rsp + 0x198]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r14d
mov r9, r15
mov r8, r12
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0xd0]
call fcn.1400023b8
or esi, 0xffffffff
mov edx, esi
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
jne 0x140002315
or ecx, 0xffffffff
call qword [sym.imp.RPCRT4.dll_RpcRaiseException]
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
test eax, eax
jne 0x14000236c
cmp qword [rsp + 0x188], rbx
jne 0x14000236c
test rdi, rdi
je 0x140002366
mov rax, qword [rsp + 0x78]
mov qword [rdi], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 8], rax
mov eax, dword [rsp + 0x88]
mov dword [rdi + 0x10], eax
mov eax, dword [rsp + 0x8c]
mov dword [rdi + 0x14], eax
mov bl, 1
mov byte [rsp + 0x70], bl
lea rcx, [rsp + 0xd0]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x1a8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
jmp 0x140002396
mov al, bl
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140002bac
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x270
mov r14, r9
mov rbp, rcx
xor ebx, ebx
call fcn.140001f50
lea rcx, [0x1400266a8]
mov r8, rax
call fcn.140001f50
lea rsi, [rax + 2]
add rsi, r8
lea rcx, [rsi + rsi]
call fcn.14000c8ac
mov rdi, rax
test rax, rax
je 0x140002c6b
mov rdx, rbp
mov rcx, rax
call fcn.140001ee0
mov r8, rsi
lea rdx, [0x1400266a8]
call fcn.14000f8ac
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002c63
mov r8, r14
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140002d9c
test eax, eax
jne 0x140002c55
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002c2d
jmp 0x140002c5a
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call fcn.14000c8c8
lea r11, [rsp + 0x270]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140002c8c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x270
mov r14, r9
mov rsi, rcx
xor ebp, ebp
call fcn.140002bac
test eax, eax
je 0x140002cc1
lea eax, [rbp + 1]
jmp 0x140002d7e
mov rcx, rsi
call fcn.140001f50
lea rdi, [rax + 0x108]
lea rcx, [rdi + rdi]
call fcn.14000c8ac
mov rbx, rax
test rax, rax
je 0x140002d7e
mov rdx, rsi
mov rcx, rbx
call fcn.140001ee0
mov r8, rdi
lea rdx, [0x1400263f8]
call fcn.14000f8ac
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002d74
test byte [rsp + 0x20], 0x10
je 0x140002d59
cmp word [rsp + 0x4c], 0x2e
je 0x140002d59
mov rdx, rsi
mov rcx, rbx
call fcn.140001ee0
lea rdx, [rsp + 0x4c]
call fcn.140001d68
lea r8, [fcn.140002d9c]
mov rcx, rbx
lea rdx, [0x1400266a8]
mov r9, r14
call fcn.140002c8c
mov ebp, eax
test eax, eax
jne 0x140002d6b
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002d16
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call fcn.14000c8c8
mov eax, ebp
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140002e5c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
xor ebx, ebx
mov esi, r8d
mov edi, ebx
mov r14, rdx
mov r15, rcx
call fcn.140001b20
lea rcx, [rbp + 0x188]
mov dword [rbp + 0x188], ebx
call qword [sym.imp.ntdll.dll_RtlQueryElevationFlags]
test byte [rbp + 0x188], 1
jne 0x140002eb6
mov eax, 0xc000042c
jmp 0x140003019
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140003014
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp qword [0x14002ea48], rbx
jne 0x140002eea
call fcn.140002e48
mov rcx, qword [rax + 0x10]
mov qword [0x14002ea48], rcx
mov eax, dword [r15]
cmp eax, 0xabcdef
jne 0x140002f46
mov edx, 0x20a
mov dword [rbp + 0x188], ebx
lea rcx, [rsp + 0x40]
call fcn.140001ae8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rax
lea rax, [rbp + 0x188]
mov qword [rsp + 0x20], rax
call section..text
cmp dword [rbp + 0x188], ebx
je 0x14000300d
lea rcx, [rsp + 0x40]
call fcn.1400019f8
mov dword [r15], eax
test eax, eax
je 0x14000300d
cmp eax, 0x4f
jge 0x14000300d
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 1
call fcn.14000c934
test eax, eax
je 0x140003014
cmp dword [rsp + 0x30], 3
je 0x140002f82
mov eax, 0xc00000bb
jmp 0x140003019
test r14, r14
je 0x140002f92
test esi, esi
je 0x140002f92
mov rbx, r14
mov edi, esi
jmp 0x140002fde
mov edx, 0x20a
lea rcx, [rsp + 0x40]
call fcn.140001ae8
mov dword [rbp + 0x188], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov edx, 2
mov rcx, rax
lea rax, [rbp + 0x188]
mov qword [rsp + 0x20], rax
call section..text
cmp dword [rbp + 0x188], ebx
jbe 0x140002fde
mov edi, dword [rbp + 0x188]
lea rbx, [rsp + 0x40]
lea rcx, [0x140003bfc]
call fcn.14000c6f0
mov r9, rax
mov r8d, edi
mov rdx, rbx
call fcn.14000e6d8
mov qword [0x14002ea50], rax
neg rax
sbb eax, eax
not eax
and eax, 0x40000015
jmp 0x140003019
mov eax, 0xc000000d
jmp 0x140003019
mov eax, 0xc00000e5
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000377c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
cmp dword [rcx], 0x44504355
je 0x1400037b4
cmp dword [rcx], 0x55504355
je 0x1400037b4
cmp dword [rcx], 0x43504355
je 0x1400037b4
cmp dword [rcx], 0x4b504355
je 0x1400037b4
xor eax, eax
jmp 0x140003807
mov ebx, dword [rcx + 0xc]
and dword [rcx + 0xc], 0
mov r8d, 0x20
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlComputeCrc32]
cmp eax, ebx
je 0x1400037d4
xor eax, eax
jmp 0x140003807
mov eax, dword [rdi + 4]
test eax, eax
je 0x140003801
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x140003801
cmp eax, esi
jbe 0x1400037ea
xor eax, eax
jmp 0x140003807
cmp ecx, esi
jbe 0x1400037f2
xor eax, eax
jmp 0x140003807
cmp ecx, eax
jbe 0x1400037fa
xor eax, eax
jmp 0x140003807
mov eax, 1
jmp 0x140003807
xor eax, eax
jmp 0x140003807
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003d4c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0xfa8]
mov eax, 0x1080
call fcn.140016bf0
sub rsp, rax
xor edi, edi
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov dword [rbp + 0xfc0], edi
mov dword [rbp + 0xfb8], edi
lea edx, [rdi + 0x10]
call fcn.140001ae8
mov eax, dword [rbx + 8]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x34], edx
lea r15d, [rdi + 5]
lea edx, [rdi + 0x38]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x30], 0x30b0005
mov dword [rsp + 0x38], 0x48
call fcn.140001ae8
lea esi, [rdi + 1]
mov qword [rsp + 0x40], 0x10001000
lea rcx, str.367abb81_9844_35f1_ad32_98f038001003
mov byte [rsp + 0x48], sil
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x4c], 0x10000
mov r14d, 0x1000
mov dword [rsp + 0x74], 2
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x140003ef4
lea rdx, [rsp + 0x64]
mov dword [rsp + 0x60], 2
lea rcx, str.8a885d04_1ceb_11c9_9fe8_08002b104860
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x140003ef4
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rdi + 0x10]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003ef4
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rdi + 0x38]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003ef4
add dword [rbx + 8], esi
lea rcx, [rbp - 0x80]
mov edx, r14d
call fcn.140001ae8
mov rcx, qword [rbx]
lea r9, [rbp + 0xfb8]
mov r8d, r14d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003ef4
cmp word [rbp - 0x80], r15w
jne 0x140003ef4
cmp byte [rbp - 0x7e], 0xc
jne 0x140003ef4
cmp byte [rbp - 0x7d], 3
jne 0x140003ef4
movzx eax, word [rbp - 0x78]
cmp eax, dword [rbp + 0xfb8]
jne 0x140003ef4
mov eax, 0x100
cmp word [rbp - 0x68], ax
ja 0x140003ef4
movzx edx, word [rbp - 0x68]
lea r8, [rdx + 5]
and r8, 0xfffffffffffffffc
sub r8, rdx
sub r8, 2
mov r8d, r8d
add r8, rdx
cmp dword [rbp + r8 - 0x66], esi
jne 0x140003ef4
cmp word [rbp + r8 - 0x62], di
jne 0x140003ef4
mov eax, esi
jmp 0x140003ef6
xor eax, eax
mov rbx, qword [rsp + 0x10b0]
add rsp, 0x1080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004028
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.140016bf0
sub rsp, rax
xor esi, esi
mov r9d, edx
mov rbx, rcx
mov dword [rbp + 0xf60], esi
mov dword [rbp + 0xf70], esi
cmp dword [rcx + 0x10], esi
je 0x1400041ca
mov dword [rcx + 0x10], esi
cmp dword [rcx + 0xc], esi
jne 0x1400041ca
lea r10d, [rsi + 0x10]
mov edx, r10d
lea rcx, [rsp + 0x30]
call fcn.140001ae8
movzx eax, word [rbx + 0x814]
lea edx, [rsi + 8]
add ax, 0x18
mov dword [rsp + 0x30], 0x3000005
mov word [rsp + 0x38], ax
lea rcx, [rbp + 0xf78]
mov eax, dword [rbx + 8]
lea edi, [rsi + 5]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x34], r10d
mov word [rsp + 0x3a], si
call fcn.140001ae8
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
mov word [rbp + 0xf7e], r9w
mov r8d, r10d
lea r9, [rbp + 0xf60]
mov dword [rbp + 0xf78], esi
mov word [rbp + 0xf7c], si
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400041ca
mov rcx, qword [rbx]
lea r9, [rbp + 0xf60]
lea r8d, [rsi + 8]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0xf78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400041ca
mov r8d, dword [rbx + 0x814]
lea rdx, [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rbp + 0xf60]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400041ca
inc dword [rbx + 8]
lea rcx, [rsp + 0x40]
mov edx, 0x1000
call fcn.140001ae8
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
mov r8d, edx
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400041ca
cmp word [rsp + 0x40], di
jne 0x1400041ca
cmp byte [rsp + 0x42], 2
jne 0x1400041ca
cmp byte [rsp + 0x43], 3
jne 0x1400041ca
movzx edi, word [rsp + 0x48]
cmp edi, dword [rbp + 0xf70]
jne 0x1400041ca
cmp word [rsp + 0x54], si
jne 0x1400041ca
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x1400041ca
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x58]
call fcn.140019ce0
lea eax, [rsi + 1]
mov dword [rbx + 0x1018], edi
jmp 0x1400041cc
xor eax, eax
mov rbx, qword [rsp + 0x1068]
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005a20
Capabilities:
Query service status

Disassembly:
sub rsp, 0x68
lea rax, [rsp + 0x78]
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
mov ecx, 1
cmovne ecx, dword [rsp + 0x34]
mov eax, ecx
add rsp, 0x68
ret

Function at 0x140005a54
Capabilities:
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
lea rdx, str.ServicesActive
xor ebx, ebx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140005b29
lea r8d, [rbx + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005b20
mov rcx, rax
call fcn.140005a20
mov edi, eax
cmp eax, 4
je 0x140005b15
cmp eax, 6
je 0x140005ac2
cmp eax, 3
jne 0x140005ae6
mov ebp, 5
mov rcx, rsi
call fcn.140005a20
mov edi, eax
cmp eax, 4
je 0x140005b15
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 0xffffffff
jne 0x140005ac7
cmp edi, 1
jne 0x140005b17
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140005b17
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140005a20
cmp eax, 4
jne 0x140005b17
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140005b48
Capabilities:
Start service

Disassembly:
lea rcx, str.AppXSvc
jmp fcn.140005a54
Function at 0x140005bbc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rbx, rcx
lea rdx, [rbp + 0x180]
xor edi, edi
xor ecx, ecx
mov qword [rbp + 0x180], rdi
mov qword [rbp + 0x178], rdi
call fcn.14000eaf8
test eax, eax
js 0x140005d59
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rdi
lea rdx, str.ms_windows_store
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005c70
mov rcx, qword [rbp + 0x178]
lea r9d, [rdi + 1]
mov dword [rsp + 0x28], edi
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.ms_windows_store
lea rcx, [rsp + 0x50]
call fcn.140001ee0
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001d68
lea rdx, [0x1400265c0]
lea rcx, [rsp + 0x50]
call fcn.140001d68
lea rdx, str.command
lea rcx, [rsp + 0x50]
call fcn.140001d68
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005d45
mov rcx, rbx
call fcn.140001f50
mov rcx, qword [rbp + 0x178]
lea rdx, [0x140026778]
mov r9d, 1
xor r8d, r8d
lea rax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub edi, ebx
neg edi
sbb ebx, ebx
and ebx, 0xc000014d
jmp 0x140005d4a
mov ebx, 0xc000014d
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005f00
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rsi, r8
lea rax, [rsp + 0x68]
xor r14d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1c8], r14d
mov r9d, 0x2001b
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000603b
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000603b
cmp dword [rbp + 0x1c8], r14d
je 0x14000603b
mov edx, 0x20a
lea rcx, [rbp - 0x80]
call fcn.140001ae8
mov ebx, r14d
cmp dword [rbp + 0x1c8], r14d
jbe 0x14000603b
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], r14
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov edx, ebx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140006031
cmp dword [rsp + 0x60], 3
jne 0x14000602c
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400020d4
test rax, rax
je 0x14000602c
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x14000602c
inc edi
mov word [rbp - 0x80], r14w
inc ebx
cmp ebx, dword [rbp + 0x1c8]
jb 0x140005fbf
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x290]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140007c20
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov r14, rdx
xor r15d, r15d
lea rdx, [rsp + 0x50]
mov qword [rbp + 0x1a8], r15
xor ecx, ecx
mov rsi, r8
call fcn.14000eaf8
mov ebx, eax
test eax, eax
js 0x140007e05
mov edx, 0x208
lea rcx, [rsp + 0x60]
call fcn.140001ae8
lea rcx, [rsp + 0x60]
lea rdx, str.lzx32
call fcn.140001ee0
lea rdx, str._shellopen
lea rcx, [rsp + 0x60]
call fcn.140001d68
lea rdx, [0x1400265c0]
lea rcx, [rsp + 0x60]
call fcn.140001d68
lea rdx, str.command
lea rcx, [rsp + 0x60]
call fcn.140001d68
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007d30
mov rcx, rsi
call fcn.140001f50
mov rcx, qword [rbp + 0x1a8]
mov r9, rsi
xor edx, edx
lea rax, [rax*2 + 2]
mov dword [rsp + 0x20], eax
call fcn.14000ca60
mov rcx, qword [rbp + 0x1a8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x140007e05
lea rdx, str.ms_settings
mov qword [rbp + 0x1a8], r15
lea rcx, [rsp + 0x60]
call fcn.140001ee0
lea rdx, [0x1400265c0]
lea rcx, [rsp + 0x60]
call fcn.140001d68
lea rdx, str.CurVer
lea rcx, [rsp + 0x60]
call fcn.140001d68
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007e05
lea rcx, str.lzx32
call fcn.140001f50
mov rcx, qword [rbp + 0x1a8]
lea r9, str.lzx32
xor edx, edx
lea rax, [rax*2 + 2]
mov dword [rsp + 0x20], eax
call fcn.14000ca60
mov ebx, eax
test eax, eax
js 0x140007de8
mov rcx, r14
call fcn.14000cf54
test eax, eax
cmovne ebx, r15d
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
lea rdx, str.lzx32
call fcn.14000d624
cmp qword [rsp + 0x50], r15
je 0x140007e28
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
lea r11, [rsp + 0x270]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret