Function at 0x524660
Capabilities:
Allocate or change rwx memory
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a321a
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x340]
call fcn.00523820
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x340]
call fcn.00523920
movzx ecx, al
test ecx, ecx
jne 0x5246da
mov dword [ebp - 0x344], 0x10200001
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x344]
jmp 0x524cb5
lea ecx, [ebp - 0x340]
call fcn.00523f40
mov dword [ebp - 0x320], eax
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x384]
push eax
lea ecx, [ebp - 0x340]
call fcn.00523f70
movzx ecx, al
test ecx, ecx
jne 0x52470d
jmp 0x524729
cmp dword [ebp - 0x348], 0xf
je 0x524729
lea ecx, [ebp - 0x340]
call fcn.00523f40
mov dword [ebp - 0x320], eax
jmp 0x52473b
lea ecx, [ebp - 0x340]
call fcn.00523ab0
movzx edx, al
test edx, edx
jne 0x5246eb
cmp dword [ebp - 0x320], 0
jne 0x52476b
mov dword [ebp - 0x34c], 0x10200002
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x34c]
jmp 0x524cb5
mov eax, dword [ebp - 0x320]
push eax
push 0
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x5247bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ebp - 0x350], 0x10200003
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x350]
jmp 0x524cb5
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x52480e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x354], 0x10200005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x354]
jmp 0x524cb5
push 0x2cc
push 0
lea eax, [ebp - 0x30c]
push eax
call fcn.00537090
add esp, 0xc
mov dword [ebp - 0x30c], 0x10001
lea ecx, [ebp - 0x30c]
push ecx
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x524892
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x358], 0x10200006
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x358]
jmp 0x524cb5
push 0x40
push 0x3000
push 0x100
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jne 0x5248f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x35c], 0x10200004
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x35c]
jmp 0x524cb5
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], 0
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x3c], 0x83
mov byte [ebp - 0x3b], 0xec
mov byte [ebp - 0x3a], 4
mov byte [ebp - 0x39], 0xc7
mov byte [ebp - 0x38], 4
mov byte [ebp - 0x37], 0x24
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x32], 0x50
mov byte [ebp - 0x31], 0x51
mov byte [ebp - 0x30], 0x52
mov byte [ebp - 0x2f], 0x9c
mov byte [ebp - 0x2e], 0xb9
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 0xb8
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0x51
mov byte [ebp - 0x23], 0xff
mov byte [ebp - 0x22], 0xd0
mov byte [ebp - 0x21], 0xa3
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0x9d
mov byte [ebp - 0x1b], 0x5a
mov byte [ebp - 0x1a], 0x59
mov byte [ebp - 0x19], 0x58
mov byte [ebp - 0x18], 0xc6
mov byte [ebp - 0x17], 5
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0xc3
mov dword [ebp - 0x31c], 4
mov ecx, dword [ebp - 0x31c]
add ecx, 2
mov dword [ebp - 0x324], ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [ebp - 0x254]
mov dword [ebp + edx - 0x3a], eax
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ebp + 0x10]
mov dword [ebp + ecx - 0x31], edx
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + eax - 0x2c], ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [ebp - 0x318]
mov dword [ebp + edx - 0x24], eax
mov ecx, dword [ebp - 0x318]
add ecx, dword [ebp - 0x324]
mov edx, dword [ebp - 0x31c]
mov dword [ebp + edx - 0x1a], ecx
mov eax, dword [ebp - 0x318]
add eax, dword [ebp - 0x31c]
mov dword [ebp - 0x254], eax
push 0
push 0x30
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x318]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x524ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 0x318]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x360], 0x10200007
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x360]
jmp 0x524cb5
lea eax, [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x524b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov edx, dword [ebp - 0x318]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x364], 0x10200008
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x364]
jmp 0x524cb5
push 0
push 0
push 0
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x524bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x318]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x368], 0x10200009
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x368]
jmp 0x524cb5
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x374], edx
mov byte [ebp - 0x311], 1
push 0
push 1
lea eax, [ebp - 0x311]
push eax
mov ecx, dword [ebp - 0x318]
add ecx, dword [ebp - 0x324]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x378]
sbb edx, dword [ebp - 0x374]
mov dword [ebp - 0x380], eax
mov dword [ebp - 0x37c], edx
cmp dword [ebp - 0x37c], 0
ja 0x524c27
cmp dword [ebp - 0x380], 0x4e20
jbe 0x524c4b
mov dword [ebp - 0x36c], 0x1020000a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x36c]
jmp 0x524cb5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [ebp - 0x311]
test eax, eax
jne 0x524bd2
push 0
push 4
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x318]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x8000
push 0
mov ecx, dword [ebp - 0x318]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x370], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x340]
call fcn.005238f0
mov eax, dword [ebp - 0x370]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret