Function at 0x180087b30
Capabilities:
Create thread
Link many functions at runtime
Print debug messages

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x1800f4ae8]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x38], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
call fcn.18008c050
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x60], 0
cmp qword [0x1800f7728], 0
jne 0x180087cc4
mov r8d, 0x800
xor edx, edx
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180087be4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180087be4
xor r8d, r8d
xor edx, edx
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180087bf3
xor eax, eax
jmp 0x180087f7f
lea rdx, str.MessageBoxW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180087c19
xor eax, eax
jmp 0x180087f7f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800f7728], rax
lea rdx, str.GetActiveWindow
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800f7730], rax
lea rdx, str.GetLastActivePopup
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800f7738], rax
lea rdx, str.GetUserObjectInformationW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800f7748], rax
cmp qword [0x1800f7748], 0
je 0x180087cc4
lea rdx, str.GetProcessWindowStation
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800f7740], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x180087cf8
cmp qword [rsp + 0xf0], 0
je 0x180087ce7
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x50], 0
je 0x180087cf8
mov eax, 4
jmp 0x180087f7f
cmp dword [rsp + 0x50], 0
je 0x180087ded
mov rcx, qword [0x1800f7728]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0xc0], eax
lea rax, [rsp + 0xc4]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
cmp qword [rsp + 0x98], 0
jne 0x180087d85
xor eax, eax
jmp 0x180087f7f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
lea r8, [0x180087fa0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x180087dc3
xor eax, eax
jmp 0x180087f7f
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x180087de6
mov eax, dword [rsp + 0xc4]
jmp 0x180087f7f
xor eax, eax
jmp 0x180087f7f
mov rax, qword [rsp + 0x58]
cmp qword [0x1800f7740], rax
je 0x180087ea2
mov rax, qword [rsp + 0x58]
cmp qword [0x1800f7748], rax
je 0x180087ea2
mov rcx, qword [0x1800f7740]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x88], rax
mov rcx, qword [0x1800f7748]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x88], 0
je 0x180087ea2
cmp qword [rsp + 0x70], 0
je 0x180087ea2
call qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x180087e9a
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0xc8]
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
test eax, eax
je 0x180087e9a
mov eax, dword [rsp + 0xd0]
and eax, 1
test eax, eax
jne 0x180087ea2
mov dword [rsp + 0x40], 1
cmp dword [rsp + 0x40], 0
je 0x180087ebd
mov eax, dword [rsp + 0x100]
bts eax, 0x15
mov dword [rsp + 0x100], eax
jmp 0x180087f35
mov rax, qword [rsp + 0x58]
cmp qword [0x1800f7730], rax
je 0x180087eee
mov rcx, qword [0x1800f7730]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x180087eee
call qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180087f35
mov rax, qword [rsp + 0x58]
cmp qword [0x1800f7738], rax
je 0x180087f35
mov rcx, qword [0x1800f7738]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x180087f35
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1800f7728]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x180087f7d
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x90]
jmp 0x180087f7f
xor eax, eax
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0xe0
pop rdi
ret