Function at 0x13863
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov ebx, 0x10000
mov dword [ebp - 0x3c], edi
mov ecx, 0xfffffff
lea edx, [ebp + 4]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov eax, dword [edx + 4]
sub edx, 4
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 8]
mov dword [ebp - 0x10], eax
and esi, ecx
and edi, ecx
add esi, ebx
mov eax, ebx
mov ecx, dword [0x177cc]
sub eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], eax
jne 0x1390c
and dword [ebp - 4], 0
test edi, edi
jbe 0x13b15
mov ebx, 0x4fabeef4
mov ecx, 0xb054110c
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xb054110c
ror eax, 9
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x4929
rol ecx, 0xc
ror eax, 0xc
xor ecx, eax
add dword [ebp - 0x24], ecx
inc dword [ebp - 4]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 4], edi
jb 0x138c8
jmp 0x13b12
lea eax, [esi + edi]
mov ecx, esi
sub ecx, ebx
mov ebx, ecx
and ebx, 0xfffff000
mov dword [ebp - 4], ebx
mov ebx, ecx
sub ebx, dword [ebp - 4]
add ecx, edi
mov edi, ecx
and edi, 0xfffff000
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1003c]
sub ecx, edi
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x100a0]
mov eax, dword [eax + 0x100a4]
add ecx, 0x10000
add eax, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], eax
jmp 0x13960
mov edi, dword [ecx]
cmp edi, dword [ebp - 4]
jae 0x13964
add ecx, dword [ecx + 4]
cmp ecx, eax
jne 0x13956
and dword [ebp - 0x28], 0
cmp ecx, eax
je 0x139a5
mov edi, dword [ebp - 4]
cmp dword [ecx], edi
jne 0x139a5
mov edi, dword [ecx + 4]
sub edi, 8
shr edi, 1
mov dword [ebp - 0xc], edi
je 0x139a5
lea edi, [ecx + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 4]
movzx edi, word [edi]
and edi, 0xfff
cmp edi, ebx
jae 0x139a5
inc dword [ebp - 0x28]
mov edi, dword [ebp - 0xc]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], edi
jne 0x13986
mov ebx, 0x4fabeef4
jmp 0x139af
mov eax, dword [ebp - 0x30]
cmp ecx, eax
je 0x13acc
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x38]
ja 0x13acc
mov eax, dword [ecx + 4]
lea edi, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edi, 1
cmp eax, edi
jne 0x139ee
add ecx, dword [ecx + 4]
cmp ecx, dword [ebp - 0x30]
je 0x13acc
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x13acc
and dword [ebp - 0x28], 0
jmp 0x139c2
mov edi, dword [ebp - 0x38]
cmp dword [ecx], edi
jne 0x13a08
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x13acc
mov eax, dword [ebp - 0x28]
mov edi, 0xf000
inc dword [ebp - 0x28]
test word [ecx + eax*2 + 8], di
je 0x139ac
mov edx, dword [ecx]
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
lea eax, [eax + edx + 0x10000]
xor edi, edi
mov dword [ebp - 4], eax
sub dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
je 0x13a79
mov edx, 0xb054110c
movzx eax, byte [edi + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xb054110c
ror eax, 9
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0x4929
rol edx, 0xc
ror eax, 0xc
xor edx, eax
mov eax, edx
add dword [ebp - 0x24], eax
inc edi
mov dword [ebp - 0x20], edx
cmp edi, dword [ebp - 4]
jb 0x13a3a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
sub eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x18], eax
mov edx, 0xb054110c
movzx eax, byte [ebp + esi - 0x18]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xb054110c
ror eax, 9
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0x4929
rol edx, 0xc
ror eax, 0xc
xor edx, eax
add dword [ebp - 0x24], edx
inc esi
cmp esi, 4
mov dword [ebp - 0x20], edx
jb 0x13a83
mov esi, dword [ebp - 0xc]
add esi, 4
mov edx, dword [ebp - 8]
jmp 0x139ac
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], eax
je 0x13b15
movzx eax, byte [edi + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xb054110c
mov ecx, 0xb054110c
ror eax, 9
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x4929
rol ecx, 0xc
ror eax, 0xc
xor ecx, eax
add dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x13ad8
mov edx, dword [ebp - 8]
add dword [edx + 8], 0x10
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
shr ecx, 1
and ecx, 0xfffffff
mov eax, dword [ecx + 0x10000]
xor eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x10004]
xor ecx, dword [ebp - 0x20]
or eax, ecx
je 0x13bf0
call fcn.00011286
mov edi, eax
lea ecx, [edx + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
mov eax, 0xfffff000
and esi, eax
sub esi, dword [0x1629e]
and edi, eax
xor eax, eax
mov dword [edx + 8], fcn.00016263
mov edx, 0xffff
mov ebx, dword [0x19da0]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x19da0], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x13b70
mov ebx, 0xffff
div ebx
inc edx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jmp 0x13bb6
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x13bae
mov eax, dword [ebp - 8]
mov dword [eax + 8], fcn.00016263
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
mov edx, ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x10000
xor edx, dword [eax]
xor edx, dword [0x1908c]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov esp, ebp
pop ebp
popfd
ret