joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140128270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1401282fa
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401282f0
cmp r11, r10
ja 0x140128376
cmp r10, rdx
ja 0x140128388
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1401282f2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401282d0
jmp 0x140128357
ja 0x1401282fa
mov r11, r10
cmp rax, r8
jne 0x140128297
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14012835b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140128330
mov r8, r10
sub ecx, r9d
jns 0x14012834e
jmp 0x14012835d
cmp r10, rdx
je 0x14012836a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14012835d
xor al, 1
cmp r8, rdx
jne 0x140128310
jmp 0x14012835d
xor eax, eax
jmp 0x14012835d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1402143a0
lea r8, str.HD__
mov rcx, r11
mov rdx, r10
call fcn.140214a00
lea r8, str.HD__
mov rcx, r10
call fcn.140214990
int3
Function at 0x1401841b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.1401485e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1401841f0
mov eax, 7
jmp 0x1401842c7
movzx eax, byte [0x140276db4]
test eax, eax
je 0x140184209
mov ecx, 0xc8
call fcn.140155fd0
test eax, eax
je 0x14018421e
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
nop
jmp 0x14018428c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x140198cc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x14018428c
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
nop
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x1401842b8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret
Function at 0x1401cb9b0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1c], 1
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x58]
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rcx, qword [rsp + 0x50]
call fcn.140179660
cmp dword [rsp + 0x60], 0
jne 0x1401cba31
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, qword [rsp + 0x50]
call fcn.140179660
nop
add rsp, 0x48
ret
Function at 0x140212d88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140212dd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140212dd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140212dd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140212dd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140212dd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140212dd4
xor al, al
add rsp, 0x28
ret
Function at 0x4653c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00a321c0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00a31ba8], 0
je 0x4653f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00a32540]
aesenc xmm0, xmmword [0x00a32550]
aesenc xmm0, xmmword [0x00a32560]
movq rax, xmm0
ret
jmp 0x40a160

Function at 0x140001ba8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bf2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bf2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bf2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bf2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bf2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bf4
xor al, al
add rsp, 0x28
ret
Function at 0x1800012a0
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x180157688]
mov qword [rsp + 0x268], rax
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x30], 4
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0x20], rax
lea r9, [0x1801256b0]
lea r8, [0x1801256f8]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.180003110
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x180001462
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x180125708]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x180001382
lea rdx, [0x180125720]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x180001395
mov r8d, dword [rsp + 0x38]
lea rdx, str._ClearMarkForDelete__RegQueryValueEx_Failed___d_
xor ecx, ecx
call fcn.1800fc9f0
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
mov eax, dword [rsp + 0x288]
mov dword [rsp + 0x3c], eax
mov ecx, 2
call fcn.1800f7fb0
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x260], 0
je 0x1800013d8
cmp qword [rsp + 0x260], 0xffffffffffffffff
jne 0x1800013fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1801257b0]
xor ecx, ecx
call fcn.1800fc9f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
jmp 0x180001457
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x180125818]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180001449
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._ClearMarkForDelete__RegSetValueEx_Failed___d_
xor ecx, ecx
call fcn.1800fc9f0
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x268]
call fcn.180124250
add rsp, 0x278
ret
Function at 0x180001480
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 0
cmp qword [rsp + 0x90], 0
je 0x1800014c9
cmp qword [rsp + 0x98], 0
jne 0x1800014d3
mov eax, 0x57
jmp 0x1800015c4
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1800015b6
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x18000159f
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x180001592
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800015a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800015c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
add rsp, 0x88
ret
Function at 0x180003bfc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov esi, edx
mov r8d, dword [rax + rcx + 0x88]
mov r10, rcx
add r8, rcx
mov r11d, dword [r8 + 0x20]
mov ebx, dword [r8 + 0x1c]
mov edi, dword [r8 + 0x24]
mov r8d, dword [r8 + 0x18]
add r11, rcx
add rbx, rcx
add rdi, rcx
test r8d, r8d
je 0x180003c5b
mov ecx, dword [r11]
add rcx, r10
call fcn.180003b90
cmp eax, esi
je 0x180003c6d
inc r9d
add r11, 4
cmp r9d, r8d
jb 0x180003c40
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx ecx, word [rdi + r9*2]
mov eax, dword [rbx + rcx*4]
add rax, r10
jmp 0x180003c5d

Function at 0x18000d1d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov ecx, 5
call fcn.180008780
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.1800087e0
cmp dword [rsp + 0x50], 0
jle 0x18000d20f
cmp qword [rsp + 0x58], 0
jne 0x18000d228
mov dword [0x1801577b0], 0
mov rcx, qword [rsp + 0x20]
call fcn.180008850
jmp 0x18000d39b
cmp dword [0x1801577b0], 0
jne 0x18000d2b9
xor ecx, ecx
call fcn.180008410
mov qword [rsp + 0x30], rax
mov r8d, 0x10
lea rdx, str.expand_32_byte_k
lea rcx, [0x1801577b0]
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
jne 0x18000d27f
lea rax, [0x1801577b0]
add rax, 0x10
mov r8d, 0x2c
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x18000d29c
lea rax, [0x1801577b0]
add rax, 0x10
mov r8, rax
mov edx, 0x2c
mov rcx, qword [rsp + 0x30]
call fcn.18000d3b0
mov eax, dword [0x1801577e0]
mov dword [0x1801577ec], eax
mov dword [0x1801577e0], 0
mov byte [0x180157830], 0
xor eax, eax
cmp eax, 1
je 0x18000d391
movzx eax, byte [0x180157830]
cmp dword [rsp + 0x50], eax
jg 0x18000d314
movsxd rax, dword [rsp + 0x50]
movzx ecx, byte [0x180157830]
sub ecx, dword [rsp + 0x50]
movsxd rcx, ecx
lea rdx, [0x1801577f0]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x180157830]
sub eax, dword [rsp + 0x50]
mov byte [0x180157830], al
jmp 0x18000d391
movzx eax, byte [0x180157830]
test eax, eax
jle 0x18000d364
movzx eax, byte [0x180157830]
mov r8, rax
lea rdx, [0x1801577f0]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x180157830]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
movzx eax, byte [0x180157830]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [0x1801577e0]
inc eax
mov dword [0x1801577e0], eax
lea rdx, [0x1801577b0]
lea rcx, [0x1801577f0]
call fcn.18000d430
mov byte [0x180157830], 0x40
jmp 0x18000d2b9
mov rcx, qword [rsp + 0x20]
call fcn.180008850
add rsp, 0x48
ret
Function at 0x1800f95f0
Capabilities:
Check for time delay via gettickcount
Create service

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0xa0], 0
je 0x1800f9649
cmp qword [rsp + 0xa8], 0
jne 0x1800f9653
mov eax, 0x57
jmp 0x1800f97ba
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1800f9689
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
jmp 0x1800f97ba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x84], eax
xor eax, eax
cmp eax, 1
je 0x1800f979d
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1800f978b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x430
jne 0x1800f9775
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x84]
add eax, 0x1f4
mov dword [rsp + 0x88], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x88]
cmp ecx, eax
jb 0x1800f9775
jmp 0x1800f9696
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x80]
jmp 0x1800f97ba
mov dword [rsp + 0x80], 0
jmp 0x1800f979d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x1800f97d0
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x70], 0
jne 0x1800f9806
mov eax, 0x57
jmp 0x1800f98c2
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800f9836
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
jmp 0x1800f98c2
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800f98a9
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x1800f989c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800f98b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x30]
add rsp, 0x60
pop rdi
ret

Function at 0x1800f98d0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800f992b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1800f99dd
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800f99c4
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
je 0x1800f9989
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x34]
jmp 0x1800f99dd
lea r8, [rsp + 0x30]
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.1800f9e40
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1800f99b7
cmp dword [rsp + 0x30], 4
je 0x1800f99b7
mov dword [rsp + 0x34], 0x425
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800f99ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x1800f9a70
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x70], 0
jne 0x1800f9aad
mov eax, 0x57
jmp 0x1800f9b7a
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800f9add
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
jmp 0x1800f9b7a
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800f9b61
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, 1
jne 0x1800f9b4a
lea r8, [rsp + 0x30]
mov edx, 3
mov rcx, qword [rsp + 0x28]
call fcn.1800f9e40
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1800f9b48
cmp dword [rsp + 0x30], 1
je 0x1800f9b48
mov dword [rsp + 0x34], 0x425
jmp 0x1800f9b54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800f9b6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x34]
add rsp, 0x68
ret

Function at 0x1800f9d50
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x70], 0
je 0x1800f9d88
cmp qword [rsp + 0x78], 0
jne 0x1800f9d92
mov eax, 0x57
jmp 0x1800f9e34
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800f9dbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
jmp 0x1800f9e34
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800f9e1b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x1800f9e04
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
jmp 0x1800f9e0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1800f9e25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x140ecc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ecc1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ecc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ecc06f
add dl, dl
jne 0x140ecc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ecc0f6
xor eax, eax
add dl, dl
jne 0x140ecc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ecc1ad
add dl, dl
jne 0x140ecc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ecc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ecc07e
mov eax, 1
add dl, dl
jne 0x140ecc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ecc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ecc0fb
sub eax, ebx
mov ebx, 1
jne 0x140ecc14c
mov ecx, 1
add dl, dl
jne 0x140ecc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ecc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ecc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ecc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ecc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ecc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ecc15d
cmp eax, 0x7d00
jae 0x140ecc19b
cmp eax, 0x500
jb 0x140ecc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ecc07e
cmp eax, 0x7f
ja 0x140ecc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ecc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ecc1d2
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 0x140ecc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001124e
Capabilities:
Terminate process

Disassembly:
jmp 0x140013bd0
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]
add rsp, 0x28
ret

Function at 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014f20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014f40
xor al, al
jmp 0x140014fc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014f53
xor al, al
jmp 0x140014fc1
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 0x140014f7d
xor al, al
jmp 0x140014fc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014f91
xor al, al
jmp 0x140014fc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014fa3
xor al, al
jmp 0x140014fc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014fbf
xor al, al
jmp 0x140014fc1
mov al, 1
add rsp, 0x38
ret