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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x53d0
call fcn.180052630
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 0x18004f4d1
jmp 0x18004f7df
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 0x18004f527
mov rcx, qword [rsp + 0x50d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004f7df
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.180051740
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x5330]
call fcn.180001510
nop
lea rdx, [rsp + 0x5330]
lea rcx, [rsp + 0x30]
call fcn.180051e30
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 0x18004f5df
jmp 0x18004f70d
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 0x18004f70d
xor edx, edx
mov rcx, qword [rsp + 0x5320]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18004f628
mov byte [rsp + 0x5390], 1
jmp 0x18004f630
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 0x18004f693
mov dword [rsp + 0x53a8], 1
jmp 0x18004f69e
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 0x18004f6ff
movzx eax, byte [rsp + 0x5328]
test eax, eax
jne 0x18004f6e8
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18004f6e8
mov dword [rsp + 0x53ac], 0
jmp 0x18004f6f3
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 0x18004f5ca
mov rcx, qword [rsp + 0x50d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18004f779
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.180043cc0
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.180043cc0
call fcn.1800036e0
mov rcx, rax
call fcn.180045390
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