Function at 0x12bebea
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

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 0xe13420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x90
push esi
push edi
mov byte [ebp - 0x11], cl
push 0x44
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.01387760
add esp, 0xc
mov dword [ebp - 0xa0], 0x44
cmp byte [ebp - 0x11], 0
push 0
je 0x12beb0a
push 0xce446
jmp 0x12beb0f
push 0xce447
call fcn.012b0520
xorps xmm0, xmm0
mov word [ebp - 0x70], ax
add esp, 8
mov dword [ebp - 0x38], 0xf7f0e6d0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x34], 0xe8c9fde3
xor ecx, ecx
mov dword [ebp - 0x30], 0xedf8fff4
mov dword [ebp - 0x2c], 0x100e1ec
lea eax, [ecx - 0x6d]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xe
jb 0x12beb40
mov byte [ebp - 0x29], 0
xor ecx, ecx
mov dword [ebp - 0x28], 0xf8e7f1d8
mov dword [ebp - 0x24], 0xa8aaf4f2
mov dword [ebp - 0x20], 0xf2f1f8b5
mov word [ebp - 0x1c], 0x100
nop
lea eax, [ecx - 0x6d]
xor byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 0xc
jb 0x12beb70
lea eax, [ebp - 0x28]
mov byte [ebp - 0x1b], 0
push eax
push eax
call 0x143a2e8
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [0xe1c0d8]
cmp byte [ebp - 0x11], 0
mov esi, eax
mov dword [0xe45e9c], esi
mov ecx, 0xce447
jne 0x12bebae
mov ecx, 0x80ce447
push 0
push ecx
call fcn.012b0520
add esp, 8
mov dword [ebp - 0x44], edx
cmp dword [ebx + 0x1c], 0x10
lea edx, [ebp - 0x58]
lea ecx, [ebx + 8]
cmovae ecx, dword [ebx + 8]
push edx
lea edx, [ebp - 0xa0]
push edx
push 0
push 0
push eax
push 0
push 0
push 0
push ecx
push 0
call esi
test eax, eax
je 0x12bec9e
push 0
push 0xce8af
call fcn.012b0520
mov ecx, dword fs:[0x30]
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
nop dword [eax]
mov esi, dword [ecx + 0x18]
mov dword [ebp - 0x20], esi
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + esi + 0x78]
add eax, esi
mov dword [ebp - 0x40], eax
cmp eax, esi
je 0x12bec77
mov edi, dword [eax + 0x18]
test edi, edi
je 0x12bec77
mov eax, dword [eax + 0x20]
lea eax, [eax + edi*4]
add eax, esi
sub eax, 4
dec edi
mov dword [ebp - 0x3c], eax
mov eax, dword [eax]
add eax, esi
mov esi, 0x811c9dc5
mov dl, byte [eax]
inc eax
test dl, dl
je 0x12bec6d
nop dword [eax]
movsx edx, dl
lea eax, [eax + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [eax - 1]
test dl, dl
jne 0x12bec50
cmp esi, 0x71948ca4
je 0x12bec7b
mov eax, dword [ebp - 0x3c]
mov esi, dword [ecx + 0x18]
test edi, edi
jne 0x12bec35
mov ecx, dword [ecx]
jmp 0x12bec10
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
push dword [ebp - 0x44]
mov eax, dword [esi + 0x24]
push dword [ebp - 0x58]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x12becce
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x12becc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x12bece1
push ecx
push edx
call fcn.01385783
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0138aa20
int3