joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008604
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rax, [0x1800de000]
mov rdi, rdx
mov qword [r11 - 0x28], rbx
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov qword [r11 - 0x20], rax
mov rbp, r8
mov ecx, dword [rdx]
test ecx, ecx
je 0x180008751
sub ecx, 1
je 0x1800086da
sub ecx, 2
je 0x1800086ab
cmp ecx, 3
jne 0x18000882b
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x1800086ff
cmp qword [rsi], rbx
je 0x180008683
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rsi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x18000882b
mov rax, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rdi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x18000882b
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x1800086ff
mov rcx, qword [rdx + 8]
mov r9d, ebp
mov dword [rsp + 0x30], ebx
mov edx, 0x22c187
mov qword [rsp + 0x28], rbx
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rsi
call fcn.18000765c
jmp 0x1800086a4
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x1800086ff
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1800086a4
mov rdx, rbp
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18000882b
mov r8, rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.180008604
test eax, eax
je 0x180008741
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180008604
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000882b
mov rdx, qword [rdi + 8]
mov ecx, dword [rdx]
test ecx, ecx
je 0x18000881b
sub ecx, 1
je 0x1800087fb
sub ecx, 1
je 0x1800087e1
sub ecx, 1
je 0x1800087bf
cmp ecx, 3
jne 0x18000882b
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rdi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x18000882b
mov rax, qword [rdi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rsi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1800086a4
mov rcx, qword [rdx + 8]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, 0x22c183
jmp 0x1800086c8
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov rcx, qword [rcx]
call fcn.180008e6c
jmp 0x1800086a4
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rsi]
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x1800086a4
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.180071560
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008c34
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r10d, r10d
mov rcx, qword [rcx + 8]
mov rbx, r9
mov r11d, dword [rcx]
test r11d, r11d
je 0x180008c7b
cmp r11d, 1
jne 0x180008c9b
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, r8d
mov qword [rsp + 0x20], rax
mov r8, rdx
mov rdx, qword [rdi]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x180008c89
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10d, eax
test eax, eax
je 0x180008c9b
test rbx, rbx
je 0x180008c9b
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov eax, r10d
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180008cac
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0x80]
mov r15, rcx
mov ebp, edx
xor ebx, ebx
mov r14, r9
mov rsi, r8
mov edx, dword [rax]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180008d44
mov edx, ebp
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x180008d3b
mov qword [rsp + 0x38], rdi
mov ecx, 0x102
mov qword [rsp + 0x30], r14
mov r9, rax
mov dword [rsp + 0x28], 0x1000
mov r8d, ebp
mov rdx, r15
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_RtlCompressBuffer]
test eax, eax
setns bl
test ebx, ebx
jne 0x180008d3b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x180008d60
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rdx
mov rsi, rcx
lea edx, [rdi + 0x10]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180008e22
and qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
and dword [rsp + 0x20], edi
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax], rcx
mov rax, qword [rbx]
mov rcx, qword [rax]
test rcx, rcx
je 0x180008e02
and qword [rsp + 0x20], rdi
lea edx, [rdi + 4]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x180008e02
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
cmp dword [rcx], 0x504d444d
jne 0x180008e02
mov eax, 0xa793
cmp word [rcx + 4], ax
jne 0x180008e02
mov edi, 1
jmp 0x180008e22
mov rbx, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180008e14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180008e22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180009644
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, ecx
mov rdx, qword [rdx]
mov ebx, 0xc0000004
test rdx, rdx
je 0x180009678
lea r9, [rax + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
jmp 0x1800096be
mov edi, 0x1000
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x1800096be
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x1800096b4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp ebx, 0xc0000004
je 0x18000967d
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18000a32c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xd0
mov r15d, r8d
mov rsi, rdx
mov edi, ecx
xor r14d, r14d
xor edx, edx
lea rcx, [rax - 0x78]
or r15d, 0x10
lea ebx, [r14 + 0x68]
mov r8d, ebx
call fcn.180071c60
mov dword [rsp + 0x60], ebx
cmp qword [rsp + 0x120], r14
je 0x18000a381
mov rbx, qword [rsp + 0x120]
jmp 0x18000a392
mov edx, Ordinal_27
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov rcx, rsi
call fcn.180075aec
mov rsi, rax
test rax, rax
je 0x18000a4c1
test edi, edi
je 0x18000a446
sub edi, 1
je 0x18000a40c
cmp edi, 1
jne 0x18000a47d
mov r9d, dword [rsp + 0x100]
lea rax, [rsp + 0x60]
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], r14
and qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
jmp 0x18000a47a
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
xor r9d, r9d
and qword [rsp + 0x40], r14
mov r8, rsi
and qword [rsp + 0x38], r14
xor edx, edx
mov dword [rsp + 0x30], r15d
xor ecx, ecx
and dword [rsp + 0x28], r14d
and qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x18000a47a
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], r14
xor r8d, r8d
and qword [rsp + 0x30], r14
mov rdx, rsi
mov dword [rsp + 0x28], r15d
xor ecx, ecx
and dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r14d, eax
cmp dword [rsp + 0x128], 0
jne 0x18000a492
cmp qword [rsp + 0x120], 0
jne 0x18000a4b9
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x120], 0
jne 0x18000a4b9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call fcn.180075b70
lea r11, [rsp + 0xd0]
mov eax, r14d
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x18000aa38
Capabilities:
Read file via mapping

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, 0x30
mov rax, qword [r9]
xor edi, edi
mov rsi, r9
mov ebp, r8d
mov r14, rdx
mov dword [rax], ecx
test ecx, ecx
je 0x18000ab7f
cmp ecx, 1
jne 0x18000ab74
lea edx, [rdi + 0x20]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x18000ab74
mov rbx, rax
mov qword [rsp + 0x28], rdi
mov eax, ebp
mov dword [rsp + 0x20], edi
neg eax
mov rcx, r14
sbb r8d, r8d
xor r9d, r9d
and r8d, 2
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
cmp qword [rax], rdi
je 0x18000ab74
mov rcx, qword [rax]
neg ebp
mov rbx, qword [rsi]
sbb edx, edx
mov qword [rsp + 0x20], rdi
and edx, 0xfffffffe
xor r9d, r9d
add edx, 4
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax + 8], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18000ab74
cmp dword [rcx], 0x66676572
jne 0x18000ab56
cmp dword [rcx + 0x1c], edi
jne 0x18000ab56
add rcx, 0x1000
cmp dword [rcx], 0x6e696268
jne 0x18000ab56
mov qword [rax + 0x10], rcx
movsxd rax, dword [rcx + 4]
add rcx, 0x20
add rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax + 0x18], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [rcx + 4], ax
jne 0x18000ab56
test byte [rcx + 6], 0xc
jne 0x18000ab7f
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000ab84
mov edi, 1
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x18000b16c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov r9d, dword [rcx]
xor edi, edi
mov r10, r8
mov r11, rdx
mov r14, rcx
test r9d, r9d
je 0x18000b204
cmp r9d, 1
jne 0x18000b23c
call fcn.18000b02c
test rax, rax
setne dil
test edi, edi
je 0x18000b23c
mov ebx, dword [rax + 8]
mov rsi, qword [rsp + 0x70]
btr ebx, 0x1f
test rsi, rsi
je 0x18000b23c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18000b200
xor edi, edi
cmp dword [rsi], ebx
setae dil
cmp dword [rsi], ebx
jb 0x18000b200
cmp dword [rax + 8], 0
jge 0x18000b1e5
lea rdx, [rax + 0xc]
jmp 0x18000b1f8
movsxd r8, dword [rax + 0xc]
mov rax, qword [r14 + 8]
mov rdx, qword [rax + 0x10]
add rdx, 4
add rdx, r8
mov r8d, ebx
call fcn.180071560
mov dword [rsi], ebx
jmp 0x18000b23c
mov rax, qword [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [rsp + 0x68]
mov rdx, r10
mov rcx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete dil
test edi, edi
jne 0x18000b23c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret

Function at 0x18000b254
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov rdi, rcx
test r9d, r9d
je 0x18000b2e8
cmp r9d, 1
jne 0x18000b31f
call fcn.18000b02c
mov rcx, rax
test rax, rax
je 0x18000b31f
mov r9d, dword [rsp + 0x70]
mov edx, dword [rax + 8]
mov r8d, edx
btr r8d, 0x1f
cmp r8d, r9d
setae bl
cmp r8d, r9d
jb 0x18000b2e1
mov eax, dword [rsp + 0x60]
and edx, 0x80000000
or edx, r9d
mov dword [rcx + 0x10], eax
mov dword [rcx + 8], edx
jge 0x18000b2c2
add rcx, 0xc
jmp 0x18000b2d5
movsxd rdx, dword [rcx + 0xc]
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x10]
add rcx, 4
add rcx, rdx
mov rdx, qword [rsp + 0x68]
call fcn.180071560
jmp 0x18000b31f
mov ecx, Ordinal_54
jmp 0x18000b319
mov eax, dword [rsp + 0x70]
xor r8d, r8d
mov r9d, dword [rsp + 0x60]
mov rdx, r10
mov dword [rsp + 0x28], eax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test ebx, ebx
jne 0x18000b31f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000b32c
Capabilities:
Query or enumerate registry key

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 r12
push r14
push r15
sub rsp, 0x40
mov r10d, dword [rcx]
xor r12d, r12d
mov r11d, r8d
mov r14, r9
mov rbp, rdx
mov edi, r12d
test r10d, r10d
je 0x18000b469
cmp r10d, 1
jne 0x18000b4a6
cmp dword [rdx + 0x18], r12d
je 0x18000b4a6
cmp r11d, dword [rdx + 0x18]
jae 0x18000b4a6
cmp dword [rdx + 0x20], 0xffffffff
je 0x18000b4a6
mov rax, qword [rcx + 8]
movsxd rcx, dword [rdx + 0x20]
mov r8, qword [rax + 0x10]
add rcx, r8
movzx eax, word [rcx + 4]
cmp eax, 0x666c
je 0x18000b3b1
cmp eax, 0x686c
jne 0x18000b4a6
cmp word [rcx + 6], r12w
je 0x18000b4a6
movzx eax, word [rcx + 6]
cmp r11d, eax
jae 0x18000b4a6
movsxd rdx, dword [rcx + r11*8 + 8]
mov eax, 0x6b6e
add rdx, r8
cmp word [rdx + 4], ax
jne 0x18000b4a6
test r14, r14
je 0x18000b4a6
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x18000b4a6
test byte [rdx + 6], 0x20
je 0x18000b43b
movzx ebx, word [rdx + 0x4c]
cmp dword [rsi], ebx
seta dil
cmp dword [rsi], ebx
jbe 0x18000b45c
lea rcx, [rdx + 0x50]
mov edx, ebx
call fcn.18000e0e8
mov rbp, rax
test rax, rax
je 0x18000b45c
lea r8, [rbx + rbx]
mov rdx, rax
mov rcx, r14
call fcn.180071560
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000b45c
movzx ebx, word [rdx + 0x4c]
shr ebx, 1
cmp dword [rsi], ebx
seta dil
cmp dword [rsi], ebx
jbe 0x18000b45c
movzx r8d, word [rbp + 0x4c]
add rdx, 0x50
mov rcx, r14
call fcn.180071560
test edi, edi
je 0x18000b465
mov word [r14 + rbx*2], r12w
mov dword [rsi], ebx
jmp 0x18000b4a6
mov r9, qword [rsp + 0x80]
mov r8, r14
mov qword [rsp + 0x38], r12
mov edx, r11d
mov qword [rsp + 0x30], r12
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete dil
test edi, edi
jne 0x18000b4a6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x18000b4c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r11d, r8d
mov r10, rdx
mov r12, r9
mov edx, dword [rcx]
mov r15, rcx
mov esi, r13d
test edx, edx
je 0x18000b690
cmp edx, 1
jne 0x18000b6e5
test r10, r10
jne 0x18000b516
mov rax, qword [rcx + 8]
mov r10, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r10 + 4], ax
jne 0x18000b6e5
cmp dword [r10 + 0x28], r13d
je 0x18000b6e5
cmp r11d, dword [r10 + 0x28]
jae 0x18000b6e5
cmp dword [r10 + 0x2c], 0xffffffff
je 0x18000b6e5
mov rax, qword [rcx + 8]
movsxd rcx, dword [r10 + 0x2c]
add rcx, qword [rax + 0x10]
movsxd rbx, dword [rcx + r11*4 + 4]
add rbx, qword [rax + 0x10]
mov eax, 0x6b76
cmp word [rbx + 4], ax
jne 0x18000b6e5
test r12, r12
je 0x18000b6e5
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x18000b6e5
movzx eax, word [rbx + 6]
test ax, ax
je 0x18000b613
test byte [rbx + 0x14], 1
movzx edi, ax
movzx edx, ax
je 0x18000b5ac
inc edi
lea rcx, [rbx + 0x18]
call fcn.18000e0e8
mov rbp, rax
jmp 0x18000b5dc
shr edi, 1
add rdx, 2
mov ecx, 0x40
inc edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x18000b6e5
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.180071560
test rbp, rbp
je 0x18000b6e5
cmp dword [r14], edi
setae sil
cmp dword [r14], edi
jb 0x18000b608
mov r8d, edi
mov rdx, rbp
add r8, r8
mov rcx, r12
call fcn.180071560
lea eax, [rdi - 1]
mov dword [r14], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000b616
mov dword [r14], r13d
test esi, esi
je 0x18000b6e5
mov edi, dword [rbx + 8]
mov rcx, qword [rsp + 0xa0]
btr edi, 0x1f
test rcx, rcx
je 0x18000b637
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov r14, qword [rsp + 0xb0]
test r14, r14
je 0x18000b6e5
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x18000b68b
cmp dword [r14], edi
mov esi, r13d
setae sil
cmp dword [r14], edi
jb 0x18000b68b
cmp dword [rbx + 8], r13d
jge 0x18000b670
lea rdx, [rbx + 0xc]
jmp 0x18000b683
mov rax, qword [r15 + 8]
movsxd r8, dword [rbx + 0xc]
mov rdx, qword [rax + 0x10]
add rdx, 4
add rdx, r8
mov r8d, edi
call fcn.180071560
mov dword [r14], edi
jmp 0x18000b6e5
mov rax, qword [rsp + 0xb0]
mov r8, r12
mov r9, qword [rsp + 0x90]
mov edx, r11d
mov qword [rsp + 0x38], rax
mov rcx, r10
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete sil
test esi, esi
jne 0x18000b6e5
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000d950
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbp, rdx
mov rdx, rcx
xor ebx, ebx
mov rcx, rdi
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x18000d9ab
lea rax, [rsp + 0x58]
mov r8, rbp
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18000da48
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
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 rsi, rax
test rax, rax
je 0x18000daae
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x18000daa5
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000dd0c
Capabilities:
Create service
Persist via windows service
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 r12
push r14
push r15
sub rsp, 0x70
mov r15, r8
mov r12, rdx
mov rbx, rcx
lea rdx, str.ServicesActive
xor esi, esi
xor ecx, ecx
mov r14d, r9d
lea r8d, [rsi + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x18000deb5
lea r8d, [rsi + 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x18000dd82
lea rcx, str.____s_service_already_registered_n
mov rdx, rbx
call fcn.1800090bc
jmp 0x18000de4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x18000de39
mov rdx, rbx
lea rcx, str.____s_service_not_present_n
call fcn.1800090bc
and qword [rsp + 0x60], rsi
mov r9d, 0x60010
and qword [rsp + 0x58], rsi
mov r8, r12
and qword [rsp + 0x50], rsi
mov rdx, rbx
and qword [rsp + 0x48], rsi
mov rcx, rbp
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x18000de2a
mov rdx, rbx
lea rcx, str.____s_service_successfully_registered_n
call fcn.1800090bc
mov rcx, rdi
call fcn.18000dba8
mov esi, eax
test eax, eax
je 0x18000de1b
lea rcx, str.____s_service_ACL_to_everyone_n
jmp 0x18000dd75
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___kull_m_service_addWorldToSD__0x_08x__n
jmp 0x18000de46
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___CreateService__0x_08x__n
jmp 0x18000de46
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenService__0x_08x__n
mov edx, eax
call fcn.1800090bc
test rdi, rdi
je 0x18000deaa
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
test eax, eax
je 0x18000de6f
lea rcx, str.____s_service_started_n
jmp 0x18000de83
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x18000de8d
lea rcx, str.____s_service_already_started_n
mov rdx, rbx
call fcn.1800090bc
jmp 0x18000dea1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___StartService__0x_08x__n
call fcn.1800090bc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18000dec9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___OpenSCManager_create___0x_08x__n
call fcn.1800090bc
lea r11, [rsp + 0x70]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret