Function at 0x140007380
Capabilities:
Allocate or change rwx memory
Encode data using xor
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov qword [rsp + 0x58], r8
mov r13, rdx
mov rdi, rcx
test rcx, rcx
je 0x140007588
xor r15d, r15d
mov r14d, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x60], 0x238
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax]
mov rdx, rdi
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140007435
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000743a
jmp 0x140007410
mov r14d, dword [rsp + 0x68]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000744d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], 0x3d133d26
mov dword [rsp + 0x34], 0x3d1d3d33
mov dword [rsp + 0x38], 0x3d0f3d1b
mov dword [rsp + 0x3c], 0x3d2c3d1c
mov dword [rsp + 0x40], 0x3d173d0f
mov dword [rsp + 0x44], 0x3de93d09
mov dword [rsp + 0x48], 0x3de73ded
mov dword [rsp + 0x4c], 0x3de13de4
mov word [rsp + 0x50], r15w
mov byte [rsp + 0x52], 1
mov rcx, r15
mov edx, 0x3d75
nop word [rax + rax]
lea eax, [rdx + rcx]
xor word [rsp + rcx*2 + 0x30], ax
inc rcx
cmp rcx, 0x10
jb 0x1400074b0
mov byte [rsp + 0x52], r15b
mov qword [rbp + 0x3b4], r15
mov dword [rbp + 0x3b0], 1
mov dword [rbp + 0x3bc], 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp + 0x3b4]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov qword [rbp + 0x3a0], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x3a0]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, 0x10
lea r8, [rbp + 0x3b0]
xor edx, edx
mov rcx, qword [rbp + 0x3a0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp + 0x3a0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007566
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rbp + 0x3a0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400075a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov qword [rbp + 0x3a0], rax
xor r15d, r15d
mov r12, r15
mov edx, r14d
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov qword [rbp + 0x3b0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, 0x434
lea rcx, [rsp + 0x64]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x60], 0x438
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
cmp dword [rsp + 0x68], r14d
jne 0x140007612
mov r8, r13
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.140007150
mov rsi, rax
test rax, rax
jne 0x14000762a
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x1400076c8
jmp 0x1400075f3
mov dword [rbp + 0x3a8], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [r13 + 8]
sub r8, qword [r13]
lea rax, [rbp + 0x3a8]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rbp + 0x3b0], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rsp + 0x58]
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rbp + 0x3a0], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [r13 + 8]
sub r8, qword [r13]
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x3a8]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r12, rsi
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400076dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400076ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r12
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140042d20
mov rbx, qword [rsp + 0x528]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret