joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a670
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2070
call fcn.180052f60
sub rsp, rax
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp rcx, rsi
je 0x18001a83d
cmp rdx, rsi
je 0x18001a83d
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
jne 0x18001a6c8
mov esi, 1
jmp 0x18001a83d
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov rdi, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rdi, rsi
je 0x18001a815
cmp rdi, 0xffffffffffffffff
je 0x18001a815
cmp rax, rsi
je 0x18001a815
cmp rax, 0xffffffffffffffff
je 0x18001a829
xor eax, eax
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, esi
je 0x18001a780
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, esi
je 0x18001a780
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x50], rax
je 0x18001a78e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001a834
mov dword [rsp + 0x40], esi
jmp 0x18001a7e4
mov r8d, dword [rsp + 0x40]
cmp r8d, esi
je 0x18001a80b
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x1060]
mov rcx, rbx
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x18001a780
mov eax, dword [rsp + 0x40]
cmp eax, dword [rsp + 0x44]
jne 0x18001a780
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.18004afb0
cmp eax, esi
jne 0x18001a780
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x18001a794
jmp 0x18001a780
mov esi, 1
jmp 0x18001a780
cmp rax, 0xffffffffffffffff
je 0x18001a829
cmp rax, rsi
je 0x18001a829
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x18001a83d
cmp rdi, rsi
je 0x18001a83d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.18003c1a0
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18001ab80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], bl
call fcn.18003eb60
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.18001aa7c
mov r11d, 0x179b06cc
movzx edx, byte [rsp + rbx + 0x20]
movzx eax, r11b
mov ecx, r11d
xor rdx, rax
shr ecx, 8
lea rax, [0x1800783c0]
mov r11d, dword [rax + rdx*4]
inc rbx
xor r11d, ecx
cmp rbx, 0x24
jl 0x18001abc8
not r11d
mov eax, r11d
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18003c1a0
add rsp, 0x140
pop rbx
ret

Function at 0x18001ac64
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x18001acfb
test rdx, rdx
je 0x18001acfb
mov ecx, 0x3a
cmp word [rbx + 2], cx
jne 0x18001acfb
movzx eax, word [rbx]
mov word [rsp + 0x22], cx
lea rdx, [rsp + 0x30]
mov word [rsp + 0x20], ax
xor eax, eax
lea rcx, [rsp + 0x20]
mov r8d, 0x208
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18001acfb
lea rdx, [rbx + 4]
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call qword [sym.imp.SHLWAPI.dll_StrNCatW]
lea rdx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, 1
jmp 0x18001acfd
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18003c1a0
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret

Function at 0x18001af24
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x434
call fcn.18003eb60
mov edx, ebx
mov ecx, 8
mov dword [rsp + 0x20], 0x438
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x18001afad
cmp rax, 0xffffffffffffffff
je 0x18001afc1
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Module32FirstW
jmp 0x18001afa9
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.18001b62c
test eax, eax
je 0x18001afad
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x18001af8b
cmp rbx, 0xffffffffffffffff
je 0x18001afc1
test rbx, rbx
je 0x18001afc1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18003c1a0
mov rbx, qword [rsp + 0x490]
add rsp, 0x470
pop rdi
ret
Function at 0x18001afe4
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x18001b07f
cmp rax, 0xffffffffffffffff
je 0x18001b07f
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.18003eb60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x18001b07f
mov rdx, rsi
lea rcx, [rsp + 0x30]
call rdi
test eax, eax
je 0x18001b07f
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x18001b060
cmp rbx, 0xffffffffffffffff
je 0x18001b093
test rbx, rbx
je 0x18001b093
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18003c1a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18001b0b8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
xor ebx, ebx
mov edi, r8d
mov rsi, rcx
cmp rcx, rbx
jne 0x18001b0de
xor eax, eax
jmp 0x18001b18a
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], 0x68
lea r8d, [rdx + 0x60]
call fcn.18003eb60
cmp edi, ebx
jne 0x18001b10d
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], bx
xor eax, eax
mov rcx, rsi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.180019bf4
mov rsi, rax
lea rcx, [rsp + 0x50]
neg edi
mov qword [rsp + 0x48], rcx
sbb eax, eax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbx
not eax
and eax, 0x8000000
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x18001b17f
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.18003d618
mov rax, rbx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18001b350
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
je 0x18001b50d
call fcn.18001b220
lea rcx, [0x18001b524]
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x68], eax
cmp rcx, rdi
je 0x18001b50d
lea rdx, [rsp + 0x68]
call fcn.18001afe4
cmp dword [rsp + 0x70], edi
je 0x18001b50d
mov r8d, dword [rsp + 0x6c]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, rdi
je 0x18001b4f9
cmp rax, 0xffffffffffffffff
je 0x18001b50d
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, edi
je 0x18001b4eb
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, edi
je 0x18001b4e0
mov rcx, rsi
call fcn.180019bf4
lea r8d, [rdi + 0x60]
lea rcx, [rsp + 0xa8]
xor edx, edx
mov dword [rsp + 0xa0], 0x68
mov rsi, rax
call fcn.18003eb60
mov rcx, qword [rsp + 0x60]
lea eax, [rdi + 5]
mov word [rsp + 0xe0], ax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
mov r8, rsi
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0xdc], 1
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, edi
je 0x18001b4cd
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.18003d618
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x18001b50f
cmp rax, 0xffffffffffffffff
je 0x18001b50d
cmp rax, rdi
je 0x18001b50d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18001c114
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
sub rsp, 0x38
lea rax, [r11 + 0x20]
mov r9d, 4
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smprule_
mov dword [r11 - 0x10], r9d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
cmp eax, ecx
sete cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x18001c154
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdi, r9
mov r12, r8
mov rbp, rdx
mov rsi, rcx
cmp r9, rbx
je 0x18001c18c
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x18001c18e
mov eax, ebx
lea r9d, [rax + rax + 2]
mov r8, r12
mov rdx, rbp
mov dword [rsp + 0x28], r9d
mov r9d, 1
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18003c1a0
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18001c1d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x860
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbp, r9
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], r12
mov word [rcx + 8], r12w
mov dword [rsp + 0x38], 1
mov rsi, r12
cmp r8, r12
je 0x18001c34d
mov word [rsp + 0x50], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call fcn.18003eb60
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x34], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
mov r8, rbp
mov rdx, rdi
mov r13, 0xffffffff80000002
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x34], 1
je 0x18001c29d
cmp dword [rsp + 0x34], 2
jne 0x18001c34d
mov eax, dword [rsp + 0x30]
cmp eax, r12d
je 0x18001c34d
cmp eax, 0x800
jbe 0x18001c2f3
lea rcx, [rax + 2]
call fcn.18003d658
mov rsi, rax
mov r8d, dword [rsp + 0x30]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.18003eb60
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rbp
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
jmp 0x18001c319
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbp
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rsp + 0x50]
cmp rsi, r12
cmovne rdx, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180002638
cmp rsi, r12
je 0x18001c34d
mov rcx, rsi
call fcn.18003d618
mov rax, rbx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.18003c1a0
mov rbx, qword [rsp + 0x898]
add rsp, 0x860
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001c378
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r13
mov eax, 0x20c0
call fcn.180052f60
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x20e8], rbx
mov qword [rsp + 0x20f8], rbp
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x20b0], rax
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x80], rcx
xor ebp, ebp
mov dword [rsp + 0x44], ebp
lea ecx, [rbp + 8]
call fcn.18003c75c
cmp rax, rbp
je 0x18001c3de
mov qword [rax], rbx
jmp 0x18001c3e1
mov rax, rbp
mov qword [rbx], rax
mov rcx, rbx
call fcn.1800071ec
mov qword [rbx + 0x30], rax
mov byte [rax + 0x41], 1
mov rax, qword [rbx + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rbx + 0x30]
mov qword [rax], rax
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x10], rax
mov qword [rbx + 0x38], rbp
mov dword [rsp + 0x44], 1
lea r13, vtable.RegHandleHolder.0
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x18001c542
mov esi, ebp
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xb0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
jne 0x18001c53d
inc esi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x58]
call fcn.180002638
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.180017744
nop
cmp qword [rsp + 0x78], 8
jb 0x18001c4f8
mov rcx, qword [rsp + 0x60]
call fcn.18003c660
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xb0]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
je 0x18001c490
mov rcx, qword [rsp + 0x50]
jmp 0x18001c542
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x48], r13
cmp rcx, rbp
je 0x18001c552
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x20b0]
xor rcx, rsp
call fcn.18003c1a0
lea r11, [rsp + 0x20c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x18001c7a0
Capabilities:
Check if file exists
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rsi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18001c895
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rbx, rax
test rax, rax
je 0x18001c895
lea rdx, str..sys
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18001c7ee
lea edi, [rax + 1]
jmp 0x18001c809
lea rdx, str..exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18001c895
lea edi, [rax + 0x10]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18001c895
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rsi
lea rdx, str.swvv
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov rcx, rax
mov r8, rdx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
xor edi, edi
test rax, rax
setne dil
test rax, rax
je 0x18001c888
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
jmp 0x18001c897
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x18001c8ac
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
test rcx, rcx
je 0x18001c949
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18001c949
lea r8d, [rdi + 0x10]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x18001c904
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x18001c92d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x18001c928
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x18001c92d
mov edi, 1
test rsi, rsi
je 0x18001c93b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x18001c949
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18001ca18
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, rcx
test rcx, rcx
je 0x18001cac2
lea r8d, [rdi + 4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18001cac2
lea r8d, [rdi + 4]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x18001ca6e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x18001caa6
and dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x18]
call fcn.18003eb60
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18001caa6
cmp dword [rsp + 0x24], 4
mov eax, 1
cmove edi, eax
test rsi, rsi
je 0x18001cab4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x18001cac2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x18001ea64
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x480
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x1800764c0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x260], di
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x226]
call fcn.18003eb60
mov r9d, 0x104
lea r8, [rsp + 0x260]
lea rdx, str.poflt64.sys
mov rcx, rbx
call fcn.18001a864
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x18001eb44
cmp word [0x18007a480], di
je 0x18001eb17
mov r8d, 0x104
lea rdx, [0x18007a480]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, str.poflt64.sys
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x18001eb44
lea rdx, [rsp + 0x260]
lea rcx, str.file_not_found:__s
call fcn.1800367c4
xor eax, eax
jmp 0x18001ecae
mov word [rsp + 0x50], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18003eb60
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.driverspoflt64.sys
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x18001ec94
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x50]
call fcn.18001a670
cmp eax, edi
jne 0x18001ec8d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
cmp eax, edi
je 0x18001ebd7
lea rcx, str.upgrade_poflt_driver_succeeded
call fcn.180018d40
jmp 0x18001ecac
lea rdx, [rsp + 0x50]
lea rcx, str.overwrite__s_failed__rename_it
call fcn.180019070
call fcn.18001ab80
mov r9d, eax
lea r8, [rsp + 0x50]
lea rdx, str._s._08x.dirty
lea rcx, [rsp + 0x28]
call fcn.18001bccc
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
je 0x18001ec67
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
cmp eax, edi
je 0x18001ec51
lea rcx, str.upgrade_poflt_driver_succeeded
call fcn.180018d40
jmp 0x18001ec79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.copy_poflt_driver_failed:__d
call fcn.180019070
jmp 0x18001ec79
lea rdx, [rsp + 0x50]
lea rcx, str.rename__s_failed
call fcn.180019070
nop
cmp qword [rsp + 0x48], 8
jb 0x18001ecac
mov rcx, qword [rsp + 0x30]
call fcn.18003c660
jmp 0x18001ecac
mov ebx, 1
jmp 0x18001ecac
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.18003c1a0
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret