Function at 0x180001060
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x180023008]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
lea r8, [0x180020460]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.180007644
mov eax, dword [0x180020470]
movsd xmm0, qword [str._success.txt]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
dec rcx
movzx eax, byte [0x180020474]
mov byte [rsp + 0x44], al
movsd qword [rsp + 0x38], xmm0
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1800010d1
lea r8, [rsp + 0x38]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1800010f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov edi, eax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180001175
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rbx
test eax, eax
je 0x18000116f
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x18000116c
nop dword [rax + rax]
cmp edi, dword [rsp + 0x68]
je 0x1800012fd
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180001150
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xffffffff
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor esi, esi
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800011eb
lea rdx, [rbp + 0x1a0]
mov dword [rbp + 0x1a0], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rdi
test eax, eax
je 0x1800011e5
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1800011e2
cmp ebx, dword [rbp + 0x1a8]
je 0x180001305
lea rdx, [rbp + 0x1a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800011c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rsi
mov eax, 0x2c
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x30], ax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000124d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x50], 4
lea r8, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18000125d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x31
test esi, esi
jne 0x18000126b
mov eax, 0x30
mov word [rsp + 0x32], ax
lea rcx, [rbx - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180001274
lea r8, [rsp + 0x30]
xor edx, edx
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x180001290
mov rcx, qword [rsp + 0x48]
lea rdx, [0x180020478]
call fcn.18000523c
mov rdi, rax
test rax, rax
je 0x1800012d5
mov r8, rbx
lea rdx, [0x18002047c]
mov rcx, rax
call fcn.180001010
mov rcx, rdi
call fcn.1800053d4
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.180001360
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ebx, dword [rbp - 0x80]
jmp 0x18000117a
lea rbx, [rbp + 0x1cc]
jmp 0x1800011ee