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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00435200
mov ebx, eax
mov rax, qword [0x0059dda8]
cmp byte [rax], 0
je 0x435586
mov rcx, qword [0x0059d9e0]
call fcn.0040a960
call fcn.004093b0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00435410]
mov r8d, 1
movsxd r9, esi
call fcn.00411a40
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0043561c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4355cb
mov rcx, qword [0x005a5278]
call fcn.004121e0
mov rcx, rax
mov rax, qword [0x0059d960]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00435410]
call fcn.00411c10
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x437160
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040ee30
lea rcx, [rbp + 0x58]
call fcn.0040f000
mov rcx, qword [rbp + 0x58]
call fcn.0040f9f0
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x437270
mov ecx, dword [rbp + 0x54]
call fcn.00409090
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040f9f0
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x437266
mov rcx, qword [rbp + 0x68]
lea rdx, [0x004372c8]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x437266
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.004090c0
nop
lea rcx, [rbp + 0x58]
call fcn.0040e780
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x438650
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040ef50
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00416020
mov esi, eax
cmp esi, 0x104
jbe 0x4386ac
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00409090
mov rdi, rax
jmp 0x4386b0
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00416020
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x438707
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x4386e8
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x438719
mov rcx, rdi
call fcn.004090c0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4bbb70
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4bbb77
nop
ret

Function at 0x50d000
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
movzx rax, byte [rax + 0x19]
movzx rcx, byte [rbp + 0x2f]
or al, cl
test al, al
je 0x50d092
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x50d092
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x40], 0
jne 0x50d092
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x50d0bc
lea rcx, [rbp + 0x38]
mov rdx, qword [0x0059dcf8]
call fcn.00415f50
mov rcx, qword [0x004d3e70]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00435640
mov rcx, rax
call fcn.0040da30
jmp 0x50d0bc
lea rcx, [rbp + 0x30]
mov rdx, qword [0x0059dcf8]
call fcn.00415f50
mov rcx, qword [0x004d3e70]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00435640
mov rcx, rax
call fcn.0040da30
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e860
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x50dc30
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0050ce40
jmp 0x50dc8b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x50dcb0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0050ce40
cmp esi, 1
jne 0x50dcda
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x53f740
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov dword [rbp + 0x34], edx
mov qword [rbp + 0x38], r8
mov ebx, r9d
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
mov edx, dword [rbp + 0x34]
mov r8, qword [rbp + 0x38]
call fcn.0053fa10
mov esi, eax
test sil, sil
jne 0x53f8ee
xor edi, edi
test r13d, r13d
jle 0x53f824
call sub.kernel32.dll_GetTickCount_1
mov r14d, eax
mov dword [rbp + 0x4c], 0
test r13d, r13d
jle 0x53f808
cmp ebx, 0xffffffff
je 0x53f7ba
call sub.kernel32.dll_GetTickCount_1
sub eax, r14d
cmp eax, ebx
jb 0x53f7ba
xor esi, esi
jmp 0x53f8ee
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
cmp eax, 1
jg 0x53f808
test eax, eax
jne 0x53f7f6
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x53f7f6
mov eax, dword [rbp + 0x34]
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x53f8ee
lea rcx, [rbp + 0x4c]
call fcn.0053f5b0
sub r13d, 1
test r13d, r13d
jg 0x53f7a1
nop
cmp ebx, 0xffffffff
je 0x53f824
call sub.kernel32.dll_GetTickCount_1
sub eax, r14d
cmp eax, ebx
jb 0x53f822
xor esi, esi
jmp 0x53f8ee
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x53f765
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x53f824
nop
call sub.kernel32.dll_GetTickCount_1
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0053f9a0
mov rcx, rax
mov edx, ebx
call fcn.00442ff0
test al, al
sete sil
cmp ebx, 0xffffffff
je 0x53f87f
call sub.kernel32.dll_GetTickCount_1
sub eax, r14d
cmp eax, ebx
jae 0x53f87d
sub ebx, eax
jmp 0x53f87f
xor ebx, ebx
test sil, sil
je 0x53f8b1
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x53f8ae
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x53f884
mov dil, 1
nop
jmp 0x53f8ce
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x53f8b1
mov dil, 1
test dil, dil
je 0x53f847
nop
test sil, sil
je 0x53f8ee
mov eax, dword [rbp + 0x34]
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x58]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret

Function at 0x5401f0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor eax, eax
mov cl, 1
lock cmpxchg byte [rbx + 0x40], cl
test al, al
jne 0x54023f
cmp qword [rbx + 0x18], 0
jne 0x540214
mov rcx, rbx
call fcn.0053fef0
mov rcx, qword [rbx + 0x18]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x54023f
mov rcx, qword [0x004d3e70]
mov dl, 1
mov r8, qword [0x0059dcf8]
call fcn.004358b0
mov rcx, rax
call fcn.0040da30
add rsp, 0x20
pop rbx
ret
Function at 0x540cd0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov dword [rbp + 0x3c], 0
mov rax, qword [0x00598808]
mov r8, rcx
mov r9d, edx
lea r10, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, r8
mov r8d, r9d
mov r9, r10
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x540d19
movsxd rax, dword [rbp + 0x3c]
add qword [0x005aa500], rax
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x56a7f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.0040ee30
mov rcx, qword [rbp + 0x78]
call fcn.00569cb0
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x56a865
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.00410080
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.0056ba00
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x56a9b8
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.0056a1f0
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.0056ab30
test al, al
je 0x56a998
lea rcx, [rbp + 0x70]
xor edx, edx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.0040ea40
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x56a997
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.0040f9f0
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.0056a110
test al, al
je 0x56a983
mov rcx, qword [rbp + 0x70]
call fcn.0040f9f0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040fa90
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.0056a7f0
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x56a8f7
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.0056a1f0
mov rcx, qword [rbp + 0x90]
call sub.advapi32.dll_RegCloseKey_1
cmp byte [0x005aa5f4], 0
je 0x56aa17
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.0056a1d0
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040f9f0
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.0056a110
mov byte [rbp + 0x8f], al
jmp 0x56aa56
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.0056a1d0
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040f9f0
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.0056a110
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.0040e780
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.0040e860
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret

Function at 0x56ab00
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.0040f9f0
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.0056a110
add rsp, 0x20
pop rbx
ret
Function at 0x56c180
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
nop
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x50]
mov rax, qword [rax + 8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0xb8]
call fcn.0056a1f0
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
lea rdx, [rbp + 0x64]
call fcn.0056ab30
test al, al
je 0x56c300
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
xor r9, r9
call fcn.0056c000
lea rcx, [rbp + 0x58]
xor edx, edx
mov r8d, dword [rbp + 0x70]
add r8d, 1
call fcn.0040ea40
xor eax, eax
mov ebx, dword [rbp + 0x6c]
sub ebx, 1
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], ebx
jg 0x56c2ff
sub ebx, eax
add ebx, 1
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x58]
call fcn.0040f9f0
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0x80]
mov r8, rax
lea r9, [rbp + 0x84]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumValueW
mov rcx, qword [rbp + 0xb0]
mov rcx, qword [rcx + 0x50]
mov edx, eax
call fcn.0056a110
test al, al
je 0x56c2ed
mov rcx, qword [rbp + 0x58]
call fcn.0040f9f0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040fa90
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov r9, qword [rbp + 0x40]
call fcn.0056c000
add dword [rbp + 0x80], 1
sub ebx, 1
test ebx, ebx
jne 0x56c24f
nop
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0x88]
call fcn.0056a1f0
nop
lea rcx, [rbp + 0x40]
call fcn.0040e780
lea rcx, [rbp + 0x58]
call fcn.0040e780
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x56d090
Capabilities:
Persist via run registry key

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x80], rcx
nop
lea rcx, [rbp + 0x60]
mov rax, qword [rbp + 0x80]
mov rdx, qword [rax + 0x20]
mov r8w, 0x22
call fcn.0042bdb0
mov rcx, qword [rbp + 0x80]
lea rdx, [rbp + 0x58]
call fcn.0056cea0
mov dword [rbp + 0x54], 0
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x56d0fb
mov eax, dword [rax - 4]
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
jle 0x56d124
lea rcx, [rbp + 0x60]
mov edx, 3
mov r8, qword [rbp + 0x60]
lea r9, [0x0056d288]
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.0040ff30
mov rcx, qword [0x00568760]
mov dl, 1
call fcn.00569e90
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x68]
mov rdx, 0xffffffff80000002
call fcn.0056a160
mov rcx, qword [rbp + 0x68]
lea rdx, [0x0056d298]
mov r8b, 1
call fcn.0056a370
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x80]
mov rdx, qword [rax + 0x18]
call fcn.0056b9e0
test al, al
je 0x56d1d2
mov rcx, qword [rbp + 0x68]
lea rdx, [rbp + 0x30]
mov rax, qword [rbp + 0x80]
mov r8, qword [rax + 0x18]
call fcn.0056b1e0
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x60]
cmp rax, qword [rbp + 0x48]
jne 0x56d1a2
mov byte [rbp + 0x47], 1
jmp 0x56d1cb
cmp qword [rbp + 0x60], 0
je 0x56d1b0
cmp qword [rbp + 0x48], 0
jne 0x56d1b6
mov byte [rbp + 0x47], 0
jmp 0x56d1cb
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
call fcn.0042b880
test eax, eax
sete al
mov byte [rbp + 0x47], al
nop
cmp byte [rbp + 0x47], 0
jne 0x56d1f6
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x80]
mov rdx, qword [rax + 0x18]
mov r8, qword [rbp + 0x60]
call fcn.0056b140
nop
mov rcx, qword [rbp + 0x68]
call fcn.0040b510
jmp 0x56d203
xor ecx, ecx
mov rdx, qword [rbp + 0x38]
call fcn.0056d230
jmp 0x56d204
nop
lea rcx, [rbp + 0x30]
call fcn.0040e780
lea rcx, [rbp + 0x58]
mov edx, 2
call fcn.0040e860
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x56e860
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0xf0
mov rbp, rsp
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0xe8], 0
nop
lea rcx, [rbp + 0xe8]
mov edx, 3
lea r8, [0x0056e968]
mov r9, qword [rbp + 0x58]
lea rax, [0x0056e9a0]
mov qword [rsp + 0x20], rax
call fcn.0040ff30
lea rcx, [rbp + 0x80]
mov edx, 0x68
xor r8, r8
call fcn.0040a9f0
xor ecx, ecx
mov rdx, qword [rbp + 0xe8]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x8000020
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x56e90d
call fcn.00438a00
mov rcx, qword [rbp + 0x68]
mov edx, 0x9c40
call sub.kernel32.dll_WaitForSingleObject
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0xe8]
call fcn.0040e780
lea rsp, [rbp + 0xf0]
pop rbp
ret
Function at 0x56e9d0
Capabilities:
Query service status

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rbp + 0x78]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x56ea29
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x50], eax
cmp dword [rbp + 0x50], 0x424
jne 0x56ea21
mov byte [rbp + 0x57], 1
jmp 0x56eab3
mov ecx, dword [rbp + 0x50]
call fcn.00438a20
nop
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp + 0x34]
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x56ea40
call fcn.00438a00
mov eax, dword [rbp + 0x38]
cmp eax, 4
jg 0x56ea64
cmp eax, 4
je 0x56ea8d
sub eax, 1
test eax, eax
je 0x56ea7b
sub eax, 1
test eax, eax
je 0x56ea81
sub eax, 1
test eax, eax
jne 0x56eaa5
jmp 0x56ea87
sub eax, 5
test eax, eax
je 0x56ea93
sub eax, 1
test eax, eax
je 0x56ea99
sub eax, 1
test eax, eax
jne 0x56eaa5
jmp 0x56ea9f
mov byte [rbp + 0x57], 2
jmp 0x56eaa9
mov byte [rbp + 0x57], 3
jmp 0x56eaa9
mov byte [rbp + 0x57], 4
jmp 0x56eaa9
mov byte [rbp + 0x57], 5
jmp 0x56eaa9
mov byte [rbp + 0x57], 6
jmp 0x56eaa9
mov byte [rbp + 0x57], 7
jmp 0x56eaa9
mov byte [rbp + 0x57], 8
jmp 0x56eaa9
mov byte [rbp + 0x57], 0
nop
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_CloseServiceHandle
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x56eae0
Capabilities:
Start service

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rbp + 0x58]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x56eb1c
call fcn.00438a00
nop
mov rcx, qword [rbp + 0x38]
xor edx, edx
xor r8, r8
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x56eb7d
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x34], eax
cmp dword [rbp + 0x34], 0x420
je 0x56eb89
cmp dword [rbp + 0x34], 0x422
jne 0x56eb75
mov rcx, qword [rbp + 0x58]
call fcn.0056e860
mov rcx, qword [rbp + 0x38]
xor edx, edx
xor r8, r8
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x56eb89
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x34], eax
cmp dword [rbp + 0x34], 0x420
je 0x56eb89
mov ecx, dword [rbp + 0x34]
call fcn.00438a20
nop
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_CloseServiceHandle
jmp 0x56eb94
xor ecx, ecx
mov rdx, qword [rbp + 0x28]
call fcn.0056eba0
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x56ebc0
Capabilities:
Stop service

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rbp + 0x78]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x56ebfc
call fcn.00438a00
nop
mov rcx, qword [rbp + 0x58]
mov edx, 1
lea r8, [rbp + 0x38]
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x56ec30
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x54], eax
mov ecx, dword [rbp + 0x54]
call fcn.00438a20
nop
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_CloseServiceHandle
jmp 0x56ec3b
xor ecx, ecx
mov rdx, qword [rbp + 0x28]
call fcn.0056ec50
lea rsp, [rbp + 0x60]
pop rbp
ret