joyce8/EMBER2024-capa huggingface dataset:
Function at 0x608870
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.0040e9a0
nop
xor rcx, rcx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x608964
nop
mov dword [rbp + 0x38], 0
cmp qword [rbp + 0x68], 0
je 0x6088b7
mov rax, qword [rbp + 0x68]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
add eax, eax
mov dword [rbp + 0x3c], eax
mov ecx, 0x2002
mov edx, dword [rbp + 0x3c]
add edx, 2
movsxd rdx, edx
call sub.kernel32.dll_GlobalAlloc
mov qword [rbp + 0x48], rax
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalLock
mov qword [rbp + 0x40], rax
nop
mov dword [rbp + 0x30], 0
cmp qword [rbp + 0x68], 0
je 0x6088fe
mov rax, qword [rbp + 0x68]
mov eax, dword [rax - 4]
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
add eax, eax
mov dword [rbp + 0x34], eax
mov rcx, qword [rbp + 0x68]
call fcn.0040fbd0
mov rcx, rax
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x34]
add r8d, 2
movsxd r8, r8d
call fcn.004088d0
call sub.user32.dll_EmptyClipboard
mov ecx, 0xd
mov rdx, qword [rbp + 0x48]
call sub.user32.dll_SetClipboardData
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalUnlock
jmp 0x60895c
nop
call sub.user32.dll_CloseClipboard
jmp 0x608981
mov rcx, qword [0x00428730]
mov dl, 1
mov r8, qword [0x00785ae0]
call fcn.0043c290
mov rcx, rax
call fcn.0040d9c0
nop
lea rcx, [rbp + 0x68]
call fcn.0040e810
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x60fd50
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x0060fda4]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x60fd71
or bx, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x60fd85
or bx, 4
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x60fd99
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x677f50
Capabilities:
Get keyboard layout

Disassembly:
push rbp
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x90], rcx
nop
mov byte [0x00776438], 0
mov word [rbp + 0x54], 0
lea rcx, [rbp + 0x54]
call sub.user32.dll_GetKeyboardLayoutNameW
mov rcx, qword [0x00574100]
mov dl, 1
call fcn.00575830
mov qword [rbp + 0x70], rax
nop
mov rcx, qword [rbp + 0x70]
mov rdx, 0xffffffff80000002
call fcn.00575af0
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 0x54]
mov r8d, 0xa
call fcn.0040fcd0
lea rcx, [rbp + 0x30]
lea rdx, [0x00678170]
mov r8, qword [rbp + 0x28]
call fcn.00410030
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x30]
call fcn.00575f00
test al, al
je 0x67808c
mov rcx, qword [rbp + 0x70]
lea rdx, [rbp + 0x68]
lea r8, [0x006781e4]
call fcn.00576c00
mov rcx, qword [rbp + 0x68]
mov edx, 0x8000
call fcn.00440050
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x67808c
nop
mov rcx, qword [rbp + 0x78]
lea rdx, [0x006781fc]
call fcn.0041b0f0
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x678082
call qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x678082
mov rcx, qword [rbp + 0x90]
call fcn.00677ec0
test eax, eax
je 0x678066
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x50], eax
jmp 0x678070
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x50]
and eax, 1
cmp eax, 1
sete al
mov byte [0x00776438], al
nop
mov rcx, qword [rbp + 0x78]
call sub.kernel32.dll_FreeLibrary_2
nop
mov rcx, qword [rbp + 0x70]
call fcn.0040b560
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040e8f0
lea rcx, [rbp + 0x68]
call fcn.0040e810
lea rsp, [rbp + 0x80]
pop rbp
ret

Function at 0x678280
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movzx bx, byte [rbp + 0x28]
test bx, bx
je 0x6782de
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6782b9
add bx, 0x2000
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6782ce
add bx, 0x4000
mov eax, dword [rbp + 0x30]
test eax, 0x20000000
je 0x6782de
add bx, 0x8000
mov eax, ebx
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x689510
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x00689578]
mov eax, ecx
test ax, 4
je 0x68952a
or bx, 1
mov eax, ecx
test ax, 8
je 0x689537
or bx, 4
mov eax, ecx
test ax, 1
je 0x689544
or bx, 8
mov eax, ecx
test ax, 2
je 0x689551
or bx, 0x10
test cx, 0x10
je 0x68955c
or bx, 0x20
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x689570
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x689580
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
movzx rsi, word [0x006895d0]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6895a4
or si, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6895b8
or si, 4
test ebx, 0x20000000
je 0x6895c4
or si, 2
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x697840
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x510
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x520], rcx
nop
mov rax, qword [rbp + 0x520]
cmp qword [rax + 0x70], 0
jne 0x697a59
mov rcx, qword [0x004d8e18]
mov dl, 1
call fcn.00509130
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x70], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
call fcn.0040e810
mov ecx, 0x40
lea rdx, [rbp + 0x2f0]
call sub.user32.dll_GetKeyboardLayoutList
mov dword [rbp + 0x4fc], eax
xor rax, rax
mov ecx, dword [rbp + 0x4fc]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x4f8], eax
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jg 0x697a37
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + rax*8 + 0x2f0]
call fcn.005dcfe0
test al, al
je 0x697a21
movsxd rax, dword [rbp + 0x4f8]
lea rax, [rbp + rax*8 + 0x2f0]
mov qword [rbp + 0x48], rax
mov byte [rbp + 0x50], 0x10
lea rcx, [rbp + 0x70]
lea rdx, [0x00697ae4]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.004343d0
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x508]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x697a21
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x00697b52]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4f4]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x697a14
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.0040fcd0
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov rcx, rax
mov rdx, qword [rbp + 0x40]
movsxd r8, dword [rbp + 0x4f8]
mov r8, qword [rbp + r8*8 + 0x2f0]
mov rax, qword [rax]
call qword [rax + 0x80]
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + 0x520]
mov rax, qword [rbp + rax*8 + 0x2f0]
cmp rax, qword [rcx + 0x80]
jne 0x697a14
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.0040fcd0
nop
mov rcx, qword [rbp + 0x508]
call sub.advapi32.dll_RegCloseKey_1
add dword [rbp + 0x4f8], 1
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jne 0x6978df
nop
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov byte [rax + 0x61], 0
mov rax, qword [rbp + 0x520]
mov rcx, qword [rax + 0x70]
mov dl, 1
call fcn.00508fe0
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.0040e810
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x698dd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00790b70]
cmp byte [rax + 0x131], 0
jne 0x698e73
cmp qword [0x00790ba8], 0
jne 0x698e16
call sub.kernel32.dll_GetCurrentThreadId_1
mov ecx, 3
mov rdx, qword [0x00778590]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00790ba8], rax
cmp qword [0x00790ba0], 0
jne 0x698e38
xor rcx, rcx
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00790ba0], rax
cmp qword [0x00790bb0], 0
jne 0x698e73
xor rcx, rcx
mov edx, 0x3e8
mov r8, qword [0x00778588]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread_1
mov qword [0x00790bb0], rax
add rsp, 0x48
ret

Function at 0x699f40
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
cmp qword [rbx + 0x2a8], 0
je 0x69a02b
cmp dword [rbx + 0x100], 0
jne 0x69a021
mov rax, qword [rbx + 0x2a8]
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x00699e20]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0xf8]
cmp dword [rax + 0x10], 0
je 0x69a021
mov rcx, qword [rbp + 0x40]
mov edx, 3
call sub.user32.dll_GetWindow
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov ecx, 0xffffffec
mov edx, ecx
mov rcx, rax
call sub.user32.dll_GetWindowLongPtrW
test rax, 8
je 0x699fcf
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0xf8]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x69a020
mov rcx, qword [rbx + 0xf8]
mov edx, esi
call fcn.00501ec0
mov rcx, rax
mov rdx, qword [rbp + 0x40]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x213
call sub.user32.dll_SetWindowPos
sub esi, 1
cmp esi, 0xffffffff
jne 0x699fe0
nop
lea rax, [rbx + 0x100]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x69a340
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00790b70]
cmp qword [rax + 0x2a8], 0
je 0x69a506
test sil, sil
jne 0x69a428
cmp dword [rbx + 0x110], 0
jne 0x69a419
mov rcx, rbx
call fcn.0069e940
lea rcx, [0x0069a210]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0x88], 0
je 0x69a3db
mov rax, qword [0x00790b70]
cmp byte [rax + 0x16b], 0
je 0x69a3db
mov rcx, qword [rbx + 0x178]
call fcn.00411520
mov rdi, rax
test edi, edi
jl 0x69a3da
mov rax, qword [rbx + 0x178]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor rdx, rdx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x69a3bc
nop
mov rax, qword [rbx + 0x108]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x69a418
mov rcx, qword [rbx + 0x108]
mov edx, edi
call fcn.00501ec0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x69a3ec
nop
lea rax, [rbx + 0x110]
add dword [rax], 1
jmp 0x69a506
cmp dword [rbx + 0x110], 0
jle 0x69a506
lea rax, [rbx + 0x110]
sub dword [rax], 1
cmp dword [rbx + 0x110], 0
jne 0x69a506
cmp qword [rbx + 0x88], 0
je 0x69a49b
mov rax, qword [0x00790b70]
cmp byte [rax + 0x16b], 0
je 0x69a49b
mov rcx, qword [rbx + 0x178]
call fcn.00411520
mov rdi, rax
test edi, edi
jl 0x69a49a
mov rax, qword [rbx + 0x178]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x69a479
nop
mov rax, qword [rbx + 0x108]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x69a4d8
mov rcx, qword [rbx + 0x108]
mov edx, edi
call fcn.00501ec0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x69a4ac
nop
mov rax, qword [rbx + 0x108]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x178]
mov rdx, qword [0x006847b8]
mov r8d, 1
xor r9, r9
call fcn.004118b0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x69b700
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x220
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [rbx + 0x130], 0
je 0x69b76e
cmp byte [rbx + 0x16b], 0
jne 0x69b76e
mov rcx, qword [rbx + 0x2a8]
lea rdx, [rbp + 0x20]
mov r8d, pe_nt_image_headers64
call sub.user32.dll_GetWindowTextW
mov rcx, rsi
lea rdx, [rbp + 0x20]
mov r8d, eax
call fcn.0040ead0
mov rax, qword [rsi]
xor rcx, rcx
test rax, rax
je 0x69b759
mov ecx, dword [rax - 4]
test ecx, ecx
jne 0x69b77d
mov rcx, rsi
mov rdx, qword [rbx + 0xf0]
call fcn.0040ee60
jmp 0x69b77d
mov rcx, rsi
mov rdx, qword [rbx + 0xf0]
call fcn.0040ee60
mov rax, rsi
lea rsp, [rbp + 0x220]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6a77e0
Capabilities:
Hide graphical window

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp qword [rbx + 0xc0], 0
jne 0x6a7896
mov rcx, qword [rbx + 0x10]
call fcn.005d32c0
mov rcx, qword [0x005e60c8]
mov dl, 1
mov r8, rax
call fcn.005c9f20
mov qword [rbx + 0xc0], rax
mov rsi, qword [rbx + 0xc0]
mov rcx, rsi
xor rdx, rdx
call fcn.005ed040
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006a6e50]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xc0]
call fcn.005d32c0
mov rsi, rax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xc0]
call fcn.005d32c0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x6a7941
mov rcx, qword [rbx + 0x10]
call fcn.005d32c0
mov rcx, qword [0x005e60c8]
mov dl, 1
mov r8, rax
call fcn.005c9f20
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov rcx, rsi
mov dl, 1
call fcn.005ed040
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006a6eb0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xe0]
call fcn.005d32c0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe0]
call fcn.005d32c0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xd0], 0
jne 0x6a79dd
mov rcx, qword [rbx + 0x10]
call fcn.005d32c0
mov rcx, qword [0x005e7088]
mov dl, 1
mov r8, rax
call fcn.005c9f20
mov qword [rbx + 0xd0], rax
mov rax, qword [rbx + 0xd0]
mov byte [rax + 0x468], 1
mov rcx, qword [rbx + 0xd0]
call fcn.005d32c0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov edi, eax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd0]
call fcn.005d32c0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x6adcf0
Capabilities:
Access the windows event log

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov dword [rbp + 0x58], r8d
mov word [rbp + 0x5e], r9w
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.0040e9a0
nop
mov rcx, qword [rbp + 0x88]
call fcn.0040fbd0
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x6add52
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 8]
call fcn.0040fbd0
xor rcx, rcx
mov rdx, rax
call sub.advapi32.dll_RegisterEventSourceW
mov rcx, qword [rbp + 0x50]
mov dword [rcx + 0x10], eax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 0x10]
mov edx, dword [rbp + 0x58]
movzx r8, word [rbp + 0x5e]
mov r9d, dword [rbp + 0xa0]
mov qword [rsp + 0x20], 0
mov word [rsp + 0x28], 1
mov dword [rsp + 0x30], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
call sub.advapi32.dll_ReportEventW
nop
lea rcx, [rbp + 0x88]
call fcn.0040e810
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x6af940
Capabilities:
Create service

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0x98], rbp
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rdx
mov qword [rbp + 0x110], r8
nop
lea rcx, [rbp + 0xa0]
xor rdx, rdx
call fcn.00408c10
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0x118], 0
je 0x6af9c9
mov rax, qword [rbp + 0x108]
lea rbx, [rax + 0x118]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x108]
call qword [rbx]
mov rax, qword [rbp + 0x108]
mov eax, dword [rax + 0x108]
mov dword [rbp + 0xbc], eax
cmp dword [rbp + 0xbc], 0
jbe 0x6af9f5
lea rax, [rbp + 0xbc]
mov qword [rbp + 0xb0], rax
jmp 0x6afa00
mov qword [rbp + 0xb0], 0
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0xe8], 0
jne 0x6afa1e
mov qword [rbp + 0xa8], 0
jmp 0x6afa38
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xe8]
call fcn.0040fbd0
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0x10]
call fcn.0040fbd0
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp + 0x90]
call fcn.006ae890
mov rcx, qword [rbp + 0x90]
call fcn.0040fbd0
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x108]
call fcn.006aec50
mov dword [rbp + 0x70], eax
mov rcx, qword [rbp + 0x108]
call fcn.006aecb0
mov dword [rbp + 0x74], eax
mov rcx, qword [rbp + 0x108]
call fcn.006aed10
mov ebx, eax
mov rcx, qword [rbp + 0xa0]
call fcn.0040fbd0
mov rsi, rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xd0]
call fcn.0040fbd0
mov rdi, rax
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp + 0x88]
call fcn.006aeb20
mov rcx, qword [rbp + 0x88]
call fcn.0040fbd0
mov r13, rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xe0]
call fcn.0040fbd0
mov rcx, qword [rbp + 0x110]
mov rdx, qword [rbp + 0x78]
mov r8, qword [rbp + 0x80]
mov r9d, 0xf01ff
mov r10d, dword [rbp + 0x70]
mov dword [rsp + 0x20], r10d
mov r10d, dword [rbp + 0x74]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov r10, qword [rbp + 0xb0]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x50], r13
mov r10, qword [rbp + 0xa8]
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x60], rax
call sub.advapi32.dll_CreateServiceW
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x108]
mov ecx, dword [rbp + 0xbc]
mov dword [rax + 0x108], ecx
cmp qword [rbp + 0xc8], 0
jne 0x6afb81
call fcn.0043ee50
nop
nop
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0x128], 0
je 0x6afbd3
mov rax, qword [rbp + 0x108]
lea rbx, [rax + 0x128]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x108]
call qword [rbx]
jmp 0x6afbd3
nop
mov rcx, qword [rbp + 0xc8]
call sub.advapi32.dll_CloseServiceHandle
nop
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e8f0
lea rcx, [rbp + 0xa0]
call fcn.0040e810
lea rsp, [rbp + 0xd0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x6afcb0
Capabilities:
Delete service

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x70], r8
mov rax, qword [rbp + 0x68]
cmp qword [rax + 0x138], 0
je 0x6afcec
mov rax, qword [rbp + 0x68]
lea rbx, [rax + 0x138]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x68]
call qword [rbx]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x10]
call fcn.0040fbd0
mov rcx, qword [rbp + 0x70]
mov rdx, rax
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x6afd1c
call fcn.0043ee50
nop
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x6afd2f
call fcn.0043ee50
nop
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov rax, qword [rbp + 0x68]
cmp qword [rax + 0x148], 0
je 0x6afd5c
mov rax, qword [rbp + 0x68]
lea rbx, [rax + 0x148]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x68]
call qword [rbx]
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret

Function at 0x6ffc80
Capabilities:
Check os version

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
lea rdx, [0x006ffd74]
call fcn.0040ee60
mov dword [rbp + 0x2c], 0x114
lea rcx, [rbp + 0x2c]
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x6ffd58
mov esi, dword [rbp + 0x30]
mov edi, dword [rbp + 0x34]
mov eax, dword [rbp + 0x3c]
sub eax, 1
test eax, eax
je 0x6ffcd5
sub eax, 1
test eax, eax
jne 0x6ffd58
jmp 0x6ffcdf
mov rcx, rbx
call fcn.0040e810
jmp 0x6ffd58
cmp esi, 5
je 0x6ffce9
cmp esi, 6
jne 0x6ffd3a
test edi, edi
jl 0x6ffd3a
cmp edi, 2
jg 0x6ffd3a
mov rcx, rbx
mov rax, qword [0x007866c0]
mov rdx, qword [rax]
call fcn.0040ee60
mov rax, qword [0x00786720]
cmp byte [rax], 0
jne 0x6ffd1f
mov rcx, rbx
lea rdx, [0x006ffd90]
call fcn.0040ff40
mov rax, qword [0x00786720]
cmp byte [rax], 1
jne 0x6ffd3a
mov rcx, rbx
lea rdx, [0x006ffdac]
call fcn.0040ff40
cmp esi, 4
jg 0x6ffd47
mov rcx, rbx
call fcn.0040e810
cmp esi, 5
jne 0x6ffd58
test edi, edi
jne 0x6ffd58
mov rcx, rbx
call fcn.0040e810
mov rax, rbx
lea rsp, [rbp + 0x148]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x700170
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x80], rcx
mov rcx, qword [rbp + 0x80]
call fcn.0040e9a0
nop
lea rcx, [rbp + 0x38]
mov edx, 0x38
xor r8, r8
call fcn.0040a320
mov dword [rbp + 0x40], 3
mov word [rbp + 0x58], 0x14
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x80]
lea r8, [0x0070025c]
call fcn.00410030
mov rcx, qword [rbp + 0x28]
call fcn.0040fbd0
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x38]
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete al
mov byte [rbp + 0x27], al
nop
lea rcx, [rbp + 0x28]
call fcn.0040e810
lea rcx, [rbp + 0x80]
call fcn.0040e810
movzx rax, byte [rbp + 0x27]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x700620
Capabilities:
Shutdown system

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov ebx, ecx
mov rax, qword [0x00786c90]
cmp dword [rax], 2
jne 0x7006b3
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov edx, 0x28
lea r8, [rbp + 0x58]
call sub.advapi32.dll_OpenProcessToken
test eax, eax
setne cl
test cl, cl
je 0x7006b3
xor rcx, rcx
lea rdx, [0x007006c4]
lea r8, [rbp + 0x4c]
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
setne cl
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x54], 2
mov eax, 0x10
mov dword [rbp + 0x34], 0
test cl, cl
je 0x7006b3
mov rcx, qword [rbp + 0x58]
xor rdx, rdx
lea r8, [rbp + 0x48]
mov r9d, eax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_AdjustTokenPrivileges
mov ecx, ebx
xor rdx, rdx
call sub.user32.dll_ExitWindowsEx
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret