Function at 0x503af0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b195b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x20
mov esi, ecx
call fcn.0058f5cc
add esp, 4
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x503b3c
mov word [eax], cx
mov word [eax + 2], cx
mov dword [eax + 8], 2
mov dword [eax + 0x14], 1
mov word [eax + 4], cx
jmp 0x503b3e
xor eax, eax
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esi + 0x10], ecx
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov cx, word [esp + 0x24]
mov word [eax], cx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], edx
mov dx, word [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov word [eax + 2], dx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], edx
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c

Function at 0x505180
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x5fe940]
push ebx
push esi
push edi
mov dword [esp + 0x24c], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x18], ebx
mov ecx, 0x49
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov byte [esp + 0x140], bl
mov ecx, 0x40
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 2
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x5051f2
xor eax, eax
mov ecx, dword [esp + 0x24c]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x5052c3
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push 0x1f0fff
call edi
lea edx, [esp + 0x3c]
push 0x5c
push edx
mov esi, eax
call fcn.00590b80
add esp, 8
cmp eax, ebx
je 0x50524c
inc eax
lea edx, [esp + 0x140]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x505240
jmp 0x50526d
push 0x104
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x148]
push ecx
call fcn.005906f0
add esp, 0xc
mov byte [esp + 0x243], bl
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x144]
push eax
call fcn.005913c2
add esp, 8
test eax, eax
jne 0x5052a1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x20], eax
je 0x5052a1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x505213
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24c]
mov eax, dword [esp + 0x10]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret