Function at 0x14005b680
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x320], rax
xor ebp, ebp
mov r15, rcx
mov r12, rdx
lea rcx, [rsp + 0x211]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x24], ebp
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], rbp
mov byte [rsp + 0x210], bpl
call fcn.1400988d0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, ebp
je 0x14005b8d2
cmp dword [rsp + 0x50], 2
jne 0x14005b8ff
lea rcx, str.PSAPI.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbp
je 0x14005b8d2
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnumProcessModules
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExA
mov rcx, rdi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
cmp rsi, rbp
je 0x14005b8c9
cmp r13, rbp
je 0x14005b8c9
cmp rax, rbp
je 0x14005b8c9
mov r11d, 0x400
mov rbx, rbp
mov dword [rsp + 0x20], r11d
cmp rbx, rbp
je 0x14005b7a7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r11d, dword [rsp + 0x20]
add r11d, r11d
mov dword [rsp + 0x20], r11d
mov ebx, r11d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rbp
je 0x14005b8c9
mov edx, dword [rsp + 0x20]
lea r8, [rsp + 0x24]
mov rcx, rax
call rsi
cmp eax, ebp
je 0x14005b8b5
mov eax, dword [rsp + 0x24]
mov r11d, dword [rsp + 0x20]
cmp eax, r11d
je 0x14005b781
shr eax, 2
mov dword [rsp + 0x24], eax
test eax, eax
je 0x14005b89c
mov rsi, rbx
mov rdi, r12
mov byte [rsp + 0x210], 0
mov r8d, dword [rsi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x14005b871
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rax
call r13
test eax, eax
je 0x14005b868
mov rdx, qword [rsp + 0x28]
lea r8, [rsp + 0x210]
mov r9d, 0x104
mov rcx, r12
call r14
neg eax
sbb cl, cl
and cl, byte [rsp + 0x210]
mov byte [rsp + 0x210], cl
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsi]
lea r8, [rsp + 0x210]
xor edx, edx
mov r9, rdi
call r15
test eax, eax
je 0x14005b897
inc ebp
add rsi, 4
cmp ebp, dword [rsp + 0x24]
jb 0x14005b803
mov rdi, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14005b9e1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140061100
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsp + 0x50], 1
jne 0x14005b8d2
lea rcx, str.Kernel32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
cmp rax, rbp
je 0x14005b8d2
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Process32First
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Process32Next
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x14005b8c9
test rsi, rsi
je 0x14005b8c9
test rbx, rbx
je 0x14005b8c9
xor edx, edx
lea ecx, [rdx + 2]
call rbx
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005b8c9
lea rdx, [rsp + 0xe0]
mov r13d, 0x130
mov rcx, rax
mov dword [rsp + 0xe0], r13d
call rsi
jmp 0x14005b9d4
mov ecx, dword [rsp + 0xe8]
lea r8, [rsp + 0x10c]
xor edx, edx
mov r9, r12
call r15
test eax, eax
je 0x14005b9d2
lea rdx, [rsp + 0xe0]
mov rcx, rbx
mov dword [rsp + 0xe0], r13d
call rbp
jmp 0x14005b9d4
xor eax, eax
test eax, eax
jne 0x14005b9a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x14005b8d4