Function at 0x140010480
Capabilities:
Acquire debug privileges
Encode data using xor
Enumerate processes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x1400deb88]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r14, r9
mov r12, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], r9
mov rsi, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 0x10
jb 0x1400104e0
mov r15, qword [r9]
add rsi, r15
jmp 0x1400104e6
add rsi, r14
mov r15, r14
xor r13d, r13d
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
mov rdx, rsi
sub rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140010e90
xor r9d, r9d
mov r8, rsi
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.14000c070
nop
lea r15, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r15, qword [rbp - 0x68]
mov dword [rbp - 0x30], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
lea rdx, [rbp - 0x30]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140010589
lea rdx, [rbp - 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140010589
mov rdx, r15
lea rcx, [rbp - 4]
call fcn.14004d3e0
mov rcx, rsi
test eax, eax
je 0x140010776
lea rdx, [rbp - 0x30]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x140010564
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, r13d
lea rcx, str.Process_not_found_n
call fcn.140007f00
mov edx, esi
lea rcx, str.Process_pid:__d_n
call fcn.140007f00
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x58], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140010626
mov dword [rbp - 0x48], 1
mov dword [rbp - 0x3c], 2
lea r8, [rbp - 0x44]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14001061b
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rbp - 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14001078d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x1400689f0]
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], 0x1003131
mov rcx, r13
lea eax, [rcx + 0x44]
xor byte [rsp + rcx + 0x78], al
inc rcx
cmp rcx, 0x12
jb 0x140010660
mov byte [rbp - 0x75], 0
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rax, [rsp + 0x78]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140010692
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140005d60
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400106ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400106e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010a0c
call fcn.14003a264
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001073f
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001072f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010a06
mov rcx, r8
call fcn.14003a264
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rcx, r12
call fcn.140003ec0
nop
mov rcx, r14
call fcn.140003ec0
mov rax, rdi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14003a380
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esi, dword [rbp - 0x28]
test esi, esi
jne 0x1400105a1
jmp 0x140010595
mov dword [rsp + 0x54], r13d
lea rdx, [rsp + 0x54]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x1400107ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.140007f00
jmp 0x1400107e1
mov dword [rsp + 0x50], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
je 0x140010866
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x140068a10]
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], 0x3f352715
mov dword [rbp - 0x74], 0x383f2d31
mov dword [rbp - 0x70], 0x3a2c2828
mov word [rbp - 0x6c], 0x100
mov rcx, r13
nop word [rax + rax]
lea eax, [rcx + 0x44]
xor byte [rsp + rcx + 0x78], al
inc rcx
cmp rcx, 0x1c
jb 0x140010820
mov byte [rbp - 0x6b], 0
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rax, [rsp + 0x78]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140010852
lea rdx, [rsp + 0x78]
jmp 0x1400106a1
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1400108e6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x1400689d0]
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], 0x31763938
mov dword [rbp - 0x74], 0x753f3531
mov word [rbp - 0x70], 0x100
mov rcx, r13
nop dword [rax]
lea eax, [rcx + 0x44]
xor byte [rsp + rcx + 0x78], al
inc rcx
cmp rcx, 0x18
jb 0x1400108a0
mov byte [rbp - 0x6f], 0
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rax, [rsp + 0x78]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400108d2
lea rdx, [rsp + 0x78]
jmp 0x1400106a1
mov r8, qword [rbx + 8]
sub r8, rdx
mov r9, r12
cmp qword [r12 + 0x18], 0x10
jb 0x1400108fc
mov r9, qword [r12]
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], 1
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov rcx, rsi
call fcn.140007170
mov rcx, rsi
test al, al
jne 0x140010976
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x1400689b0]
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], 0x79313b3d
mov word [rbp - 0x74], 0x100
mov rcx, r13
lea eax, [rcx + 0x44]
xor byte [rsp + rcx + 0x78], al
inc rcx
cmp rcx, 0x14
jb 0x140010950
mov byte [rbp - 0x73], 0
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140002370
jmp 0x1400106aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x140068a20]
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], 0x33373a18
mov dword [rbp - 0x74], 0x7b3d3d
mov byte [rbp - 0x70], 1
mov rcx, r13
nop
lea eax, [rcx + 0x44]
xor byte [rsp + rcx + 0x78], al
inc rcx
cmp rcx, 0x17
jb 0x1400109a0
mov byte [rbp - 0x70], 0
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140002370
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400106ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400106e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010a0c
jmp 0x1400106e5
call fcn.140048fc4
nop
call fcn.140048fc4
int3