joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a279f680
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 fcn.2a27a0510
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2a27a0510
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2a279f6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2a2a8a644]
mov rbx, rcx
test esi, esi
jle 0x2a279f820
mov rax, qword [0x2a2a8a648]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2a279f73b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2a279f7c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2a279f720
mov rcx, rbx
call fcn.2a279ff50
mov rdi, rax
test rax, rax
je 0x2a279f842
mov rax, qword [0x2a2a8a648]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2a27a0090
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2a2a8a648]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2a279f827
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2a279f7be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2a279f7d0
add dword [0x2a2a8a644], 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 [0x2a2a8a648]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2a279f7be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2a279f680
nop dword [rax]
xor esi, esi
jmp 0x2a279f748
mov rax, qword [0x2a2a8a648]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2a279f680
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2a279f680
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2a279fbc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2a2a8a680]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2a2a8a660]
test rbx, rbx
je 0x2a279fc1c
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 rsi, rsi
je 0x2a279fc13
test eax, eax
jne 0x2a279fc13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2a279fbf8
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 0x2a279ff50
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2a279ffd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2a29e4330]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2a279ffef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2a279fff8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2a279ffef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2a27a0090
Capabilities:
Parse pe header

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

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x140001000
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400245d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
test rcx, rcx
jne 0x140001020
and dword [0x1400247b0], ecx
jmp 0x140001097
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001097
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, qword [0x140a247c0]
lea rdx, [0x1400247c0]
mov r9b, 1
mov dword [0x1400247b0], 1
lea rcx, [0x1400247a0]
mov byte [rsp + 0x20], 1
call fcn.140001a4c
lea rcx, [0x1400247a0]
call fcn.14000172c
mov r8, qword [0x140a247c0]
lea rcx, [0x1400247c0]
xor edx, edx
call fcn.1400053c0
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140004c20
add rsp, 0x78
ret

Function at 0x140002644
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor ebx, ebx
mov qword [rbp + 0x37], rcx
mov dword [rax - 0x58], ebx
lea r9, [rbp + 0x17]
mov qword [rax - 0x60], rbx
lea r8, [rbp + 0x27]
mov dword [rax - 0x68], 0x20
lea rcx, [rbp + 0x67]
mov dword [rax - 0x70], ebx
xorps xmm0, xmm0
mov dword [rax - 0x78], 2
mov edx, 0x40000000
mov dword [rax - 0x80], 0x80
mov qword [rsp + 0x20], rbx
mov qword [rbp + 0x27], 0x30
mov qword [rbp + 0x3f], 0x240
mov qword [rbp + 0x2f], rbx
movdqu xmmword [rbp + 0x47], xmm0
mov qword [rbp + 0x67], rbx
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov rcx, qword [rbp + 0x67]
test eax, eax
jns 0x1400026cf
call qword [sym.imp.ntoskrnl.exe_ZwClose]
or eax, 0xffffffff
jmp 0x14000271f
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [0x1400062a0]
mov dword [rsp + 0x30], 0x1c558
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x17]
mov qword [rbp + 0x6f], rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jns 0x140002713
or ebx, 0xffffffff
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rbp
ret
Function at 0x1400027b4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
xor esi, esi
mov qword [rbp + 0x27], rcx
mov qword [rax - 0x68], rsi
lea r9, [rbp + 7]
mov dword [rax - 0x70], 0x100
lea r8, [rbp + 0x17]
mov qword [rax - 0x78], rsi
lea rcx, [rbp + 0x67]
mov dword [rax - 0x80], esi
xorps xmm0, xmm0
mov dword [rsp + 0x50], esi
mov ebx, 0x110000
mov qword [rsp + 0x48], rsi
mov edx, ebx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rsi
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x67], rsi
mov qword [rbp + 0x17], 0x30
mov qword [rbp + 0x2f], 0x240
mov qword [rbp + 0x1f], rsi
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
test eax, eax
js 0x1400028d7
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x6f]
mov rcx, qword [rbp + 0x67]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x656c6946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
xor edx, edx
mov edi, eax
test eax, eax
jns 0x140002897
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
jmp 0x1400028d5
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], rsi
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov rcx, qword [rbp + 0x6f]
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x67]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
test bl, bl
je 0x1400028d5
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov edi, eax
test eax, eax
jns 0x1400028d7
mov eax, edi
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002e24
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x140a24820]
xor ebx, ebx
mov rdi, rcx
test rax, rax
jne 0x140002e6d
mov rax, qword [0x140a24828]
test rax, rax
jne 0x140002e6d
mov rax, qword [0x140a24830]
test rax, rax
jne 0x140002e6d
mov rcx, qword [0x140a24838]
call fcn.140002f8c
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov r15, rax
test rax, rax
je 0x140002f75
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140002f67
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [0x140a24830]
lea rsi, [r15 + 8]
mov r13, qword [0x140a24828]
shl rcx, 3
add r13, rcx
mov rdi, qword [rsi - 8]
test rdi, rdi
jne 0x140002ee0
cmp qword [rsi], rbx
je 0x140002f67
mov r14, qword [rsi]
sar r14, 0xc
sar rdi, 0xc
add r14, rdi
cmp rdi, r14
jae 0x140002f57
lea rbp, [rdi + rdi*2]
shl rbp, 4
mov rax, qword [0x140a24820]
mov r12, qword [rax + rbp]
cmp r12, 2
jb 0x140002f4b
cmp qword [rax + rbp + 8], r13
jne 0x140002f4b
movabs rax, 0xffff800000000000
shr r12, 0xd
or r12, rax
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140002f4b
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.140004d66
test eax, eax
je 0x140002f60
inc rdi
add rbp, 0x30
cmp rdi, r14
jb 0x140002efb
add rsi, 0x10
jmp 0x140002ece
mov rbx, rdi
shl rbx, 0xc
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400031c0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1400245d0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14b, r9b
mov r15, r8
mov rsi, rdx
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x14000322c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000322c
mov eax, 0xc0000001
jmp 0x1400032d3
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov ecx, esi
call fcn.140003408
mov rbx, rax
test r14b, r14b
je 0x1400032a4
lea rcx, [rsp + 0x28]
call fcn.140004a50
test eax, eax
js 0x1400032a4
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
lea r9, [rsp + 0x30]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140004aec
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
xor r9d, r9d
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140004994
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.1400049d0
nop
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.1400053c0
mov qword [r15], rbx
jmp 0x1400032bb
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140004c20
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400032f4
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400245d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov qword [r11 - 0x50], rdx
and qword [r11 - 0x68], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
and qword [r11 - 0x58], 0
mov ecx, ecx
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003361
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140003361
mov eax, 0xc0000001
jmp 0x1400033e5
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400053c0
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400033d8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140004c20
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret

Function at 0x140003a94
Capabilities:
Parse pe header
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 r12
push r13
push r14
push r15
xor r9d, r9d
mov rbp, rdx
mov r8, rcx
test rcx, rcx
je 0x140003ba2
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003ba2
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140003ba2
mov ecx, 0x20b
cmp word [rax + r8 + 0x18], cx
jne 0x140003aff
mov r11d, dword [rax + r8 + 0x8c]
mov ecx, dword [rax + r8 + 0x88]
jmp 0x140003b09
mov r11d, dword [rax + r8 + 0x7c]
mov ecx, dword [rax + r8 + 0x78]
mov edx, ecx
mov r10d, r9d
add rdx, r8
mov r15d, dword [rdx + 0x24]
mov r12d, dword [rdx + 0x20]
add r15, r8
mov esi, dword [rdx + 0x1c]
add r12, r8
mov r13d, dword [rdx + 0x14]
add rsi, r8
test r13d, r13d
Function at 0x140003be8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400245d0]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor ebx, ebx
mov ecx, ecx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rbx
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003c4a
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140003c4a
xor eax, eax
jmp 0x140003d03
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
mov rdi, rsi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov rdx, qword [rdi + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140003ce8
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x140003c6d
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov ecx, dword [rax + 0xc]
mov esi, dword [rcx + 0x14]
mov edi, esi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov edx, dword [rdi + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140003ce3
mov edi, dword [rdi]
cmp rdi, rsi
je 0x140003cec
jmp 0x140003cb1
mov ebx, dword [rdi + 0x10]
jmp 0x140003cec
mov rbx, qword [rdi + 0x20]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140004c20
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003db4
Capabilities:
Map section object

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
and qword [rbp + 0x6f], 0
lea rax, [rbp - 1]
and qword [rbp + 0x77], 0
xorps xmm0, xmm0
and qword [rbp + 0x7f], 0
xorps xmm1, xmm1
and qword [rbp - 9], 0
mov rdx, rcx
and qword [rbp + 0x27], 0
lea rcx, [rbp - 1]
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x2f], rax
movups xmmword [rbp + 0x3f], xmm0
mov dword [rbp + 0x1f], 0x30
movups xmmword [rbp + 0xf], xmm1
mov dword [rbp + 0x37], 0x40
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r9, [rbp + 0xf]
mov dword [rsp + 0x28], 0x20
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x20], 1
mov edx, 0x100020
lea rcx, [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x140003eda
mov rax, qword [rbp + 0x77]
lea r8, [rbp + 0x1f]
and qword [rbp + 0x2f], 0
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
mov edx, 0xf001f
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
js 0x140003eda
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp - 9]
mov dword [rsp + 0x48], 4
lea r8, [rbp + 0x7f]
mov dword [rsp + 0x40], 0x100000
xor r9d, r9d
mov dword [rsp + 0x38], 1
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x3e8
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
js 0x140003eda
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rbp + 0x7f]
jmp 0x140003edc
xor eax, eax
add rsp, 0xb0
pop rbp
ret
Function at 0x140003ee8
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1400245d0]
xor rax, rsp
mov qword [rbp + 0x37], rax
movups xmm0, xmmword [0x140005ae0]
mov eax, dword [0x140005b08]
mov rbx, rcx
movups xmm1, xmmword [0x140005af0]
mov dword [rbp + 0x2f], eax
xor edi, edi
movzx eax, word [0x140005b0c]
lea rcx, [rbp - 0x39]
movups xmmword [rbp + 7], xmm0
mov qword [rbp - 0x59], rdx
lea rdx, [rbp + 7]
movsd xmm0, qword [0x140005b00]
movsd qword [rbp + 0x27], xmm0
mov qword [rbp - 0x51], rdi
movups xmmword [rbp + 0x17], xmm1
mov word [rbp + 0x33], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x39]
mov dword [rbp - 0x29], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x19], rax
lea r8, [rbp - 0x29]
mov qword [rbp - 0x21], rdi
mov edx, 0xf001f
mov dword [rbp - 0x11], 0x40
lea rcx, [rbp - 0x49]
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
test eax, eax
js 0x140004001
mov rsi, qword [rbp - 0x49]
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004001
mov rdx, qword [rbp - 0x59]
lea rax, [rbp - 0x59]
mov dword [rsp + 0x48], 4
lea r8, [rbp - 0x51]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov rcx, rsi
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
or rdx, 0xffffffffffffffff
mov qword [rbp - 0x41], rbx
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
cmove rdi, qword [rbp - 0x51]
mov rax, rdi
jmp 0x140004003
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140004c20
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000431c
Capabilities:
Find process by pid

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, 0x40
mov rbp, rdx
mov r14, r9
lea rdx, [rax - 0x10]
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140004364
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140004364
mov eax, 0xc0000001
jmp 0x1400043d8
xor esi, esi
jmp 0x1400043d1
mov rcx, qword [0x140a24838]
lea rdx, [rsi + rbp]
call fcn.140004568
test rax, rax
je 0x1400043d6
and qword [rsp + 0x30], 0
mov rcx, rax
and ecx, 0xfff
mov edx, 0x1000
sub rdx, rcx
mov r8, rbx
cmp rdx, rbx
lea rcx, [rsi + r14]
mov r9d, 1
cmovb r8, rdx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
mov edi, eax
mov rax, qword [rsp + 0x30]
sub rbx, rax
add rsi, rax
test edi, edi
js 0x1400043d6
test rax, rax
je 0x1400043d6
test rbx, rbx
jne 0x140004368
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14045b185
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x312ad329
jmp 0x140476eaf
mov eax, 0x68356a86
dec eax
rol ax, 0xec
mov rax, qword [rbp + rbx*8]
jae 0x14045e8a0
xor r10d, edx
and r10d, 0xff
mov r10d, dword [rdi + r10*4]
call fcn.14046bd83
push 0x4391c4be
adc rdi, 2
push 0x282dd36
or r10w, dx
not r10w
mov word [rdi], r10w
lea rsp, [rsp + 0x10]
jmp fcn.14047124b
mov r8, rax
lea rsp, [rsp + 8]
jmp 0x140489044
lea rsp, [rsp + 8]
jne 0x140457811
mov eax, 0x8e89b316
mov rax, qword [rbp + riz]
call fcn.140469f96
cmp ebx, 1
jne 0x14048c250
mov ecx, 0x988a9d36
mov rcx, rax
jmp 0x1404970a6
jmp 0x14045bf58
jmp 0x140489044
jmp 0x140470bbc
cmp ebx, 2
push 0x11326781
call fcn.14047f679
push 0xffffffffdc2515be
dec ebx
jmp 0x14046c05e
jmp 0x140451f00
jmp 0x140475dcc

Function at 0x14046d61e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov word [rbp + riz], cx
push 0xffffffffcc09e9b1
call fcn.14046fb6c
Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ac20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

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