joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800016b3
Capabilities:
Print debug messages

Disassembly:
jmp 0x180055f4c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x180055f98
test rbx, rbx
je 0x180055f87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.180001807
cmp eax, 1
je 0x180055f98
mov eax, 4
jmp 0x180055fdb
call fcn.18000398b
cmp eax, 2
jne 0x180055fd4
call fcn.180001866
test al, al
je 0x180055fd4
call fcn.180002b08
test al, al
jne 0x180055fca
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.1800039c7
jmp 0x180055fdb
call fcn.18000386e
mov rcx, rax
jmp 0x180055fba
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180002171
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1800756f0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180098058]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x18009ab18]
xor r11d, r11d
lea rdi, [0x180082894]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x180075760
mov rax, 0xfffffffffffffffe
jmp 0x1800758ad
cmp word [r10 + 6], r11w
jne 0x1800757cf
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x18007578a
test r14, r14
je 0x18007577b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1800758ad
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180075798
mov r8b, 2
jmp 0x1800757b6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1800757a6
mov r8b, 3
jmp 0x1800757b6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1800758a2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1800757f8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1800758a2
cmp bl, bpl
jb 0x1800758a2
cmp bl, r8b
jae 0x1800758a2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x180075825
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1800758a2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x180075807
cmp r9, rbp
jae 0x180075851
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180075754
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1800758a2
cmp edx, 0x110000
jae 0x1800758a2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1800758a2
test r14, r14
je 0x180075890
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1800039c2
jmp 0x1800758ad
mov rdx, rsi
mov rcx, r10
call fcn.180004025
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800025e0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800021b7
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1800088d4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180008961
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x180008961
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180008961
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180008948
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180008942
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000894a
add rdx, 0x28
jmp 0x180008927
xor edx, edx
test rdx, rdx
jne 0x180008953
xor al, al
jmp 0x180008967
cmp dword [rdx + 0x24], 0
jge 0x18000895d
xor al, al
jmp 0x180008967
mov al, 1
jmp 0x180008967
xor al, al
jmp 0x180008967
add rsp, 0x18
ret

Function at 0x1800024d7
Capabilities:
Get system information on windows

Disassembly:
jmp 0x180078be0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180078c0e
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x180078c67
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x180078c67
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x180078c59
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x180002716
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180017ed8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180083a00]
mov ecx, 2
lea r8, [0x1800839f8]
lea rdx, str.FlsGetValue
call fcn.1800179a8
mov ecx, ebx
test rax, rax
je 0x180017f12
add rsp, 0x20
pop rbx
jmp qword [0x1800a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x180002860
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005ba38
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005ba68
xor eax, eax
jmp 0x18005bb2b
mov rbp, rbx
cmp word [rax], si
je 0x18005ba8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005ba74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005ba70
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800031ca
movsxd r14, eax
test eax, eax
jne 0x18005bacb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005ba61
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005bae4
xor ecx, ecx
call fcn.180001172
jmp 0x18005bac0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800031ca
test eax, eax
jne 0x18005bb15
mov rcx, rdi
call fcn.180001172
jmp 0x18005bb1f
xor ecx, ecx
call fcn.180001172
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180002865
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180017e28
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1800839c0]
xor ecx, ecx
lea r8, [0x1800839b8]
lea rdx, str.FlsAlloc
call fcn.1800179a8
test rax, rax
je 0x180017e61
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1800028dd
Capabilities:
Get geographical location

Disassembly:
jmp 0x18005de60
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x180085a68]
mov rbp, rcx
lea r8, [0x180085a60]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.18005d37c
test rax, rax
je 0x18005dec0
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800a5030]
jmp 0x18005deda
xor edx, edx
mov rcx, rbp
call fcn.180002207
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800028ec
Capabilities:
Terminate process

Disassembly:
jmp 0x1800798ac
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180002a36
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001eda0
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x18001eaec

Function at 0x180002bc1
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800796a0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800796c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800796c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180003148
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1800795e0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x180079621
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x180079615
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x180079623
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x180079603
xor eax, eax
ret

Function at 0x18000332d
Capabilities:
Terminate process

Disassembly:
jmp 0x180050218
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180050232
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1800039d1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1800038f0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x180078ca0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180078d18
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180078d18
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180078d18
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180078d0c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180078d2a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180078cfa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180078d1a

Function at 0x180003ab2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180017f30
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180083a20]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180083a18]
call fcn.1800179a8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x180017f70
call qword [0x1800a5020]
jmp 0x180017f76
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180003c33
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001ed90
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001eb5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001eb5b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001eb5b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001eb5b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001eb5b
cmp dword [rcx + 0x84], 0xe
jbe 0x18001eb5b
cmp dword [rcx + 0xf8], 0
je 0x18001eb5b
mov ecx, ebx
call fcn.18001ecd4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18001e838
nop
cmp dword [rbp + 0x20], 0
je 0x18001eba9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001ebe4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001eaec
Function at 0x14000100f
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140001590
mov eax, 0x1028
call fcn.140005810
sub rsp, rax
lea r8, [rsp + 0x1030]
lea edx, [rax - 0x28]
lea rcx, [rsp + 0x20]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1400015c3
mov eax, 1
add rsp, 0x1028
ret
mov eax, dword [rsp + 0x1030]
shr eax, 2
je 0x140001607
mov qword [rsp + 0x1038], rbx
mov qword [rsp + 0x1020], rdi
mov edi, eax
lea rbx, [rsp + 0x20]
mov ecx, dword [rbx]
call fcn.140001014
add rbx, 4
sub rdi, 1
jne 0x1400015e6
mov rdi, qword [rsp + 0x1020]
mov rbx, qword [rsp + 0x1038]
xor eax, eax
add rsp, 0x1028
ret

Function at 0x140001014
Capabilities:
Enumerate process modules
Execute command

Disassembly:
jmp 0x140001310
mov qword [rsp + 0x20], rbp
push rsi
mov eax, 0x2370
call fcn.140005810
sub rsp, rax
mov rax, qword [0x14000a018]
xor rax, rsp
mov qword [rsp + 0x2360], rax
mov ebp, ecx
lea rcx, [rsp + 0x2141]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2140], 0
call sub.MSVCR80.dll_memset
lea rcx, str.IN_terminateValProcess_nProcess_ID:__u_n
mov edx, ebp
call fcn.140001050
mov r8d, ebp
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rsi, rax
jne 0x140001382
lea eax, [rsi + 1]
jmp 0x1400014e6
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8d, 0x2000
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1400014db
lea rcx, [rsp + 0x2031]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2030], 0
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x2030]
mov r9d, 0x104
xor edx, edx
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea rdx, str.WUDFHost.exe
lea rcx, [rsp + 0x2030]
mov r8d, 0xd
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
jne 0x1400014db
lea rdx, [rsp + 0x2030]
lea rcx, str._nProcess_name:__s_n
mov qword [rsp + 0x2388], rbx
call fcn.140001050
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x1400014d3
mov qword [rsp + 0x2390], rdi
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea r8, [rsp + 0x2250]
mov r9d, 0x104
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea rdx, str.C:WindowsSystem32driversUMDFwbf_vfs_0050.dll
lea rcx, [rsp + 0x2250]
mov r8d, 0x32
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
je 0x14000147f
mov eax, dword [rsp + 0x20]
add ebx, 1
add rdi, 8
shr eax, 3
cmp ebx, eax
jb 0x140001433
jmp 0x1400014cb
lea rcx, str._nValidity_process__Terminating......_n
call fcn.140001050
mov r8, qword [rsp + rbx*8 + 0x30]
lea rdx, [rsp + 0x2250]
lea rcx, str._t_s__0x_08X__n
call qword [sym.imp.MSVCR80.dll_printf]
lea rdx, str.taskkill__PID__d__F
lea rcx, [rsp + 0x2140]
mov r8d, ebp
call qword [sym.imp.MSVCR80.dll_sprintf]
lea rcx, [rsp + 0x2140]
call qword [sym.imp.MSVCR80.dll_system]
mov rdi, qword [rsp + 0x2390]
mov rbx, qword [rsp + 0x2388]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x2360]
xor rcx, rsp
call fcn.140003b50
mov rbp, qword [rsp + 0x2398]
add rsp, 0x2370
pop rsi
ret
Function at 0x140001028
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
jmp 0x140002ca0
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdi, [0x14000a7a0]
lea r9, str.WbioSrvc
mov rdx, rdi
sub r9, rdi
mov r8d, 0x50
mov ebx, eax
nop
lea rcx, [r8 + 0x7fffffae]
test rcx, rcx
je 0x140002cf3
movzx eax, byte [r9 + rdx]
test al, al
je 0x140002cf3
mov byte [rdx], al
add rdx, 1
sub r8, 1
jne 0x140002cd0
jmp 0x140002cf8
test r8, r8
jne 0x140002cfc
sub rdx, 1
mov byte [rdx], 0
mov r8d, 0xf003f
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov qword [0x14000a788], rax
je 0x140002ede
mov r8d, 0x2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov qword [0x14000a758], rax
je 0x140002ed1
lea rcx, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rcx
mov rcx, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002ec4
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x140002ec4
cmp eax, 3
mov edi, 0x2710
jne 0x140002df9
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x140002d9b
mov edx, 0x3e8
jmp 0x140002da0
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14000a758]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002eaf
cmp dword [rsp + 0x34], 1
je 0x140002ec4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x140002ec4
cmp dword [rsp + 0x34], 3
je 0x140002d80
call fcn.14000100a
mov rcx, qword [0x14000a758]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002e2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ControlService_failed___d__n
jmp 0x140002ebc
cmp dword [rsp + 0x34], 1
je 0x140002ec4
nop
nop
nop
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x140002e5b
mov edx, 0x3e8
jmp 0x140002e60
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14000a758]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002eaf
cmp dword [rsp + 0x34], 1
je 0x140002ec4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x140002ec4
cmp dword [rsp + 0x34], 1
jne 0x140002e40
jmp 0x140002ec4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.QueryServiceStatusEx_failed___d__n
mov edx, eax
call qword [sym.imp.MSVCR80.dll_printf]
mov rcx, qword [0x14000a758]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x14000a788]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14000104b
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x140002820
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x140002898
mov rdx, qword [section..data]
mov r8d, 0x10004
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
je 0x14000288a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002881
cmp dword [rsp + 0x24], 1
jne 0x140002881
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001055
Capabilities:
Create service
Persist via windows service

Disassembly:
jmp 0x140002710
push rbx
sub rsp, 0xe0
mov rax, qword [0x14000a018]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
je 0x1400027c5
lea rdx, [rsp + 0x70]
mov r8d, 0x51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400027bc
mov rdx, qword [section..data]
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x1400027bc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140003b50
add rsp, 0xe0
pop rbx
ret

Function at 0x140001069
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400021f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
test rdx, rdx
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov esi, 1
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 4
je 0x140002251
cmp byte [rdx], bl
je 0x140002251
lea rax, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000227d
mov rcx, qword [rsp + 0x38]
jmp 0x140002256
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
cmovne esi, ebx
mov ebx, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002297
test rdi, rdi
je 0x140002297
cmp byte [rdi], 0
je 0x140002297
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret