joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a310
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
nop
call sub.kernel32.dll_GetCommandLineW
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040ae90
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00410bc0
mov rcx, qword [0x00432e08]
mov rdx, qword [rbp + 0x48]
call fcn.00409f40
lea rcx, [rbp + 0x38]
lea rdx, [0x0042a550]
mov rax, qword [0x00432e08]
mov r8, qword [rax]
call fcn.0040b220
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040ac80
mov rcx, qword [rbp + 0x30]
call fcn.00411960
lea rcx, [0x0042a564]
mov rax, qword [0x00432e08]
mov rdx, qword [rax]
mov r8d, 1
call fcn.0040b520
mov ebx, eax
lea rcx, [0x0042a574]
mov rax, qword [0x00432e08]
mov rdx, qword [rax]
mov r8d, 1
call fcn.0040b520
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00432e08]
mov rdx, qword [rdx]
mov r8d, ebx
mov r9d, eax
sub r9d, ebx
add r9d, 1
call fcn.0040b440
lea rcx, [0x0042a584]
mov rax, qword [0x00432e08]
mov rdx, qword [rax]
mov r8d, 1
call fcn.0040b520
test eax, eax
jle 0x42a435
xor ecx, ecx
xor edx, edx
lea r8, [0x0042a58e]
xor r9, r9
call sym.msLpro64.aa.aa.dll_Control_RunDLL
jmp 0x42a4d9
mov ecx, 0x1388
call sub.kernel32.dll_Sleep
lea rcx, [0x0042a5a0]
mov rax, qword [0x00432e08]
mov rdx, qword [rax]
mov r8d, 1
call fcn.0040b520
test eax, eax
jle 0x42a472
xor ecx, ecx
xor edx, edx
lea r8, [0x0042a5b2]
xor r9, r9
call sym.msLpro64.aa.aa.dll_Control_RunDLL
lea rcx, [0x0042a5c4]
mov rax, qword [0x00432e08]
mov rdx, qword [rax]
mov r8d, 1
call fcn.0040b520
test eax, eax
jle 0x42a4a5
xor ecx, ecx
xor edx, edx
lea r8, [0x0042a5d8]
xor r9, r9
call sym.msLpro64.aa.aa.dll_Control_RunDLL
lea rcx, [0x0042a5e8]
mov rax, qword [0x00432e08]
mov rdx, qword [rax]
mov r8d, 1
call fcn.0040b520
test eax, eax
jle 0x42a4d8
xor ecx, ecx
xor edx, edx
lea r8, [0x0042a5fa]
xor r9, r9
call sym.msLpro64.aa.aa.dll_Control_RunDLL
nop
lea rcx, [rbp + 0x30]
call fcn.00409a40
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409ad0
lea rcx, [rbp + 0x58]
call fcn.004099f0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x14000d910
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d977
cmp rax, rbx
jne 0x14000d96a
mov ebx, 1
mov esi, ebx
jmp 0x14000d97c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d94f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d994
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000da00
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d9f5
mov dword [0x140016c68], ebx
lea r15, [0x140010bb8]
lea rdi, [0x140010ba0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d9e7
test eax, eax
jne 0x14000d9eb
cmp qword [rdi], r14
je 0x14000d9dc
mov rax, qword [rdi]
mov rcx, qword [0x140010b58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d9be
test eax, eax
je 0x14000d9fb
mov eax, 0xff
jmp 0x14000db56
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000da27
lea rdx, [0x140010b98]
lea rcx, [0x140010b60]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000da35
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000da68
lea rcx, [0x140016c80]
call fcn.14000dfd0
test eax, eax
je 0x14000da68
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000da81
mov eax, 0xff
jmp 0x14000db56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000db07
test ax, ax
je 0x14000da9c
test edx, edx
jne 0x14000db07
sub ax, bx
cmp ax, di
ja 0x14000dab2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000da9c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400019fc
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000daf0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000db05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000db56
cmp ax, 0x22
jne 0x14000db1b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000da8a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140188000
add rsp, 0x28
jmp 0x14000d910
Function at 0x1400056a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000579b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400057a3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400057da
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400057b0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140005805
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000582b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140005810
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000b0b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000b0f5
xor al, al
jmp 0x14000b142
cmp word [rbx], 0
je 0x14000b10d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000b100
cmp word [rsp + 0x30], 0
je 0x14000b13b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000b163
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000b120
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c3a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14001065c
int3
Function at 0x14000b220
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
movzx eax, cl
mov rcx, qword [0x14002eac0]
test rcx, rcx
je 0x14000b291
test al, al
je 0x14000b266
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000b25f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000bb10
mov rcx, qword [0x14002eac0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b284
mov rcx, qword [0x14002eac0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002eac0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002eacd], 0
je 0x14000b389
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400222e8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140033340]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b36a
test al, 0x10
je 0x14000b36a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b310
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000b4a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14000c340
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002eac8]
lea rsi, [0x140035340]
mov rdi, rcx
test r11d, r11d
jne 0x14000b519
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000b610
test al, al
je 0x14000b5f9
lea rcx, [rsp + 0x20]
call fcn.140014aa0
movsxd r11, dword [0x14002eac8]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002eac8], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b554
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b544
add rax, 2
test ecx, ecx
jne 0x14000b530
test edx, edx
je 0x14000b577
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b524
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b560
cmp rax, 2
jne 0x14000b57b
cmp word [rdi + 2], 0x3a
jne 0x14000b57b
mov al, 1
jmp 0x14000b5d8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b5a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b5cd
mov bl, 1
cmp dword [0x14002eac8], 0x400
jge 0x14000b5cd
mov rcx, rdi
call fcn.140014aa0
movsxd rdx, dword [0x14002eac8]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002eac8], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000c3a0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000b9f0
int3
Function at 0x14000cca8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ccf2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ccf2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ccf2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ccf2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ccf2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ccf4
xor al, al
add rsp, 0x28
ret

Function at 0x140010650
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400104bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400104bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400104bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400104bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400104bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400104bb
cmp dword [rcx + 0xf8], 0
je 0x1400104bb
mov ecx, ebx
call fcn.14001056c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140010348
nop
cmp dword [rbp + 0x20], 0
je 0x140010509
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010514
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001044c
Function at 0x140019898
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001991f
mov rsi, rbx
cmp word [rax], bp
je 0x1400198de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400198c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400198c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140014f24
mov rdi, rax
test rax, rax
je 0x14001990c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000cfd0
mov rbp, rdi
xor ecx, ecx
call fcn.140014ee8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ba8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001baa2
mov al, 1
jmp 0x14001bb02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001bab3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bb00
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019be0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bb00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bb00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bb02
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140fe49bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140fe49c6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140fe49ef
pop rbp
sub rbp, 0x33
sub rbp, 0xfe49bc
sub rsp, 0x20
jmp 0x140fe4a0e
mov rax, 0xfe49bc
inc byte [rax]
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x6d1c5ca8
xor byte [rax], dl
inc rax
dec rcx
jne 0x140fe4a2d
jmp 0x140fe4a44
loopne 0x140fe4a67
and esp, dword [r9]
xchg esp, eax
test al, 0xa8
test al, 0xe0
sub dword [rcx - 0x60], ebp
test eax, 0xa9e0a8a8
loopne 0x140fe4ac8
push 0xffffffffa8a8a8a3
loopne 0x140fe4acf
push 0xffffffffffffff80
test al, 0xa8
test al, 0xe0
pop rdi
loopne 0x140fe4a13
imul esp, dword [rbx], 0xa8a8a429
test al, 0xe0
test eax, 0xe0f8f840
adc byte [rax - 0x5757411b], bh
test al, 0xa8
mov esi, 0xa8a8a8a8
test al, 0xe0
adc dword [rcx], eax
push rsp
test al, 0xa8
test al, 0xa8
test al, 0xe0
test eax, 0xa712e041
invalid
push rsp
test al, 0xa8
test al, 0xa8
test al, 0xe0
test eax, 0xa8ad4041
test al, 0xa8
and eax, 0xfaa8a8aa
loopne 0x140fe4a7a
lodsd eax, dword [rsi]
test al, 0xa8
test al, 0x41
and eax, 0xfaa8a8aa
invalid
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x50]
mov ecx, ecx
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x40], r8
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000105c
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000105c
xor eax, eax
jmp 0x1400010cd
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rbp - 0x40]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rbp - 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
jns 0x1400010a9
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001058
mov rdi, qword [rbp - 0x48]
xor eax, eax
mov rcx, qword [rbp - 0x40]
rep stosb byte [rdi], al
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002530
mov rdi, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret

Function at 0x140001198
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001202
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rsp + 0x28]
mov qword [0x140004040], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002530
add rsp, 0x68
ret
Function at 0x140001218
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x98], rax
and qword [r11 - 0x78], 0
xorps xmm0, xmm0
mov rbx, rdx
lea rdx, [r11 - 0x78]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [r11 - 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400012b3
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], 0x30
mov rdx, rbx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
lea rcx, [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test ebx, ebx
js 0x1400012b3
mov eax, dword [rsp + 0x5c]
jmp 0x1400012b5
xor eax, eax
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140002530
add rsp, 0xa0
pop rbx
ret

Function at 0x1400012d0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0x98
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp - 0x11], 0
xorps xmm0, xmm0
and dword [rbp - 0x19], 0
mov rbx, r9
mov qword [rbp - 1], rdx
lea rdx, [rbp - 0x11]
mov eax, r8d
movups xmmword [rbp + 7], xmm0
mov qword [rbp - 9], rax
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001325
xor eax, eax
jmp 0x14000136f
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [0x140004050]
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 9]
or rcx, 0xffffffffffffffff
lea rdx, [rbp - 1]
mov r9d, ebx
call qword [0x140003160]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rbp - 0x19]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140002530
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x140001388
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x68], rax
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
mov ebp, r8d
mov rbx, r9
mov r14d, ecx
mov rsi, rdx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
test rdx, rdx
je 0x1400014af
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400014af
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
test rax, rax
je 0x1400014af
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
mov ecx, dword [0x140004020]
xor r9d, r9d
or ecx, 0x10
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, rbx
and dword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov rdi, rax
test rax, rax
je 0x1400014a6
mov ecx, r14d
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000149a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000149a
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001484
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call fcn.140002640
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002530
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret