joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000150a
Capabilities:
Delete service
Persist via windows service
Set registry value

Disassembly:
jmp 0x180014a80
push rdi
sub rsp, 0x40
mov qword [rsp + 0x50], rbx
mov dl, 1
xor dil, dil
mov qword [rsp + 0x38], rbp
mov rbx, rcx
call fcn.180014bc0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
je 0x180014b19
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x180014b01
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
mov dil, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
jmp 0x180014b21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
jmp 0x180014b21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
call fcn.1800151a0
lea rax, [rsp + 0x60]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x180014ba1
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
lea rdx, str.DisableTaskOffload
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg dil
sbb eax, eax
neg eax
dec eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800016ef
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x180014940
push rbx
sub rsp, 0x30
xor edx, edx
call fcn.1800154e0
mov ebx, eax
test eax, eax
jne 0x1800149c9
movzx ecx, byte [0x18005a6b8]
not cl
and cl, 1
call fcn.1800151a0
lea rax, [rsp + 0x50]
lea r9d, [rbx + 2]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800149c7
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
lea r9d, [rbx + 4]
lea rdx, str.DisableTaskOffload
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1800017df
Capabilities:
Write file on windows

Disassembly:
jmp 0x180003b30
mov r9, r8
mov r8d, edx
mov rdx, rcx
mov ecx, 0x1c
jmp fcn.180007520
Function at 0x180001c1c
Capabilities:
Write file on windows

Disassembly:
jmp 0x180003b10
mov r9, r8
mov r8d, edx
mov rdx, rcx
mov ecx, 0x1d
jmp fcn.180007520

Function at 0x1800046d0
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x1800046d0
push rbx
sub rsp, 0x60
mov rax, qword [0x180058500]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1f0fff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180004782
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180004779
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x180004773
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x44], rax
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180019420
add rsp, 0x60
pop rbx
ret

Function at 0x1800054d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x18005a7d0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x180058030], 0xffffffffffffffff
je 0x18000556d
cmp qword [0x180058038], 0xffffffffffffffff
jne 0x18000556d
test rbx, rbx
je 0x18000556d
mov rcx, qword [0x180058018]
mov qword [0x18005a6b0], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x180058010]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x180058008]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x48]
lea r8, [0x180006c90]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call fcn.180018470
test rax, rax
jne 0x180005585
mov rcx, qword [0x180058010]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [0x180058038], 0xffffffffffffffff
or ebx, 0xffffffff
lea rcx, [0x18005a7d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x180058008]
or edx, 0xffffffff
mov qword [0x180058038], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x180005570
Function at 0x180005bc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180058020]
mov rbx, rcx
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x30], rax
mov rax, qword [0x180058018]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0xc]
add rax, 0x10
cmp rax, qword [0x18005aab8]
mov qword [rsp + 0x78], rax
jbe 0x180005c09
mov eax, 0xfffffffc
add rsp, 0x60
pop rbx
ret
cmp qword [0x180058030], 0xffffffffffffffff
je 0x180005d47
cmp qword [0x18005aab0], 0
je 0x180005d47
lea rcx, [0x18005a7f8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x18005aab0]
mov rdx, rbx
call fcn.180017de0
mov rcx, qword [0x180058030]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov rax, qword [0x180058020]
xor r9d, r9d
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
lea r8d, [r9 + 8]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180005cb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180005cb6
lea rcx, [0x18005a7f8]
mov ebx, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
xor r8d, r8d
lea rdx, [rsp + 0x30]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x180005cf5
mov rcx, qword [0x180058030]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rcx, [0x18005a7f8]
or ebx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
mov rcx, qword [0x180058018]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180058030]
test eax, eax
je 0x180005cd7
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x180005cdd
mov eax, dword [rsp + 0x70]
lea rcx, [0x18005a7f8]
neg eax
sbb ebx, ebx
neg ebx
dec ebx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
mov eax, 0xfffffffd
add rsp, 0x60
pop rbx
ret
Function at 0x180007520
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push r14
sub rsp, 0x70
test byte [r9 + 0x12], 1
mov rax, qword [0x180058020]
mov rbx, r9
mov qword [r11 - 0x50], rax
mov rax, qword [0x180058018]
movsxd rsi, r8d
mov rbp, rdx
mov r14d, ecx
mov dword [r11 + 0x20], 0
mov qword [r11 - 0x48], rax
je 0x18000756f
xor eax, eax
mov rbx, qword [r11 + 0x10]
add rsp, 0x70
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x90], rdi
lea edi, [rsi + 0x16]
movsxd rax, edi
add rax, 0x10
cmp rax, qword [0x18005aab8]
mov qword [rsp + 0x30], rax
jbe 0x180007599
mov eax, 0xfffffffc
jmp 0x180007706
cmp qword [0x180058030], 0xffffffffffffffff
je 0x180007701
cmp qword [0x18005aab0], 0
je 0x180007701
lea rcx, [0x18005a7f8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x18005aab0]
mov r8, rsi
mov qword [rcx + 4], 0
mov dword [rcx], r14d
mov dword [rcx + 0xc], edi
mov rax, qword [rbx]
add rcx, 0x26
mov rdx, rbp
mov qword [rcx - 0x16], rax
mov rax, qword [rbx + 8]
mov qword [rcx - 0xe], rax
mov eax, dword [rbx + 0x10]
mov dword [rcx - 6], eax
movzx eax, word [rbx + 0x14]
mov word [rcx - 2], ax
call fcn.180017de0
mov rcx, qword [0x180058030]
xor eax, eax
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov rax, qword [0x180058020]
lea r8d, [r9 + 8]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180007672
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180007672
lea rcx, [0x18005a7f8]
mov ebx, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x180007706
xor r8d, r8d
lea rdx, [rsp + 0x38]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1800076ad
mov rcx, qword [0x180058030]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rcx, [0x18005a7f8]
or ebx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x180007706
mov rcx, qword [0x180058018]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180058030]
test eax, eax
je 0x180007693
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x48]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x180007699
mov eax, dword [rsp + 0xa8]
lea rcx, [0x18005a7f8]
neg eax
sbb ebx, ebx
neg ebx
dec ebx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x180007706
mov eax, 0xfffffffd
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r14
pop rsi
pop rbp
ret
Function at 0x180013090
Capabilities:
Create thread
Get system information on windows

Disassembly:
jmp 0x180013090
push rbx
push rbp
push rdi
push r14
sub rsp, 0x68
mov r14, rcx
mov rcx, qword [rcx + 0x28]
mov rbx, r8
mov edi, edx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [r14], rbx
mov ebp, 1
test edi, edi
jg 0x1800130d4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rsp + 0x50]
test edi, edi
cmove edi, ebp
test edi, edi
jle 0x1800131bc
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r15
xor r15d, r15d
mov esi, edi
nop word [rax + rax]
lea rax, [rsp + 0x98]
lea r8, [0x180001848]
mov r9, r14
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call fcn.180018470
lea rcx, [rax - 1]
mov rdi, rax
mov qword [rsp + 0x90], rax
cmp rcx, 0xfffffffffffffffd
ja 0x1800131a6
mov rcx, qword [r14 + 0x10]
lea rax, [rsp + 0x90]
cmp rax, rcx
jae 0x180013183
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x90]
cmp rdx, rax
ja 0x180013183
lea rdi, [rsp + 0x90]
sub rdi, rdx
sar rdi, 3
cmp rcx, qword [r14 + 0x18]
jne 0x18001316d
lea rcx, [r14 + 8]
mov rdx, rbp
call fcn.180001005
mov rdx, qword [r14 + 0x10]
test rdx, rdx
je 0x1800131a1
mov rax, qword [r14 + 8]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
jmp 0x1800131a1
cmp rcx, qword [r14 + 0x18]
jne 0x180013195
lea rcx, [r14 + 8]
mov rdx, rbp
call fcn.180001005
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x1800131a1
mov qword [rax], rdi
add qword [r14 + 0x10], 8
dec rsi
jne 0x1800130f0
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0xa0]
movzx eax, bpl
add rsp, 0x68
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800148b0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1800148b0
sub rsp, 0x38
test cl, cl
je 0x1800148c5
test byte [0x18005a6b8], 1
jne 0x1800148c5
mov cl, 1
jmp 0x1800148c7
xor ecx, ecx
call fcn.1800151a0
lea rax, [rsp + 0x48]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180014933
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea rdx, str.DisableTaskOffload
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret

Function at 0x180014940
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x180014940
push rbx
sub rsp, 0x30
xor edx, edx
call fcn.1800154e0
mov ebx, eax
test eax, eax
jne 0x1800149c9
movzx ecx, byte [0x18005a6b8]
not cl
and cl, 1
call fcn.1800151a0
lea rax, [rsp + 0x50]
lea r9d, [rbx + 2]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800149c7
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
lea r9d, [rbx + 4]
lea rdx, str.DisableTaskOffload
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1800149e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1800149e0
push rbx
sub rsp, 0x30
call fcn.1800154e0
mov ebx, eax
test eax, eax
jne 0x180014a67
movzx ecx, byte [0x18005a6b8]
not cl
and cl, 1
call fcn.1800151a0
lea rax, [rsp + 0x58]
lea r9d, [rbx + 2]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180014a65
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
lea r9d, [rbx + 4]
lea rdx, str.DisableTaskOffload
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x180014a80
Capabilities:
Delete service
Persist via windows service
Set registry value

Disassembly:
jmp 0x180014a80
push rdi
sub rsp, 0x40
mov qword [rsp + 0x50], rbx
mov dl, 1
xor dil, dil
mov qword [rsp + 0x38], rbp
mov rbx, rcx
call fcn.180014bc0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
je 0x180014b19
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x180014b01
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
mov dil, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
jmp 0x180014b21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
jmp 0x180014b21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
call fcn.1800151a0
lea rax, [rsp + 0x60]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x180014ba1
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
lea rdx, str.DisableTaskOffload
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg dil
sbb eax, eax
neg eax
dec eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800151a0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x30]
movzx ebx, cl
lea rdx, str.SYSTEMCurrentControlSetServicesTcpip6Parameters
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1800151dc
xor al, al
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x180044ae0]
xor r8d, r8d
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edi, edi
test eax, eax
jne 0x180015227
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x60], edi
jne 0x180015229
mov eax, edi
test bl, bl
je 0x180015232
or eax, 8
jmp 0x180015235
and eax, 0xfffffff7
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
lea rdx, str.DisabledComponents
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
test ebx, ebx
sete al
add rsp, 0x40
pop rbx
ret
Function at 0x1800154e0
Capabilities:
Create service
Query service status
Start service

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x4d0
mov rax, qword [0x180058500]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rbp, rcx
mov r9, rcx
mov rsi, rdx
lea rcx, [rsp + 0x2b0]
lea r8, [0x180044b88]
xor ebx, ebx
mov edx, 0x104
xor dil, dil
mov dword [rsp + 0x70], ebx
call fcn.1800195f4
mov edx, 0x104
lea rcx, [rsp + 0xa0]
test rsi, rsi
je 0x180015553
lea r8, str._S_S.sys
mov r9, rsi
mov qword [rsp + 0x20], rbp
call fcn.1800195f4
jmp 0x180015562
lea r8, str.system32drivers_S.sys
mov r9, rbp
call fcn.1800195f4
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
jne 0x180015582
or eax, 0xffffffff
jmp 0x1800156e0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x510], r15
mov r15d, 1
mov qword [rsp + 0x48], rax
lea rax, str.PNP_TDI
lea r8, [rsp + 0x2b0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
lea rdx, [rsp + 0x2b0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov r9d, 0xf01ff
mov rcx, r14
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test byte [0x18005a6b8], 8
mov rsi, rax
je 0x18001562f
test rax, rax
je 0x180015613
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx edi, r15b
jmp 0x1800156b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x431
jne 0x1800156b4
movzx edi, r15b
jmp 0x1800156b4
test rax, rax
je 0x180015639
mov rcx, rax
jmp 0x180015684
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x431
jne 0x1800156b4
mov r8d, 0x14
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x1800156ac
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180015681
cmp dword [rsp + 0x7c], 4
jne 0x180015681
movzx edi, r15b
jmp 0x180015699
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
movzx edi, dil
test eax, eax
cmovne edi, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800156b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
mov rcx, rbp
call fcn.180014bc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rsp + 0x510]
neg dil
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.180019420
add rsp, 0x4d0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180015710
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x180058500]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov eax, dword [str.NDIS]
mov r9, rcx
movzx ebx, dl
mov dword [rsp + 0x38], eax
movzx eax, byte [0x180044bec]
lea r8, [0x180044990]
mov byte [rsp + 0x3c], al
mov eax, dword [str.tcpip]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], eax
movzx eax, word [0x180044aa0]
mov edx, 0x104
mov word [rsp + 0x44], ax
movzx eax, byte [0x180044aa2]
mov byte [rsp + 0x46], al
movabs rax, 0x4944545f504e50
mov qword [rsp + 0x48], rax
call fcn.180019520
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1800157bc
xor al, al
jmp 0x180015844
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov r9d, 1
test bl, bl
je 0x180015811
lea rax, [rsp + 0x38]
lea rdx, [0x1800449b8]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], 7
lea rax, [rsp + 0x40]
mov r9d, 7
xor r8d, r8d
lea rdx, str.DependOnService
jmp 0x180015825
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x48]
lea rdx, str.Group
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180019420
add rsp, 0x170
pop rbx
ret
Function at 0x140083330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140045610]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret

Function at 0x140083390
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x28
ret