Function at 0x1338e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdb4c25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov byte [ebp - 0x12], cl
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov eax, 0x2aaaaaab
mov edx, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
sub edx, ebx
imul edx
mov dword [ebp - 0x1c], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1339010
xor esi, esi
mov dword [ebp - 0x20], esi
test cl, cl
je 0x1338fb1
mov edi, dword [esi + ebx + 0x10]
add esi, ebx
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x1338ea0
mov eax, dword [esi]
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
jb 0x1338eac
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
push edi
push eax
push 0
call fcn.01393fe0
add esp, 0xc
test eax, eax
je 0x1338f59
mov dword [ebp - 0x25], 0xcecfe5
xor eax, eax
mov byte [ebp - 0x21], 1
lea ecx, [eax - 0x21]
xor byte [ebp + eax - 0x25], cl
inc eax
cmp eax, 3
jb 0x1338ed0
lea ecx, [ebp - 0x25]
mov byte [ebp - 0x21], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1338ee7
mov eax, 0x7fffffff
sub ecx, edx
sub eax, edi
cmp eax, ecx
jb 0x133905d
cmp dword [esi + 0x14], 0x10
jb 0x1338f07
mov esi, dword [esi]
push edi
push esi
push ecx
lea eax, [ebp - 0x25]
push eax
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
call fcn.01396210
or dword [ebp - 0x18], 3
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
cmp edi, 0x10
jb 0x1338f2e
mov eax, esi
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
jb 0x1338f3a
mov ecx, dword [ebp + 0x14]
push dword [ebp - 0x30]
mov edx, dword [ebp + 0x24]
push eax
push 0
call fcn.01393fe0
mov ebx, dword [ebp + 8]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1338f5f
mov byte [ebp - 0x11], 0
jmp 0x1338f63
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
test al, 1
je 0x1338fa3
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
cmp edi, 0x10
jb 0x1338fa3
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1338f96
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1339062
push ecx
push esi
call fcn.01403731
mov ebx, dword [ebp + 8]
add esp, 8
cmp byte [ebp - 0x11], 0
jne 0x133900c
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
jmp 0x1338fe0
cmp dword [ebx + esi + 0x14], 0x10
lea eax, [ebx + esi]
mov edx, dword [eax + 0x10]
jb 0x1338fc0
mov eax, dword [eax]
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
jb 0x1338fcc
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x24]
push eax
push 0
call fcn.01393fe0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x133900c
mov ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
sub ecx, ebx
inc edi
imul ecx
add esi, 0x18
mov dword [ebp - 0x1c], edi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x20], esi
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1339010
mov cl, byte [ebp - 0x12]
jmp 0x1338e88
mov bl, 1
jmp 0x1339012
xor bl, bl
lea ecx, [ebp + 8]
call fcn.01390a80
mov ecx, dword [ebp + 0x28]
cmp ecx, 0x10
jb 0x133904a
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1339040
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1339062
push ecx
push edx
call fcn.01403731
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.01327a70
call fcn.014089d0
int3