joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cff40
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
call sub.user32.dll_GetMessagePos
mov ecx, eax
call fcn.00418bc0
mov dword [rbp + 0x3c], eax
movsx rax, word [rbp + 0x3c]
mov dword [rbp + 0x34], eax
movsx rax, word [rbp + 0x3e]
mov dword [rbp + 0x38], eax
mov rcx, rbx
mov rdx, qword [rbp + 0x34]
call fcn.005c6490
mov qword [rbp + 0x158], rax
test rdi, rdi
jne 0x5cffab
mov rcx, rbx
mov rdx, qword [rbp + 0x158]
xor r8, r8
xor r9, r9
mov byte [rsp + 0x20], 0
call fcn.005cfd60
mov rdi, rax
test rdi, rdi
je 0x5d009a
cmp rdi, rbx
je 0x5cffd9
mov eax, dword [rbp + 0x158]
sub eax, dword [rdi + 0x80]
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x15c]
sub eax, dword [rdi + 0x84]
mov dword [rbp + 0x44], eax
jmp 0x5cffe4
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x40], rax
movzx eax, word [rsi + 0x10]
mov dword [rbp + 0x48], eax
mov rax, qword [rsi + 8]
mov qword [rbp + 0x50], rax
movzx rax, word [rsi + 0x12]
cmp rax, 0x201
jge 0x5d0024
sub rax, 0xa1
cmp rax, 2
jb 0x5d0047
sub rax, 3
cmp rax, 2
jb 0x5d0053
sub rax, 3
cmp rax, 2
jae 0x5d0059
jmp 0x5d004d
sub rax, 0x201
cmp rax, 2
jb 0x5d0047
sub rax, 3
cmp rax, 2
jb 0x5d0053
sub rax, 3
cmp rax, 2
jae 0x5d0059
jmp 0x5d004d
mov byte [rbp + 0x4c], 0
jmp 0x5d005d
mov byte [rbp + 0x4c], 2
jmp 0x5d005d
mov byte [rbp + 0x4c], 1
jmp 0x5d005d
mov byte [rbp + 0x4c], 0
lea rcx, [rbp + 0x58]
call sub.user32.dll_GetKeyboardState
lea rcx, [rbp + 0x58]
call fcn.0068b670
mov ebx, eax
call fcn.005c12d0
or bx, ax
mov word [rbp + 0x4d], bx
mov rcx, rdi
mov edx, 0xb04b
xor r8, r8
lea r9, [rbp + 0x40]
call fcn.005c8d80
mov qword [rsi + 0x18], rax
mov al, 1
jmp 0x5d009d
xor rax, rax
lea rsp, [rbp + 0x168]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x60a900
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.0040e9b0
nop
xor rcx, rcx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x60a9f4
nop
mov dword [rbp + 0x38], 0
cmp qword [rbp + 0x68], 0
je 0x60a947
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 0x60a98e
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.0040fbe0
mov rcx, rax
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x34]
add r8d, 2
movsxd r8, r8d
call fcn.004088e0
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 0x60a9ec
nop
call sub.user32.dll_CloseClipboard
jmp 0x60aa11
mov rcx, qword [0x004287a0]
mov dl, 1
mov r8, qword [0x0078aa88]
call fcn.0043da50
mov rcx, rax
call fcn.0040d9d0
nop
lea rcx, [rbp + 0x68]
call fcn.0040e820
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x611de0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x00611e34]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x611e01
or bx, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x611e15
or bx, 4
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x611e29
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x679fe0
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 [0x0077b710], 0
mov word [rbp + 0x54], 0
lea rcx, [rbp + 0x54]
call sub.user32.dll_GetKeyboardLayoutNameW
mov rcx, qword [0x00575f80]
mov dl, 1
call fcn.005776b0
mov qword [rbp + 0x70], rax
nop
mov rcx, qword [rbp + 0x70]
mov rdx, 0xffffffff80000002
call fcn.00577970
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 0x54]
mov r8d, 0xa
call fcn.0040fce0
lea rcx, [rbp + 0x30]
lea rdx, [0x0067a200]
mov r8, qword [rbp + 0x28]
call fcn.00410040
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x30]
call fcn.00577d80
test al, al
je 0x67a11c
mov rcx, qword [rbp + 0x70]
lea rdx, [rbp + 0x68]
lea r8, [0x0067a274]
call fcn.00578a80
mov rcx, qword [rbp + 0x68]
mov edx, 0x8000
call fcn.00441810
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x67a11c
nop
mov rcx, qword [rbp + 0x78]
lea rdx, [0x0067a28c]
call fcn.0041b140
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x67a112
call qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x67a112
mov rcx, qword [rbp + 0x90]
call fcn.00679f50
test eax, eax
je 0x67a0f6
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x50], eax
jmp 0x67a100
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 [0x0077b710], al
nop
mov rcx, qword [rbp + 0x78]
call sub.kernel32.dll_FreeLibrary_2
nop
mov rcx, qword [rbp + 0x70]
call fcn.0040b570
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040e900
lea rcx, [rbp + 0x68]
call fcn.0040e820
lea rsp, [rbp + 0x80]
pop rbp
ret

Function at 0x67a310
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 0x67a36e
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x67a349
add bx, 0x2000
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x67a35e
add bx, 0x4000
mov eax, dword [rbp + 0x30]
test eax, 0x20000000
je 0x67a36e
add bx, 0x8000
mov eax, ebx
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x68b5a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x0068b608]
mov eax, ecx
test ax, 4
je 0x68b5ba
or bx, 1
mov eax, ecx
test ax, 8
je 0x68b5c7
or bx, 4
mov eax, ecx
test ax, 1
je 0x68b5d4
or bx, 8
mov eax, ecx
test ax, 2
je 0x68b5e1
or bx, 0x10
test cx, 0x10
je 0x68b5ec
or bx, 0x20
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x68b600
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x68b610
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
movzx rsi, word [0x0068b660]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x68b634
or si, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x68b648
or si, 4
test ebx, 0x20000000
je 0x68b654
or si, 2
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x6998d0
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 0x699ae9
mov rcx, qword [0x004dab88]
mov dl, 1
call fcn.0050aea0
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x70], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
call fcn.0040e820
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 0x699ac7
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.005df070
test al, al
je 0x699ab1
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, [0x00699b74]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.00434440
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 0x699ab1
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x00699be2]
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 0x699aa4
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.0040fce0
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 0x699aa4
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.0040fce0
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 0x69996f
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.0050ad50
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.0040e820
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x69ae60
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00795b70]
cmp byte [rax + 0x131], 0
jne 0x69af03
cmp qword [0x00795ba8], 0
jne 0x69aea6
call sub.kernel32.dll_GetCurrentThreadId_1
mov ecx, 3
mov rdx, qword [0x0077d868]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00795ba8], rax
cmp qword [0x00795ba0], 0
jne 0x69aec8
xor rcx, rcx
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00795ba0], rax
cmp qword [0x00795bb0], 0
jne 0x69af03
xor rcx, rcx
mov edx, 0x3e8
mov r8, qword [0x0077d860]
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 [0x00795bb0], rax
add rsp, 0x48
ret

