joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019da0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14014e030]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x140019e01
cmp byte [rbx + 0x4a2e], 0
jne 0x140019e01
movsx r9d, word [rbx + 0x5b32]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400096a0
test dil, 1
je 0x140019f28
jmp 0x140019e8c
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b32]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005b21c]
mov edx, 0x10
mulss xmm1, dword [0x14005b1fc]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14005b128]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.1400096a0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140019ee0
lea r11, [0x140054f10]
nop dword [rax]
cmp r9b, 0x23
jne 0x140019ec3
cmp byte [r8], r9b
jne 0x140019ec3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140019eb0
not ecx
call fcn.140011000
test rax, rax
je 0x140019f28
cmp byte [rax + 0xae], 0
je 0x140019f28
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b32]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b32]
call fcn.1400096a0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140013750
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400515d0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001f400
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001f4a7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001f45a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400218b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000a150
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14014e028]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001f4af
mov rcx, rbx
call fcn.14000a150
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001fa20
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14014e030]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001fa83
mov qword [rsp], rbx
lea rbx, [0x140054f10]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001fa63
cmp byte [r8], r9b
jne 0x14001fa63
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001fa50
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b90]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001fab7
mov r10, qword [r10 + 0x5b98]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001fabe
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001faa4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140050440
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor esi, esi
lea r8, [0x14004a670]
mov rbx, rcx
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rax, [0x14004a210]
mov qword [rsp + 0x70], 0x50
mov edx, 0x7f00
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
xorps xmm0, xmm0
lea rdi, [0x14005a57c]
mov edx, 0x7f00
mov qword [rsp + 0x98], rax
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0xb8], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rsp + 0x88]
mov r9d, 0x80000000
mov qword [rsp + 0x58], rsi
mov r8, rdi
mov qword [rsp + 0x50], rax
mov rdx, rdi
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, 0xffffffec
mov r8d, 0x80020
mov rcx, rax
mov qword [rbx + 0x58], rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [rbx + 0x58]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x14005b370]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rbx + 0x58]
movdqu xmmword [rsp + 0xc0], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [rbx + 0x58]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [rbx + 0x58]
mov rcx, rbx
call fcn.14004a280
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.14004fb80
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400515d0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140052374
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400523be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400523be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400523be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400523be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400523be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400523c0
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d7810
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d8212
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d82aa
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d828e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8282
cmp qword [rbp - 0x10], 0
je 0x2fc4d8282
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8248
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d82ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d83b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d83d8
mov eax, 0
jmp 0x2fc4d8426
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d8401
mov eax, 0
jmp 0x2fc4d8426
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8421
mov eax, 0
jmp 0x2fc4d8426
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d842c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d84aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d84a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d84a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d84bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8474
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, 0x10
mov dword [0x140003680], 1
xor esi, esi
mov word [0x140003662], ax
mov eax, 0x12
mov dword [0x140003658], 1
mov word [0x14000368a], ax
mov edi, esi
mov ebx, esi
mov ecx, 0x50
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
lea rcx, [rsp + 0x28]
jae 0x14000115b
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x14000362c]
cmp ebx, dword [rsp + 0x28]
jle 0x1400010de
test eax, eax
jne 0x1400010de
cmp dword [0x140003628], esi
je 0x1400010b2
lea r8d, [rax + 0x28]
mov dword [0x14000368c], 0xa
lea rdx, [0x140003680]
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_SendInput]
mov dword [0x140003628], esi
mov r8d, 0x28
mov dword [0x140003664], 8
lea rdx, [0x140003658]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov eax, 1
mov dword [0x14000362c], eax
cmp edi, dword [rsp + 0x28]
jge 0x1400011bf
cmp dword [0x140003628], esi
jne 0x1400011bf
test eax, eax
je 0x14000111f
mov r8d, 0x28
mov dword [0x140003664], 0xa
lea rdx, [0x140003658]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov dword [0x14000362c], esi
mov r8d, 0x28
mov dword [0x14000368c], 8
lea rdx, [0x140003680]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x20], rbx
mov edi, ebx
mov dword [0x140003628], 1
jmp 0x140001055
call qword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [0x14000362c], esi
je 0x140001190
mov r8d, 0x28
mov dword [0x140003664], 0xa
lea rdx, [0x140003658]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov dword [0x14000362c], esi
cmp dword [0x140003628], esi
je 0x1400011bf
mov r8d, 0x28
mov dword [0x14000368c], 0xa
lea rdx, [0x140003680]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov dword [0x140003628], esi
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x20], rbx
mov edi, ebx
jmp 0x140001055

Function at 0x140001abc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b06
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b08
xor al, al
add rsp, 0x28
ret
Function at 0x140001c60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140001d23
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140001c94
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140001d26
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140001cdf
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140001ce3
test rax, rax
je 0x140001d23
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140001d14
cmp rdx, rax
jb 0x140001d00
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004b60
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x140029558]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x140029558]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
cmp qword [rbx + 0x18], 0x10
jb 0x140004be6
mov rcx, qword [rbx]
jmp 0x140004be9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rbx
call fcn.140005b30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140024b90
add rsp, 0x30
pop rbx
ret
Function at 0x1400052e0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdx, str.Service::start
mov ecx, 0x1000
call fcn.140006b90
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140005325
mov eax, 0x427
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rsi
lea rdx, str.FvSvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14000536f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x30]
cmp eax, 0x424
cmove eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140005389
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400053b0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, str.Service::uninstall
mov ecx, 0x1000
call fcn.140006b90
xor r14d, r14d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov esi, r14d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140005408
mov eax, 0x427
jmp 0x1400054d7
mov r8d, 0xf01ff
mov qword [rsp + 0x68], rdi
lea rdx, str.FvSvc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140005448
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
cmove eax, r14d
jmp 0x1400054d2
lea r8, [rsp + 0x20]
mov qword [rsp + 0x60], rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, 0x64
cmp dword [rsp + 0x24], 1
je 0x14000548f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400054f5
dec ebx
test ebx, ebx
jg 0x140005465
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400054b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x430
jne 0x1400054b9
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov esi, r14d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140024b90
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400054cd
Function at 0x140005760
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str._tWinMainSvc
mov ecx, 0x1000
call fcn.140006b90
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x48], 1
mov rdi, rax
jle 0x140005936
mov rcx, qword [rax + 8]
lea rdx, str._service
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400057d7
lea rcx, str.FvSvc
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov eax, ebx
jmp 0x14000593b
mov rcx, qword [rdi + 8]
lea rdx, str._install
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400057f8
call fcn.140004f20
mov ebx, eax
jmp 0x14000593b
mov rcx, qword [rdi + 8]
lea rdx, str._uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000592b
mov rcx, qword [rdi + 8]
lea rdx, str._start
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005832
call fcn.1400052e0
mov ebx, eax
jmp 0x14000593b
mov rcx, qword [rdi + 8]
lea rdx, str._testservice
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005936
lea r8d, [rax + 0x12]
mov qword [rsp + 0x38], 0xf
lea rdx, str.FvSvc_Test_Console
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], bl
call fcn.140005d90
lea rcx, [rsp + 0x20]
call fcn.140004b60
lea rcx, str.Installing_FvSvc_n
call fcn.140004b00
call fcn.140004f20
test eax, eax
jne 0x140005932
lea rcx, str.Starting_FvSvc_n
call fcn.140004b00
call fcn.1400052e0
test eax, eax
jne 0x14000591f
lea edx, [rax + 1]
lea rcx, [0x140004c10]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str.Press_ESC_to_stop_and_uninstall_service_n
call fcn.140004b00
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__kbhit]
test eax, eax
je 0x1400058da
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
cmp al, 0x1b
je 0x1400058fb
cmp byte [0x14003b8dc], bl
jne 0x1400058fb
lea rcx, [0x14002a3fc]
call fcn.140004b00
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400058c6
lea rcx, [0x14002a384]
call fcn.140004b00
lea rcx, str.Exiting__please_wait_for_service_to_be_stopped_and_uninstalled_n
call fcn.140004b00
lea rcx, str.Console_will_close_automatically_on_exit_n
call fcn.140004b00
lea rcx, str.Uninstalling_FvSvc_n
call fcn.140004b00
call fcn.1400053b0
mov ebx, eax
mov eax, ebx
jmp 0x14000593b
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140024b90
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140006970
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x98
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140040024], eax
jle 0x1400069dd
lea rcx, [0x140040024]
call fcn.140025208
cmp dword [0x140040024], 0xffffffff
jne 0x1400069dd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140040024]
mov dword [0x140040020], eax
call fcn.1400251a8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140006a4f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x68]
lea r8, str._d__02d__02d___02d:_02d:_02d._08d
sub eax, dword [0x140040020]
mov edx, 0x104
mov r9d, dword [rsp + 0x6c]
inc ecx
mov dword [rsp + 0x48], eax
add r9d, 0x76c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [0x14003b8f0]
call fcn.140006910
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024b90
add rsp, 0x98
ret

Function at 0x140006a70
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
test cl, 0x11
je 0x140006b89
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov edi, ecx
call fcn.140006970
mov ecx, 0x800
call fcn.140025364
mov rbx, rax
test rax, rax
je 0x140006b6d
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.1400068a0
lea r8, [0x14002a4f4]
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x14002a4f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140006b65
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x140006b1c
movzx ecx, r8w
jmp 0x140006b29
test edi, 0xefe
je 0x140006b29
mov ecx, 2
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r8w
movzx r8d, di
mov qword [rsp + 0x20], rdx
movzx edx, cx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.140024d38
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024b90
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret