Function at 0x18004f480
Capabilities:
Enumerate processes
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x53d0
call fcn.180052640
sub rsp, rax
mov qword [rsp + 0x5388], 0xfffffffffffffffe
mov rax, qword [0x18006e168]
xor rax, rsp
mov qword [rsp + 0x53c0], rax
call sub.MSVCR80.dll__getpid
mov dword [rsp + 0x50d0], eax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x50d8], rax
cmp qword [rsp + 0x50d8], 0xffffffffffffffff
jne 0x18004f4e1
jmp 0x18004f7ef
mov dword [rsp + 0x50e0], 0
lea rax, [rsp + 0x50e4]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov dword [rsp + 0x50e0], 0x238
lea rdx, [rsp + 0x50e0]
mov rcx, qword [rsp + 0x50d8]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x18004f537
mov rcx, qword [rsp + 0x50d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004f7ef
mov word [rsp + 0xb0], 0
lea rax, [rsp + 0xb2]
mov rdi, rax
xor eax, eax
mov ecx, 0x4ffe
rep stosb byte [rdi], al
mov r8d, 0x27ff
lea rdx, [rsp + 0xb0]
lea rcx, str.stat_info
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x30]
call fcn.180051750
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x5330]
call fcn.180001510
nop
lea rdx, [rsp + 0x5330]
lea rcx, [rsp + 0x30]
call fcn.180051e40
nop
lea rcx, [rsp + 0x5330]
call fcn.180001570
lea rcx, [rsp + 0x50b0]
call fcn.180008950
nop
lea r8, [rsp + 0x50b0]
mov dx, 0x2c
lea rcx, [rsp + 0x78]
call fcn.180014e70
mov byte [rsp + 0x20], 0
mov eax, dword [rsp + 0x5100]
cmp dword [rsp + 0x50d0], eax
je 0x18004f5ef
jmp 0x18004f71d
mov r8d, dword [rsp + 0x50e8]
xor edx, edx
mov ecx, 1
call fcn.180015860
mov qword [rsp + 0x5320], rax
cmp qword [rsp + 0x5320], 0
je 0x18004f71d
xor edx, edx
mov rcx, qword [rsp + 0x5320]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18004f638
mov byte [rsp + 0x5390], 1
jmp 0x18004f640
mov byte [rsp + 0x5390], 0
movzx eax, byte [rsp + 0x5390]
mov byte [rsp + 0x5328], al
lea rdx, [rsp + 0x510c]
lea rcx, [rsp + 0x5360]
call fcn.180001510
mov qword [rsp + 0x5398], rax
mov rax, qword [rsp + 0x5398]
mov qword [rsp + 0x53a0], rax
mov rdx, qword [rsp + 0x53a0]
lea rcx, [rsp + 0x50b0]
call fcn.180003660
cmp eax, 0xffffffff
je 0x18004f6a3
mov dword [rsp + 0x53a8], 1
jmp 0x18004f6ae
mov dword [rsp + 0x53a8], 0
movzx eax, byte [rsp + 0x53a8]
mov byte [rsp + 0x5358], al
lea rcx, [rsp + 0x5360]
call fcn.180001570
movzx eax, byte [rsp + 0x5358]
test eax, eax
je 0x18004f70f
movzx eax, byte [rsp + 0x5328]
test eax, eax
jne 0x18004f6f8
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18004f6f8
mov dword [rsp + 0x53ac], 0
jmp 0x18004f703
mov dword [rsp + 0x53ac], 1
movzx eax, byte [rsp + 0x53ac]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x5320]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50e0]
mov rcx, qword [rsp + 0x50d8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x18004f5da
mov rcx, qword [rsp + 0x50d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18004f789
mov rax, qword [rsp + 0x53e0]
add rax, 0xf0
mov qword [rsp + 0x53b0], rax
call fcn.1800036e0
mov rcx, qword [rsp + 0x53b0]
mov r9, rcx
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call fcn.180043cd0
mov rax, qword [rsp + 0x53e0]
add rax, 0xf0
mov qword [rsp + 0x53b8], rax
call fcn.1800036e0
mov rcx, qword [rsp + 0x53b8]
mov r9, rcx
lea r8, [rsp + 0x30]
mov edx, 7
mov rcx, rax
call fcn.180043cd0
call fcn.1800036e0
mov rcx, rax
call fcn.1800453a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0x53c0]
xor rcx, rsp
call fcn.18003f5f0
add rsp, 0x53d0
pop rdi
ret