joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f5b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000f5bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000f5cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000f5b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000f5e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000f5d2
sub eax, 3
jb 0x14000f5ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000f636
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000f626
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000f624
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000f613
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000f572
jmp 0x14000f5bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2400
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000f682
cmp rsi, rcx
jae 0x14000f68a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000f669
cmp al, 0x8f
ja 0x14000f669
cmp byte [rsi - 2], 0xf
je 0x14000f66f
sub al, 0xe8
cmp al, 1
ja 0x14000f653
cmp rsi, rcx
jae 0x14000f68a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000f659
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000f68a
lodsb al, byte [rsi]
jmp 0x14000f669
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd000]
mov eax, dword [rdi]
or eax, eax
je 0x14000f6e7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000f697
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000f6e1
mov qword [rbx], rax
add rbx, 8
jmp 0x14000f6b7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000f721
cmp al, 0xef
ja 0x14000f713
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000f6f3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000f702
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14000f7a0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14000f7a0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000f790
sub rsp, 0xffffffffffffff80
jmp 0x1400013d0
Function at 0x1405e5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405e51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405e5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405e506f
add dl, dl
jne 0x1405e5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405e50f6
xor eax, eax
add dl, dl
jne 0x1405e50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405e51ad
add dl, dl
jne 0x1405e50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405e50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405e50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405e50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405e50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405e507e
mov eax, 1
add dl, dl
jne 0x1405e5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405e5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405e50fb
sub eax, ebx
mov ebx, 1
jne 0x1405e514c
mov ecx, 1
add dl, dl
jne 0x1405e512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405e513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405e5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405e507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405e5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405e5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405e515d
cmp eax, 0x7d00
jae 0x1405e519b
cmp eax, 0x500
jb 0x1405e5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405e507e
cmp eax, 0x7f
ja 0x1405e519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405e507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405e51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405e507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14013a000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x1400130a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
jmp 0x1400118c0
push rbp
push rsi
push rdi
sub rsp, 0x430
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x1400230a5]
call fcn.140011384
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x14001193d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.WSAStartup__
call fcn.14001119a
nop
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rax, [rbp + 0x1f0]
lea rcx, str.www.sina.com.cn
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x200]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
jne 0x1400119b0
lea rdx, [rbp + 0x1f0]
lea rcx, str.gethostbyname__
call fcn.14001119a
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rax, qword [rbp + 0x258]
movsx eax, word [rax + 0x10]
mov rcx, qword [rbp + 0x258]
movsx ecx, word [rcx + 0x12]
mov r9d, eax
mov r8d, ecx
mov rax, qword [rbp + 0x258]
mov rdx, qword [rax]
lea rcx, [0x14001ad70]
call fcn.14001119a
nop
lea rcx, [0x14001ada8]
call fcn.14001119a
nop
mov rax, qword [rbp + 0x258]
mov rax, qword [rax + 8]
mov qword [rbp + 0x278], rax
jmp 0x140011a16
mov rax, qword [rbp + 0x278]
add rax, 8
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
cmp qword [rax], 0
je 0x140011a3c
mov rax, qword [rbp + 0x278]
mov rdx, qword [rax]
lea rcx, [0x14001adc4]
call fcn.14001119a
nop
jmp 0x140011a04
lea rcx, [0x14001adc8]
call fcn.14001119a
nop
mov rax, qword [rbp + 0x258]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x278], rax
jmp 0x140011a6f
mov rax, qword [rbp + 0x278]
add rax, 8
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
cmp qword [rax], 0
je 0x140011aa0
mov rax, qword [rbp + 0x278]
mov rax, qword [rax]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [0x14001adc4]
call fcn.14001119a
nop
jmp 0x140011a5d
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acc0]
call fcn.140011316
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.1400111b3
lea rsp, [rbp + 0x410]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400143f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014410
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014423
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001444d
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014461
xor al, al
jmp 0x140014491
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014473
xor al, al
jmp 0x140014491
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001448f
xor al, al
jmp 0x140014491
mov al, 1
add rsp, 0x38
ret
Function at 0x1400122e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113ac
movzx eax, al
test eax, eax
jne 0x140012300
mov ecx, 7
call fcn.140011320
nop
mov byte [rsp + 0x20], 0
call fcn.140011334
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012324
mov ecx, 7
call fcn.140011320
nop
jmp 0x14001237c
cmp dword [0x14001d868], 0
jne 0x140012377
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119f
test eax, eax
je 0x140012358
mov eax, 0xff
jmp 0x140012481
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132a
mov dword [0x14001d868], 2
jmp 0x14001237c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400123d9
mov rcx, qword [rsp + 0x30]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x1400123d9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001240d
mov rcx, qword [rsp + 0x38]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x14001240d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001136b
nop
call fcn.140012530
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001242c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001243b
call fcn.140011375
nop
xor edx, edx
mov cl, 1
call fcn.140011140
mov eax, dword [rsp + 0x28]
jmp 0x140012481
add rsp, 0x68
ret
Function at 0x140006af0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006b20
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006b1f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006b25
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006b1f
mov eax, 0
jmp 0x140006b1f

Function at 0x1400071a0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007150
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011390
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140590530]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400113ff
mov rcx, r9
call fcn.140011260
test eax, eax
je 0x1400113ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400113fd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400113f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400113ff
add rdx, 0x28
cmp rdx, r9
jne 0x1400113e0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140003a70
Capabilities:
Modify service

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
mov ebx, edx
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 2]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140003c1a
lea rdx, [0x14004d2a8]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0x80], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140003c09
test ebx, ebx
je 0x140003b23
dec ebx
je 0x140003ad1
dec ebx
jne 0x140003c00
xor eax, eax
or r9d, 0xffffffff
lea rcx, str.LocalSystem
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
lea rcx, str.SENS
or r8d, r9d
or edx, r9d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rcx, str.ProfSvc_Group
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x140003be6
mov qword [rsp + 0x88], r14
lea r14, [rdi + 0xaa8]
mov r8d, 0x400
mov rdx, r14
mov ecx, 0x66
call fcn.140002e70
lea rbx, [rdi + 0x2a8]
mov r8d, 0x400
mov rdx, rbx
mov ecx, 0x65
call fcn.140002e70
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140003b97
lea r8, str.Failed_to_change_the_description_of_service
lea rdx, [0x140033930]
mov rcx, rdi
call fcn.1400059d0
xor eax, eax
mov qword [rsp + 0x50], r14
lea rcx, str.SENS
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rcx, str.ProfSvc_Group
or r9d, 0xffffffff
mov qword [rsp + 0x28], rcx
lea r8d, [rax + 2]
mov rcx, rsi
or edx, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov r14, qword [rsp + 0x88]
test eax, eax
jne 0x140003c00
lea r8, str.Failed_to_change_the_service_config
lea rdx, [0x140033930]
mov rcx, rdi
call fcn.1400059d0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret

Function at 0x140004430
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000445e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007230
cmp byte [0x14004d1d0], 0
jne 0x1400044a9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004499
lea rdx, [0x140033090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004d1d0], 1
mov qword [0x14004d1c8], rax
jmp 0x1400044b0
mov rax, qword [0x14004d1c8]
mov byte [0x14004d1d0], 1
jmp 0x1400044b0
mov rax, qword [0x14004d1c8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400044cf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140005270
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x14004a110]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400056a0
test eax, eax
je 0x1400052a1
mov eax, 1
jmp 0x1400053a8
lea rdx, [rsp + 0x72]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000549e
cmp eax, 0x104
je 0x14000549e
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 0x1400054e7
mov qword [rsp + 0xaa8], rbx
mov qword [rsp + 0xab0], rsi
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400053c1
lea rdx, [rsp + 0x280]
mov r8d, 0x400
mov ecx, 0xd80a
call fcn.140002e70
test eax, eax
jne 0x14000537f
lea r8, str.Could_not_open_Service_Manager
lea rcx, [rsp + 0x280]
mov edx, 0x400
call fcn.140018870
test eax, eax
je 0x14000537f
cmp eax, 0xc
je 0x1400054bb
cmp eax, 0x16
je 0x1400054b0
cmp eax, 0x22
je 0x1400054b0
cmp eax, 0x50
jne 0x1400054a5
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.140017a00
add rsp, 0xa90
pop rdi
ret
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]
add rdi, 0x68
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r8, rdi
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140005482
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0x280]
mov r8d, 0x400
mov ecx, 0xd80b
call fcn.140002e70
test eax, eax
jne 0x140005477
lea r8, str.Could_not_start_service
lea rcx, [rsp + 0x280]
mov edx, 0x400
call fcn.140018870
test eax, eax
je 0x140005477
cmp eax, 0xc
je 0x1400054dc
cmp eax, 0x16
je 0x1400054d1
cmp eax, 0x22
je 0x1400054d1
cmp eax, 0x50
jne 0x1400054c6
xor r9d, r9d
mov r8, rdi
jmp 0x140005386
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140005398
xor eax, eax
jmp 0x1400053a8
mov ecx, 0x80004005
call fcn.1400038f0
int3
mov ecx, 0x80070057
call fcn.1400038f0
int3
mov ecx, 0x8007000e
call fcn.1400038f0
int3
mov ecx, 0x80004005
call fcn.1400038f0
int3
mov ecx, 0x80070057
call fcn.1400038f0
int3
mov ecx, 0x8007000e
call fcn.1400038f0
int3
call fcn.140018100
int3
Function at 0x140005940
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
ja 0x140005987
je 0x14000597e
test eax, eax
je 0x140005975
sub eax, 5
je 0x14000596c
dec eax
jne 0x140005998
lea r8, str._The_specified_handle_is_invalid
jmp 0x1400059ba
lea r8, str.The_handle_does_not_have_access_to_the_service
jmp 0x1400059ba
lea r8, str.Success
jmp 0x1400059ba
lea r8, str.A_specified_parameter_is_invalid
jmp 0x1400059ba
sub eax, 0x7b
je 0x1400059b3
sub eax, 0x3a9
je 0x1400059aa
cmp eax, 5
je 0x1400059a1
lea r8, str.Unknown_error
jmp 0x1400059ba
lea r8, str.The_specified_database_does_not_exist.
jmp 0x1400059ba
lea r8, str._The_specified_service_does_not_exist
jmp 0x1400059ba
lea r8, str._The_specified_service_name_is_invalid
lea rdx, [0x140033930]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400059d0

Function at 0x1400059d0
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 rdi
sub rsp, 0x278
mov rax, qword [0x14004a110]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r9, rdx
mov edx, 0x100
mov rbx, rcx
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x60]
lea r8d, [rdx - 1]
mov qword [rsp + 0x20], rax
call fcn.140018a90
xor edi, edi
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], di
mov qword [rsp + 0x50], rax
cmp dword [rbx + 0x28c], edi
jne 0x140005a42
lea rcx, [rsp + 0x60]
call fcn.1400189a8
lea rdx, [rbx + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140005a93
mov qword [rsp + 0x40], rdi
mov ecx, 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov word [rsp + 0x28], cx
lea edx, [rcx + 3]
xor r8d, r8d
xor r9d, r9d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
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.140017a00
add rsp, 0x278
pop rdi
pop rbx
ret