Function at 0x12ded46
Capabilities:
Encode data using xor

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 0xe168c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1458
push ebx
call fcn.013864e0
push esi
mov esi, ecx
mov dword [ebp - 0xd8], esi
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 2
lea ecx, [esi + 8]
push 0
mov byte [esi], 0
call fcn.0130ff50
mov byte [ebp - 4], 1
sub esp, 8
mov dword [ebp - 0x24], 1
mov eax, esp
lea ecx, [ebp - 0x78]
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0130c390
add esp, 8
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x1e], 0xf9e1e1f2
mov dword [ebp - 0x1a], 0xf6f5f1f1
mov word [ebp - 0x16], 0x100
nop dword [eax]
lea eax, [ecx - 0x6d]
xor byte [ebp + ecx - 0x1e], al
inc ecx
cmp ecx, 8
jb 0x12dedb0
lea eax, [ebp - 0x1e]
mov byte [ebp - 0x15], 0
push eax
mov ecx, esi
call fcn.01312600
mov byte [ebp - 4], 1
mov edi, eax
mov cl, byte [ebp - 0x78]
mov dl, byte [edi]
mov byte [edi], cl
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
mov byte [ebp - 0x78], dl
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x78]
mov dword [edi + 8], eax
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], esi
call fcn.0130bff0
push 0x104
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.01387760
add esp, 0xc
lea eax, [ebp - 0x468]
push eax
push 0
push 0
push 0x1a
push 0
call dword [0xe1c2e0]
lea ecx, [ebp - 0x468]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12dee30
sub ecx, edx
mov eax, 0x7fffffff
mov edx, dword [ebx + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x12dfd10
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
push eax
push ecx
lea eax, [ebp - 0x468]
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x160]
call fcn.01315f90
mov dword [ebp - 0x24], 0x41
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [ebp - 0x58], 0xf9e7e4cf
mov dword [ebp - 0x54], 0xfff5f1f1
mov dword [ebp - 0x50], 0xf0f4b2e8
mov word [ebp - 0x4c], 0xf6
mov byte [ebp - 0x4a], 1
nop dword [eax + eax]
lea eax, [ecx - 0x6d]
xor byte [ebp + ecx - 0x58], al
inc ecx
cmp ecx, 0xd
jb 0x12deea0
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x4a], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12deeb7
sub ecx, edx
mov eax, 0x7fffffff
mov edx, dword [ebp - 0x150]
sub eax, edx
cmp eax, ecx
jb 0x12dfd15
cmp dword [ebp - 0x14c], 0x10
lea eax, [ebp - 0x160]
push ecx
cmovae eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x58]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x148]
call fcn.01315f90
mov esi, 0x61
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 5
lea eax, [ebp - 0x148]
cmp dword [ebp - 0x134], 0x10
cmovae eax, dword [ebp - 0x148]
push eax
push 0x1000
lea eax, [ebp - 0x1468]
push eax
call fcn.01452ab1
call fcn.012aa840
call fcn.012aa840
call fcn.0138aa20
lea ecx, [ebp - 0xe8]
call fcn.01310220
push eax
lea ecx, [ebp - 0x20c]
call fcn.012aaf00
push eax
mov edx, 0xe30e10
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x224]
call fcn.013123b0
add esp, 4
push eax
mov edx, 0x131
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1d8]
call fcn.012b1120
add esp, 4
lea eax, [ebp - 0x1d8]
push 0xe416e8
push eax
call fcn.0138716b
lea ecx, [ebp - 0x78]
call fcn.01310220
push eax
lea ecx, [ebp - 0x23c]
call fcn.012aaf00
push eax
mov edx, 0xe30e10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x254]
call fcn.013123b0
add esp, 4
push eax
mov edx, 0x131
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1f4]
call fcn.012b1120
add esp, 4
lea eax, [ebp - 0x1f4]
push 0xe416e8
push eax
call fcn.0138716b
int3