Function at 0x402d57
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x4211d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], ebx
call fcn.00402cbf
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x21c]
push eax
push 0x20
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402dfc
lea eax, [ebp - 0x244]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x248]
push eax
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x23c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x22c]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x20c], eax
je 0x40302b
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
mov edi, 0x1000
push edi
push 0x34
push ebx
push eax
call esi
push 4
push edi
push 0x200
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], eax
call esi
push 4
push edi
push 0x10
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x228], eax
call esi
cmp eax, ebx
mov dword [ebp - 0x218], eax
je 0x40302b
cmp dword [ebp - 0x214], ebx
je 0x40302b
mov eax, dword [ebp - 0x228]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x1004
push dword [ebp - 0x220]
mov dword [ebp - 0x28c], 1
mov dword [ebp - 0x274], 0x200
mov dword [ebp - 0x278], eax
call edi
cmp eax, ebx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x210], ebx
jle 0x402fd1
mov esi, dword [ebp - 0x210]
push ebx
push 0x34
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x288], esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 0x214]
push esi
push 0x102d
push dword [ebp - 0x220]
call edi
push ebx
push 0x200
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x228]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x208]
push eax
lea esi, [ebp - 0x224]
call fcn.00403729
mov ecx, dword [ebp + 8]
mov eax, esi
push eax
call fcn.00403aac
test eax, eax
je 0x402f74
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.004076ae
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x234]
jl 0x402eca
jmp 0x402fd1
push dword [ebp - 0x218]
push dword [ebp - 0x210]
push 0x100e
push dword [ebp - 0x220]
call edi
push ebx
push 0x10
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, dword [ebp - 0x238]
mov eax, dword [ebp - 0x224]
lea esi, [ebp - 0x258]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 0xfffffff0
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x230], 1
call fcn.004076ae
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edi, 0x8000
push edi
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x20c]
call esi
push edi
push ebx
push dword [ebp - 0x228]
push dword [ebp - 0x20c]
call esi
push edi
push ebx
push dword [ebp - 0x218]
push dword [ebp - 0x20c]
call esi
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004076ae
mov eax, dword [ebp - 0x230]
jmp 0x403038
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004076ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b301
leave
ret 8