Function at 0x69bfd0
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 0x69c0bb
cmp dword [rbx + 0x100], 0
jne 0x69c0b1
mov rax, qword [rbx + 0x2a8]
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x0069beb0]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0xf8]
cmp dword [rax + 0x10], 0
je 0x69c0b1
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 0x69c05f
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0xf8]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x69c0b0
mov rcx, qword [rbx + 0xf8]
mov edx, esi
call fcn.00503c30
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 0x69c070
nop
lea rax, [rbx + 0x100]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x69c3d0
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00795b70]
cmp qword [rax + 0x2a8], 0
je 0x69c596
test sil, sil
jne 0x69c4b8
cmp dword [rbx + 0x110], 0
jne 0x69c4a9
mov rcx, rbx
call fcn.006a09d0
lea rcx, [0x0069c2a0]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0x88], 0
je 0x69c46b
mov rax, qword [0x00795b70]
cmp byte [rax + 0x16b], 0
je 0x69c46b
mov rcx, qword [rbx + 0x178]
call fcn.00411530
mov rdi, rax
test edi, edi
jl 0x69c46a
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 0x69c44c
nop
mov rax, qword [rbx + 0x108]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x69c4a8
mov rcx, qword [rbx + 0x108]
mov edx, edi
call fcn.00503c30
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 0x69c47c
nop
lea rax, [rbx + 0x110]
add dword [rax], 1
jmp 0x69c596
cmp dword [rbx + 0x110], 0
jle 0x69c596
lea rax, [rbx + 0x110]
sub dword [rax], 1
cmp dword [rbx + 0x110], 0
jne 0x69c596
cmp qword [rbx + 0x88], 0
je 0x69c52b
mov rax, qword [0x00795b70]
cmp byte [rax + 0x16b], 0
je 0x69c52b
mov rcx, qword [rbx + 0x178]
call fcn.00411530
mov rdi, rax
test edi, edi
jl 0x69c52a
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 0x69c509
nop
mov rax, qword [rbx + 0x108]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x69c568
mov rcx, qword [rbx + 0x108]
mov edx, edi
call fcn.00503c30
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 0x69c53c
nop
mov rax, qword [rbx + 0x108]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x178]
mov rdx, qword [0x00686848]
mov r8d, 1
xor r9, r9
call fcn.004118c0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x69d790
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 0x69d7fe
cmp byte [rbx + 0x16b], 0
jne 0x69d7fe
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.0040eae0
mov rax, qword [rsi]
xor rcx, rcx
test rax, rax
je 0x69d7e9
mov ecx, dword [rax - 4]
test ecx, ecx
jne 0x69d80d
mov rcx, rsi
mov rdx, qword [rbx + 0xf0]
call fcn.0040ee70
jmp 0x69d80d
mov rcx, rsi
mov rdx, qword [rbx + 0xf0]
call fcn.0040ee70
mov rax, rsi
lea rsp, [rbp + 0x220]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6a9870
Capabilities:
Hide graphical window

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp qword [rbx + 0xc0], 0
jne 0x6a9926
mov rcx, qword [rbx + 0x10]
call fcn.005d5350
mov rcx, qword [0x005e8158]
mov dl, 1
mov r8, rax
call fcn.005cbfb0
mov qword [rbx + 0xc0], rax
mov rsi, qword [rbx + 0xc0]
mov rcx, rsi
xor rdx, rdx
call fcn.005ef0d0
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006a8ee0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xc0]
call fcn.005d5350
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.005d5350
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x6a99d1
mov rcx, qword [rbx + 0x10]
call fcn.005d5350
mov rcx, qword [0x005e8158]
mov dl, 1
mov r8, rax
call fcn.005cbfb0
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov rcx, rsi
mov dl, 1
call fcn.005ef0d0
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006a8f40]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xe0]
call fcn.005d5350
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.005d5350
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xd0], 0
jne 0x6a9a6d
mov rcx, qword [rbx + 0x10]
call fcn.005d5350
mov rcx, qword [0x005e9118]
mov dl, 1
mov r8, rax
call fcn.005cbfb0
mov qword [rbx + 0xd0], rax
mov rax, qword [rbx + 0xd0]
mov byte [rax + 0x468], 1
mov rcx, qword [rbx + 0xd0]
call fcn.005d5350
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.005d5350
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x6afd80
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.0040e9b0
nop
mov rcx, qword [rbp + 0x88]
call fcn.0040fbe0
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x6afde2
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 8]
call fcn.0040fbe0
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.0040e820
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x6b19d0
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.00408c20
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0x118], 0
je 0x6b1a59
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 0x6b1a85
lea rax, [rbp + 0xbc]
mov qword [rbp + 0xb0], rax
jmp 0x6b1a90
mov qword [rbp + 0xb0], 0
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0xe8], 0
jne 0x6b1aae
mov qword [rbp + 0xa8], 0
jmp 0x6b1ac8
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xe8]
call fcn.0040fbe0
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0x10]
call fcn.0040fbe0
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp + 0x90]
call fcn.006b0920
mov rcx, qword [rbp + 0x90]
call fcn.0040fbe0
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x108]
call fcn.006b0ce0
mov dword [rbp + 0x70], eax
mov rcx, qword [rbp + 0x108]
call fcn.006b0d40
mov dword [rbp + 0x74], eax
mov rcx, qword [rbp + 0x108]
call fcn.006b0da0
mov ebx, eax
mov rcx, qword [rbp + 0xa0]
call fcn.0040fbe0
mov rsi, rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xd0]
call fcn.0040fbe0
mov rdi, rax
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp + 0x88]
call fcn.006b0bb0
mov rcx, qword [rbp + 0x88]
call fcn.0040fbe0
mov r13, rax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 0xe0]
call fcn.0040fbe0
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 0x6b1c11
call fcn.00440610
nop
nop
mov rax, qword [rbp + 0x108]
cmp qword [rax + 0x128], 0
je 0x6b1c63
mov rax, qword [rbp + 0x108]
lea rbx, [rax + 0x128]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x108]
call qword [rbx]
jmp 0x6b1c63
nop
mov rcx, qword [rbp + 0xc8]
call sub.advapi32.dll_CloseServiceHandle
nop
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e900
lea rcx, [rbp + 0xa0]
call fcn.0040e820
lea rsp, [rbp + 0xd0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x6b1d40
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 0x6b1d7c
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.0040fbe0
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 0x6b1dac
call fcn.00440610
nop
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x6b1dbf
call fcn.00440610
nop
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_CloseServiceHandle
mov rax, qword [rbp + 0x68]
cmp qword [rax + 0x148], 0
je 0x6b1dec
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 0x6ff690
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.0040e9b0
nop
lea rcx, [rbp + 0x38]
mov edx, 0x38
xor r8, r8
call fcn.0040a330
mov dword [rbp + 0x40], 3
mov word [rbp + 0x58], 0x14
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x80]
lea r8, [0x006ff77c]
call fcn.00410040
mov rcx, qword [rbp + 0x28]
call fcn.0040fbe0
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.0040e820
lea rcx, [rbp + 0x80]
call fcn.0040e820
movzx rax, byte [rbp + 0x27]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x6ffa70
Capabilities:
Shutdown system

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov ebx, ecx
mov rax, qword [0x0078bbf8]
cmp dword [rax], 2
jne 0x6ffb03
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 0x6ffb03
xor rcx, rcx
lea rdx, [0x006ffb14]
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 0x6ffb03
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