joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400107a0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov esi, edx
mov rbx, rcx
mov r8, qword [rcx]
test r8, r8
jne 0x1400107d0
mov eax, 0x80070057
jmp 0x1400108d3
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400018d0
mov edi, eax
test eax, eax
je 0x140010851
mov r9d, eax
mov r8, qword [rbx]
lea rdx, str.CServiceUptime::SetHeartbeatInterval:_Failed_to_open_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001084a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400108d3
mov dword [rsp + 0x70], esi
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HeartbeatIntervalMs
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1400108c3
mov r9d, eax
lea r8, str.HeartbeatIntervalMs
lea rdx, str.CServiceUptime::SetHeartbeatInterval:_Failed_to_set_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
test rbx, rbx
je 0x1400108bf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1400108d3
test rbx, rbx
je 0x1400108d1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140011fb4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14001201f
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14001203f
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x70
mov rdi, r8
and qword [rax + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
and qword [rax - 0x40], 0
lea rdx, [rax + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001056
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001056
mov eax, 0xc0000001
jmp 0x1400010e6
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140002580
mov rcx, qword [rsp + 0x38]
mov qword [rdi], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400010d6
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000140c
Capabilities:
Create device object
Print debug messages

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [0x140001100]
mov rbx, rcx
mov qword [rcx + 0x70], rax
lea rdx, [0x140002700]
mov qword [rcx + 0x80], rax
lea rax, [0x140001120]
mov qword [rcx + 0xe0], rax
lea rax, [0x140001590]
mov qword [rcx + 0x68], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x140002720]
mov qword [0x140004040], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x140004038], rax
mov rax, qword [rbx + 0x28]
or dword [rax + 0x68], 0x20
call fcn.140001ca4
lea rdx, [0x140002760]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x140002780]
mov ecx, dword [rax + 3]
mov qword [0x140004020], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x1400027e0]
mov ecx, dword [rax + 3]
mov qword [0x140004018], rcx
lea rcx, [0x140004060]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x140004048]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [0x140004060]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jns 0x14000152e
lfence
jmp 0x14000157e
lea rdx, [0x140002810]
lea rcx, [0x140004050]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140004060]
lea rcx, [0x140004050]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140001570
lfence
mov rcx, qword [0x140004048]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x14000157e
lea rcx, [0x140002840]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x1400015c4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x60
mov rdi, r9
and qword [rax - 0x40], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
lea rdx, [rax - 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001613
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001613
mov eax, 0xc0000001
jmp 0x14000168f
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x78]
or rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwFreeVirtualMemory
mov ebx, eax
mov dword [rsp + 0x20], eax
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140002580
mov rcx, qword [rsp + 0x78]
mov qword [rdi], rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001682
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14000169c
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r15, rdx
mov rbx, rcx
xor edi, edi
test rcx, rcx
je 0x1400017a9
mov esi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r14, rax
test rax, rax
je 0x1400017a9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r14, qword [r14 + 0x18]
test r14, r14
je 0x140001799
add r14, 0x10
mov qword [rsp + 0xb0], r14
mov rbx, qword [r14]
mov qword [rsp + 0xa0], rbx
cmp r14, rbx
je 0x140001799
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rdx, qword [rbx + 0x60]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp word [rbx + 0x58], di
je 0x14000176d
mov r8b, 1
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x14000176d
mov rsi, qword [rbx + 0x30]
mov qword [rsp + 0x20], rsi
jmp 0x140001799
jmp 0x140001791
mov rbx, qword [rbx]
jmp 0x140001712
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rsi
jmp 0x1400017ab
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400017b8
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r15, rdx
mov rbx, rcx
xor edi, edi
test rcx, rcx
je 0x1400018c6
mov esi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r14, rax
test rax, rax
je 0x1400018c6
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r14d, dword [r14 + 0xc]
test r14, r14
je 0x1400018b6
add r14, 0xc
mov qword [rsp + 0xb0], r14
mov ebx, dword [r14]
mov qword [rsp + 0xa0], rbx
cmp r14, rbx
je 0x1400018b6
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov edx, dword [rbx + 0x30]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp word [rbx + 0x2c], di
je 0x140001887
mov r8b, 1
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x140001887
mov esi, dword [rbx + 0x18]
mov qword [rsp + 0x20], rsi
jmp 0x1400018b6
mov ebx, dword [rbx]
jmp 0x14000182e
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rsi
jmp 0x1400018c8
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400018d4
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
and qword [rsp + 0x60], 0
mov rdi, r8
mov rsi, rdx
test rcx, rcx
jne 0x1400018fd
mov rax, 0xffffffffc0000001
jmp 0x14000197c
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
movsxd rbx, eax
test eax, eax
je 0x14000191d
lea rcx, [0x140002670]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001979
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
call fcn.14000198c
mov rbx, rax
test rax, rax
jne 0x140001963
lea rdx, [0x1400026a0]
lea rcx, [0x1400026c0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000198c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
xor r9d, r9d
mov rsi, rdx
mov r8, rcx
test rcx, rcx
je 0x140001a73
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001a73
movsxd rax, dword [rcx + 0x3c]
mov ecx, 0x20b
cmp word [rax + r8 + 0x18], cx
jne 0x1400019e0
mov ecx, dword [rax + r8 + 0x88]
jmp 0x1400019e5
mov ecx, dword [rax + r8 + 0x78]
mov r10d, ecx
mov edx, r9d
mov r14d, dword [r10 + r8 + 0x24]
mov r15d, dword [r10 + r8 + 0x20]
add r14, r8
mov edi, dword [r10 + r8 + 0x1c]
add r15, r8
mov r12d, dword [r10 + r8 + 0x14]
add rdi, r8
test r12d, r12d
je 0x140001a6e
cmp rsi, 0xffff
ja 0x140001a29
movzx r11d, dx
mov ecx, r11d
movzx eax, si
add ecx, dword [r10 + r8 + 0x10]
cmp eax, ecx
jmp 0x140001a58
cmp edx, dword [r10 + r8 + 0x18]
jae 0x140001a73
mov eax, edx
mov rbp, rsi
mov ecx, dword [r15 + rax*4]
movzx r11d, word [r14 + rax*2]
add rcx, r8
sub rbp, rcx
movzx eax, byte [rcx]
movzx ebx, byte [rcx + rbp]
sub eax, ebx
jne 0x140001a56
inc rcx
test ebx, ebx
jne 0x140001a44
test eax, eax
je 0x140001a63
inc edx
cmp edx, r12d
jb 0x140001a0d
jmp 0x140001a6e
movzx eax, r11w
mov r9d, dword [rdi + rax*4]
add r9, r8
mov rax, r9
jmp 0x140001a75
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret

Function at 0x140001a90
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov rbx, rdx
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001ab2
xor eax, eax
jmp 0x140001af2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
movups xmm0, xmmword [rbx]
movdqu xmmword [rsp + 0x20], xmm0
test rax, rax
jne 0x140001adc
call fcn.14000169c
jmp 0x140001ae1
call fcn.1400017b8
mov rcx, qword [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140001d2c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r9
mov ebx, r8d
mov r14, rdx
and qword [rax - 0x58], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
lea rdx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001d86
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001d86
mov eax, 0xc0000001
jmp 0x140001df7
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1400022c0
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001dea
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov r14, r9
mov ebx, r8d
mov rsi, rdx
and qword [rax - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
movups xmmword [rax - 0x20], xmm0
lea rdx, [rax - 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001f34
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001f34
mov eax, 0xc0000001
jmp 0x140001f8e
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1400022c0
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001f81
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140001fa8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov rsi, r9
mov r14d, r8d
mov rdi, rdx
and qword [rax - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
movups xmmword [rax - 0x20], xmm0
lea rdx, [rax - 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
jne 0x140002008
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
mov ecx, 0x80
test al, al
cmove ebx, ecx
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov rax, cr0
btr rax, 0x10
mov cr0, rax
cli
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400022c0
mov rax, cr0
bts rax, 0x10
sti
mov cr0, rax
jmp 0x140002041
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

Function at 0x140002070
Capabilities:
Attach user process memory
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, 0x60
xorps xmm0, xmm0
mov esi, r8d
mov rdi, rdx
xor ebx, ebx
lea rdx, [rax - 0x48]
mov qword [rax - 0x48], rbx
movups xmmword [rax - 0x40], xmm0
mov r14, r9
movups xmmword [rax - 0x30], xmm0
movups xmmword [rax - 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400020ce
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400020ce
mov eax, 0xc0000001
jmp 0x140002174
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
mov r8, rsi
test al, al
jne 0x1400020fa
xor edx, edx
mov rcx, r14
call fcn.140002580
jmp 0x140002132
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmCreateMdl]
mov rdi, rax
test rax, rax
je 0x140002132
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbp, rax
test rax, rax
jne 0x140002139
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov ebx, 0xc0000001
jmp 0x14000215c
mov r8, rsi
mov rdx, r14
mov rcx, rbp
call fcn.1400022c0
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180003530
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.180015850
test al, al
jne 0x180003554
nop dword [rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180015850
test al, al
je 0x180003540
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180003560
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x20a
call fcn.18001a484
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rbx, rax
call fcn.18001ca80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.mstsc
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1800035d4
call fcn.180015850
test al, al
jne 0x1800035d4
nop dword [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180015850
test al, al
je 0x1800035c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x18000af40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18000af74
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18000af60
ret
Function at 0x18000ecc0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18000ed8c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18000ed8c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18000eda5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x18000ed7c
cmp byte [rax], 0x5c
jne 0x18000ed76
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18000ed76
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18000ed62
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18000ed73
test r8b, 0x10
jne 0x18000ed76
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18000ed76
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18000b630
test edi, edi
jne 0x18000ece0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.18000b620
int3
Function at 0x180013460
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov esi, ebp
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x70]
nop dword [rax]
nop dword [rax + rax]
mov rax, rsi
shr rax, 3
cmp rax, 0x20
jb 0x180013538
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1800134f6
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1800134ee
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x180013508
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.18000e100
mov eax, 6
inc rbp
add rsi, rax
cmp rsi, 0x108
jb 0x1800134c0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea rcx, [rsi + 6]
shr rcx, 3
cmp rcx, 0x20
jb 0x18001354a
xor cl, cl
jmp 0x18001354f
movzx ecx, byte [rcx + r14]
movzx edx, byte [rax + r14]
mov rax, rbp
and eax, 3
je 0x180013596
sub rax, 1
je 0x180013586
sub rax, 1
je 0x180013576
cmp rax, 1
jne 0x18001359c
movzx ebx, dl
and bl, 0x3f
jmp 0x18001359c
movzx ebx, dl
and bl, 0xf
shl bl, 2
shr cl, 6
add bl, cl
jmp 0x18001359c
movzx ebx, dl
and bl, 3
shl bl, 4
shr cl, 4
add bl, cl
jmp 0x18001359c
movzx ebx, dl
shr bl, 2
movzx eax, bl
movzx r9d, byte [rax + r15]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1800134f9
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1800135c9
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180013508