joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14005956d
xor al, al
jmp 0x1400596cf
mov rax, qword [0x1400796c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400796c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400796d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400796d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400796e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400796e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400796f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400796f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140079700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400596c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140059619
mov r11d, 2
jmp 0x14005963d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140059633
mov r11d, 1
jmp 0x14005963d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400596e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140059682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14005969a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400596aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400596b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140059600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400596ca
Function at 0x140f77fe9
Capabilities:
Execute anti-debugging instructions

Disassembly:
not eax
neg eax
cmp dl, bh
test bl, r11b
push rsi
adc si, 0x20d4
shld rsi, rbp, 0x99
xor dword [rsp], eax
pop rsi
cmc
movsxd rax, eax
test r14b, r8b
add rbx, rax
jmp 0x141009514
ror r8d, 2
xor r8d, 0x545422b
movzx r11w, cl
bswap edx
bswap r8d
rdtsc
mov rbp, rbx
inc r8d
cmc
setbe bl
bswap dx
rol r8d, 2
sub dx, 0x3c14
rcr rsi, cl
test dl, 0x6b
add r8, rcx
shr dh, cl
movabs rbp, 0x100000000
rcr r11, 0xe9
lea r8, [r8 + rbp]
mov r11, rsp
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
mov rsi, r8
movabs rdx, 0
test bpl, r15b
sub rsi, rdx
xor bx, di
neg al
lea rbx, [0x140efe44f]
rcl ah, 0x27
mov eax, dword [r8]
jmp 0x140f476c9
add r8, 4
cmc
xor eax, esi
sub eax, 0x42c3512
jmp 0x140f70107
xor eax, 0x37562b14
not eax
clc
test r8b, 0xf0
add eax, 0x616a40cd
jmp 0x140edf4d4
push rbx
bswap bx
not bh
push rcx
movzx ebx, r10w
seta bl
mov bh, 0xb8
push rax
cbw
movsx ax, dil
movzx rcx, di
push r14
seto cl
push r15
push r10
movzx bx, r11b
cbw
bswap ecx
pushfq
movsxd rcx, eax
push r11
movsx bx, r12b
push r13
cmovno bx, bx
jmp 0x140ffcc66
push r9
bswap cx
cbw
movzx ecx, si
push rdi
movzx rbx, bp
push r12
not bh
movzx rcx, cx
push rdx
push rsi
rdtsc
push r8
cmova rcx, rdx
movsx si, r8b
push rbp
dec r8b
cwde
movabs rcx, 0
mov bh, 0x4e
inc bx
cdq
push rcx
cwd
mov r8, qword [rsp + 0x90]
movzx esi, r10w
dec r8d
cmovnp ax, cx
jmp 0x140efe3dc
push rbx
ret
Function at 0x141ab59a5
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, 0x37562b14
not eax
clc
test r8b, 0xf0
add eax, 0x616a40cd
jmp 0x141b93af1
push rbx
bswap bx
not bh
push rcx
movzx ebx, r10w
seta bl
mov bh, 0xb8
push rax
cbw
movsx ax, dil
movzx rcx, di
push r14
seto cl
push r15
push r10
movzx bx, r11b
cbw
bswap ecx
pushfq
movsxd rcx, eax
push r11
movsx bx, r12b
push r13
cmovno bx, bx
jmp 0x141b622ad
add r8, 4
cmc
xor eax, esi
sub eax, 0x42c3512
jmp 0x141aa62aa
push r9
bswap cx
cbw
movzx ecx, si
push rdi
movzx rbx, bp
push r12
not bh
movzx rcx, cx
push rdx
push rsi
rdtsc
push r8
cmova rcx, rdx
movsx si, r8b
push rbp
dec r8b
cwde
movabs rcx, 0
mov bh, 0x4e
inc bx
cdq
push rcx
cwd
mov r8, qword [rsp + 0x90]
movzx esi, r10w
dec r8d
cmovnp ax, cx
jmp 0x141ba61ba
not eax
neg eax
cmp dl, bh
test bl, r11b
push rsi
adc si, 0x20d4
shld rsi, rbp, 0x99
xor dword [rsp], eax
pop rsi
cmc
movsxd rax, eax
test r14b, r8b
add rbx, rax
jmp 0x141b9f71f
push rbx
ret
ror r8d, 2
xor r8d, 0x545422b
movzx r11w, cl
bswap edx
bswap r8d
rdtsc
mov rbp, rbx
inc r8d
cmc
setbe bl
bswap dx
rol r8d, 2
sub dx, 0x3c14
rcr rsi, cl
test dl, 0x6b
add r8, rcx
shr dh, cl
movabs rbp, 0x100000000
rcr r11, 0xe9
lea r8, [r8 + rbp]
mov r11, rsp
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
mov rsi, r8
movabs rdx, 0
test bpl, r15b
sub rsi, rdx
xor bx, di
neg al
lea rbx, [0x141ba622d]
rcl ah, 0x27
mov eax, dword [r8]
jmp 0x141b56441
Function at 0x140001620
Capabilities:
Create pipe

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
test rcx, rcx
jne 0x140001636
xor eax, eax
add rsp, 0x60
pop rsi
ret
mov edx, 1
xor r9d, r9d
xor ecx, ecx
mov r8d, edx
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001678
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_event:__d_n
mov edx, eax
call fcn.14000bf78
mov rbp, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x60
pop rsi
ret
mov ecx, 0x28
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rdi
call fcn.14000c124
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400016b0
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
jmp 0x1400016b3
mov rbx, rdi
xor eax, eax
lea r8, [rsp + 0x48]
lea rcx, str.D:_A_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_S:_ML__NW___ME_
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x18], rbp
lea edx, [rax + 1]
xor r9d, r9d
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], edi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
xor ecx, ecx
call fcn.140009b90
lea rcx, [rsp + 0x40]
mov r9d, 0xff
cmp eax, 8
mov edx, 0x40000003
cmovle rcx, rdi
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x1388
mov rcx, rsi
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001754
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed_with__d._n
mov edx, eax
call fcn.14000bf78
xor eax, eax
jmp 0x14000177c
mov ecx, 0x448
call fcn.14000c124
test rax, rax
je 0x140001779
mov r8, rsi
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.1400017a0
mov rdi, rax
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret

Function at 0x140001890
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov r8d, 0x200
add rcx, 0x2c
call fcn.14000e2b0
cmp dword [rbx + 8], 1
jne 0x1400018dd
lea rax, [0x140002010]
test rax, rax
je 0x1400018dd
mov r9, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
lea rdx, [rbx + 0x2c]
mov r8d, 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001f50
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rsi, rcx
mov ecx, 0xa8
call fcn.14000c124
mov qword [rsp + 0x70], rax
xor ebp, ebp
test rax, rax
je 0x140001f8f
mov rcx, rax
call fcn.1400020c0
mov rbx, rax
jmp 0x140001f92
mov rbx, rbp
mov rcx, rbx
call fcn.1400023b0
test eax, eax
je 0x140001ffa
mov edi, 0x3d
mov rcx, rsi
call fcn.140001620
mov rdx, rax
mov rcx, rbx
call fcn.140002940
dec rdi
jne 0x140001fa3
cmp dword [rbx + 8], edi
je 0x140001ffa
cmp dword [rbx + 0xc], edi
jne 0x140001ffa
mov dword [rsp + 0x68], ebp
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140002460]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x78], rax
cmp rax, 0xffffffffffffffff
setne bpl
mov dword [rbx + 0xc], ebp
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400026f0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140002712
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rdx + 0x20]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140002705
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14000277e
cmp eax, 0x3e5
jne 0x140002705
mov rax, qword [rbx + 0x18]
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 1
call fcn.140003a20
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x10]
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140003a50
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x20]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140004160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140004193
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400041d9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400041d4
nop
cmp rbx, rcx
jae 0x1400041d9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1400041c0
cmp rbx, rcx
jb 0x1400041dd
xor eax, eax
jmp 0x1400041e9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009430
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdx, qword [rcx + 8]
xorps xmm0, xmm0
mov rdi, rcx
xor ecx, ecx
movzx esi, r8w
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400094b8
mov rcx, qword [rdi + 8]
mov edx, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rbx
movzx edx, si
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1400094d0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14002e2c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140008f70
mov rdx, qword [rdi + 8]
xor ecx, ecx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140009582
mov rcx, qword [rdi + 8]
mov r9d, 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
lea edx, [r9 - 1]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
mov qword [rsp + 0x20], rcx
xor r8d, r8d
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000b820
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x1400095b0
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
push rsi
sub rsp, 0x298
mov rax, qword [0x14002e2c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x72]
mov r8d, 0x106
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd rcx, eax
test eax, eax
jne 0x140009602
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
jmp 0x140009678
lea eax, [rcx + 2]
mov edx, 0x22
mov word [rsp + rcx*2 + 0x72], dx
movsxd rcx, eax
mov word [rsp + 0x70], dx
add rcx, rcx
cmp rcx, 0x20c
jae 0x140009736
mov qword [rsp + 0x2c0], rbp
xor ebp, ebp
xor edx, edx
mov word [rsp + rcx + 0x70], bp
lea r8d, [rbp + 3]
xor ecx, ecx
mov qword [rsp + 0x290], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140009692
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
mov rbp, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b820
add rsp, 0x298
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rbp
lea rax, [0x1400280bc]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x70]
mov r9d, 4
mov r8, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
test rax, rax
jne 0x140009707
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
jmp 0x140009716
lea rcx, str._s_is_installed._n
mov rdx, rsi
call fcn.14000ce30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140009668
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140009668
call fcn.14000cc48
int3
Function at 0x140009740
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002e2c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xor edx, edx
lea r8d, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400097a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
jmp 0x1400098cf
mov r8d, 0x10024
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400097e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400098b3
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
jmp 0x1400098b3
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140009881
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.14000ce30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140009862
nop word [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140009866
lea rcx, [0x14002813c]
call fcn.14000ce30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140009830
mov eax, dword [rsp + 0x24]
mov rdx, rdi
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x14000987c
lea rcx, str._n_s_failed_to_stop._n
call fcn.14000ce30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400098a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
jmp 0x1400098b3
lea rcx, str._s_is_removed._n
mov rdx, rdi
call fcn.14000ce30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400098ca
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b820
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400098f0
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002e2c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xor edx, edx
lea r8d, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140009950
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
jmp 0x140009a3d
mov r8d, 0x24
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140009993
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x140009a21
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
jmp 0x140009a21
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140009a21
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.14000ce30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140009a02
nop dword [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140009a06
lea rcx, [0x14002813c]
call fcn.14000ce30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400099d0
mov eax, dword [rsp + 0x24]
mov rdx, rdi
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x140009a1c
lea rcx, str._n_s_failed_to_stop._n
call fcn.14000ce30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140009a38
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b820
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140009a60
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov ebp, edx
mov rsi, rcx
test edx, edx
je 0x140009a87
neg r8d
sbb ebx, ebx
add ebx, 3
jmp 0x140009a91
mov ebx, 4
call fcn.1400098f0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140009ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14000ce30
jmp 0x140009b74
mov r8d, 2
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140009af0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14000ce30
jmp 0x140009b6b
xor eax, eax
or r9d, 0xffffffff
mov r8d, ebx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
or edx, r9d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140009b42
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000ce30
jmp 0x140009b62
lea rax, str.enabled
test ebp, ebp
lea rdx, str.disabled
lea rcx, str.Service__s_successfully._n
cmovne rdx, rax
call fcn.14000ce30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14000af40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test r9, r9
je 0x14000af69
mov r14d, dword [r9]
test rdx, rdx
je 0x14000b033
test r8, r8
je 0x14000b033
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000b024
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x14000afc1
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b024
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x14000b001
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x14000b024
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x14000b01b
cmp eax, 3
jne 0x14000b020
cmp dword [rsp + 0x68], 4
jne 0x14000b020
mov ebx, 1
mov eax, ebx
jmp 0x14000b035
test rdi, rdi
je 0x14000b033
mov dword [rsi], r14d
mov eax, 1
jmp 0x14000b035
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000b050
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r14, r9
mov rdi, r8
mov r15, rdx
mov r12d, esi
test rdx, rdx
je 0x14000b1ff
test r8, r8
je 0x14000b1ff
test r9, r9
je 0x14000b1ff
mov rcx, qword [rcx + 0x10]
mov qword [r11 + 8], rbx
or rbx, 0xffffffffffffffff
mov qword [r11 + 0x18], rbp
test rcx, rcx
je 0x14000b1af
mov rbp, qword [rsp + 0x98]
mov r12d, dword [r9]
mov qword [r11 - 0x38], rcx
test rbp, rbp
je 0x14000b0dc
lea rax, [r11 - 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b1af
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbp, rbp
je 0x14000b10a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x78]
cmp ecx, 2
jne 0x14000b17c
mov eax, 2
mul r12
cmovo rax, rbx
mov rcx, rax
call fcn.14000b7f8
mov rbp, rax
test rax, rax
je 0x14000b178
mov r8d, r12d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rdi
mov rcx, rbp
sub rdx, rbp
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14000b150
mov rax, rbx
inc rax
cmp word [rdi + rax*2], si
jne 0x14000b164
mov rcx, rbp
mov dword [r14], eax
call fcn.14000b800
mov ecx, dword [rsp + 0x78]
test r15d, r15d
jne 0x14000b1af
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14000b18e
cmp ecx, 7
jne 0x14000b193
mov esi, 1
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14000b1fb
nop dword [rax]
cmp word [rcx + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x14000b1c0
lea edx, [rbx*2 + 2]
cmp edx, r12d
ja 0x14000b1fb
sub rdi, rcx
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdi + rcx - 2], ax
test ax, ax
jne 0x14000b1e0
mov dword [r14], edx
mov eax, 1
jmp 0x14000b195
xor eax, eax
jmp 0x14000b195
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret