Function at 0x5138e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x901138]
test eax, eax
je 0x513dea
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x87c
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00508a10
mov edi, eax
test eax, eax
je 0x513a00
xor esi, esi
lea ebx, [ebp - 0x818]
lea esi, [esi]
nop
mov dword [esp + 8], 0x800
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00508d80
test eax, eax
js 0x513cd2
test esi, esi
jne 0x513a20
cmp eax, 2
jle 0x5139f2
cmp byte [ebx], 0xef
jne 0x513a80
cmp byte [ebx + 1], 0xbb
jne 0x513a80
cmp byte [ebx + 2], 0xbf
jne 0x513a80
mov dword [esp], str._UTF_8_
call fcn.007101e8
mov dword [esp], 0x5355
mov dword [esp + 4], eax
call fcn.004fc8f0
lea edx, [ebp - 0x815]
lea eax, [ebp - 0x828]
mov byte [0x901131], 1
mov dword [ebp - 0x830], eax
mov dword [esp], edx
call fcn.00723a18
lea edx, [ebp - 0x815]
lea ecx, [ebp - 0x830]
add eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00512590
lea eax, [ebp - 0x830]
mov ecx, 0x901140
sub esp, 8
mov dword [esp], eax
call fcn.00733700
mov eax, dword [ebp - 0x830]
lea edx, [ebp - 0x828]
sub esp, 4
cmp eax, edx
je 0x5139f2
mov dword [esp], eax
call fcn.00712028
add esi, 1
jmp 0x513920
test byte [0x90036d], 1
je 0x513a13
mov dword [0x900d88], 3
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x828]
mov dword [ebp - 0x830], eax
mov dword [esp], ebx
call fcn.00723a18
mov dword [esp], ebx
lea ecx, [ebp - 0x830]
add eax, ebx
mov dword [esp + 4], eax
call fcn.00512590
lea eax, [ebp - 0x830]
mov ecx, 0x901140
sub esp, 8
mov dword [esp], eax
call fcn.00733700
mov eax, dword [ebp - 0x830]
lea ecx, [ebp - 0x828]
sub esp, 4
cmp eax, ecx
jne 0x5139ea
jmp 0x5139f2
cmp eax, 0xa
jle 0x5139f2
mov dword [esp + 4], 0x7b1785
mov dword [esp], ebx
call fcn.007239f8
test eax, eax
je 0x513acc
mov eax, dword [ebp - 0x811]
mov edx, dword [ebp - 0x815]
xor eax, 0x74707972
xor edx, 0x636e655b
or eax, edx
jne 0x5139f2
cmp dword [ebp - 0x80d], 0x5d6465
jne 0x5139f2
mov byte [0x901130], 1
mov dword [esp], str._encrypted_
call fcn.007101e8
mov dword [esp], 0x5355
mov dword [esp + 4], eax
call fcn.004fc8f0
lea eax, [ebp - 0x840]
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x848], eax
mov dword [esp + 4], 0x7b1729
mov dword [esp], 0x7b1729
call fcn.00512590
sub esp, 8
lea eax, [ebp - 0x84d]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00508cf0
mov ebx, dword [ebp - 0x844]
mov edx, dword [ebp - 0x848]
test eax, eax
jg 0x513ce8
mov dword [ebp - 0x84c], 0
xor eax, eax
xor dword [eax*4 + 0x770be0], 0x57231ea9
add eax, 1
cmp eax, 0x11
jne 0x513b52
mov byte [0x770c20], 0
xor eax, eax
nop
xor dword [eax*4 + 0x770ba0], 0x57231ea9
add eax, 1
cmp eax, 9
jne 0x513b70
lea eax, [ebp - 0x84c]
mov byte [0x770bc0], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x770ba0
mov dword [esp + 8], 0x770be0
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.00510dc0
xor edx, edx
lea esi, [esi]
xor dword [edx*4 + 0x770be0], 0x57231ea9
add edx, 1
cmp edx, 0x11
jne 0x513bb8
mov byte [0x770c20], 0
lea esi, [esi]
xor dword [esi*4 + 0x770ba0], 0x57231ea9
add esi, 1
cmp esi, 9
jne 0x513bd8
mov ecx, dword [ebp - 0x84c]
mov byte [0x770bc0], 0
mov edx, ecx
test eax, eax
js 0x513d6f
movzx eax, byte [ecx]
lea esi, [ebp - 0x828]
test al, al
je 0x513ca8
lea esi, [esi]
nop
mov ebx, edx
jmp 0x513c2f
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x513d88
cmp al, 0xa
jne 0x513c20
mov byte [ebx], 0
mov dword [ebp - 0x830], esi
mov dword [esp], edx
mov dword [ebp - 0x85c], edx
call fcn.00723a18
mov edx, dword [ebp - 0x85c]
lea ecx, [ebp - 0x830]
add eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00512590
sub esp, 8
lea eax, [ebp - 0x830]
mov ecx, 0x901140
mov dword [esp], eax
call fcn.00733700
mov eax, dword [ebp - 0x830]
sub esp, 4
cmp eax, esi
je 0x513c8f
mov dword [esp], eax
call fcn.00712028
movzx eax, byte [ebx + 1]
lea edx, [ebx + 1]
test al, al
jne 0x513c18
mov ecx, dword [ebp - 0x84c]
test ecx, ecx
je 0x513cba
mov dword [esp], ecx
call fcn.007238f0
mov dword [ebp - 0x84c], 0
mov eax, dword [ebp - 0x848]
lea edx, [ebp - 0x840]
cmp eax, edx
je 0x513cd2
mov dword [esp], eax
call fcn.00712028
mov dword [esp], edi
call fcn.00508bb0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebp - 0x84d]
mov byte [ebp - 0x85d], al
lea eax, [ebx + 1]
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x840]
cmp edx, eax
je 0x513d7e
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x85c]
cmp eax, ecx
jb 0x513d3e
movzx eax, byte [ebp - 0x85d]
mov byte [edx + ebx], al
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x848]
mov byte [eax + ebx + 1], 0
jmp 0x513b18
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x848]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00712108
mov edx, dword [ebp - 0x848]
sub esp, 0x10
jmp 0x513d18
mov dword [0x900d88], 2
jmp 0x513ca4
mov eax, 0xf
jmp 0x513d0e
mov dword [ebp - 0x830], esi
mov dword [esp], edx
mov dword [ebp - 0x85c], edx
call fcn.00723a18
mov edx, dword [ebp - 0x85c]
lea ecx, [ebp - 0x830]
add eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00512590
sub esp, 8
lea eax, [ebp - 0x830]
mov ecx, 0x901140
mov dword [esp], eax
call fcn.00733700
mov eax, dword [ebp - 0x830]
sub esp, 4
cmp eax, esi
je 0x513c9e
mov dword [esp], eax
call fcn.00712028
jmp 0x513c9e
mov eax, 0xffffffff
ret