Function at 0x10137890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x158
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
xor eax, eax
mov ecx, 0x20
mov dword [ebp - 0x114], eax
mov eax, ecx
call fcn.10136b10
mov eax, esp
mov dword [0x10170874], 0xfffff3e0
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x114]
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], esi
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
lea esi, section..data
mov edi, edx
or edi, 1
imul ebx, edx, 0xe8
mov dword [ebp - 0x128], eax
mov eax, esi
add eax, ebx
add eax, 0xe0
imul ebx, edi, 0xe8
mov dword [ebp - 0x12c], eax
mov eax, esi
add eax, ebx
add eax, 0xe0
mov ebx, dword [ebp - 0x12c]
mov ebx, dword [ebx]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
imul eax, edx, 0xe8
mov dword [ebp - 0x134], eax
mov eax, esi
mov dword [ebp - 0x138], ecx
mov ecx, dword [ebp - 0x134]
add eax, ecx
add eax, 0xa
imul ecx, edi, 0xe8
add esi, ecx
add esi, 0xa
mov di, word [eax]
mov si, word [esi]
movzx eax, di
movzx ecx, si
xor eax, ebx
mov ebx, dword [ebp - 0x130]
xor ecx, ebx
mov ebx, dword [ebp - 0x138]
add eax, ebx
mov ebx, dword [ebp - 0x128]
add ecx, ebx
add edx, 2
cmp edx, 0x37c
mov ebx, eax
mov esi, ecx
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x140], eax
jne 0x101378ef
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x13c]
add ecx, eax
mov dword [0x10170874], 0x150f
mov eax, dword [0x10170878]
mov edx, dword [ebp - 0x118]
mov byte [edx], 0x56
mov byte [edx + 1], 0x69
mov byte [edx + 2], 0x72
mov byte [edx + 3], 0x74
mov byte [edx + 4], 0x75
mov byte [edx + 5], 0x61
mov byte [edx + 6], 0x6c
mov byte [edx + 7], 0x41
mov byte [edx + 8], 0x6c
mov byte [edx + 9], 0x6c
mov byte [edx + 0xa], 0x6f
mov byte [edx + 0xb], 0x63
mov byte [edx + 0xc], 0
mov byte [edx + 0xd], 0x10
add eax, 0x12494
mov dword [0x10170878], eax
mov dword [ebp - 0x144], ecx
call fcn.10137df0
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], eax
call fcn.101372d0
add esp, 8
mov dword [0x10170894], eax
mov ecx, dword [0x10170874]
add ecx, 0x2035
mov dword [0x10170878], ecx
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x144]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0xe8
mov edi, edx
add edi, esi
add edi, 0xe0
mov esi, dword [edi]
imul edi, eax, 0xe8
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xe8
add edx, ebx
add edx, 0xa
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.101375e0
add esp, 0xc
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x37c
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x10137aaa
lea eax, [0x1013b74c]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [0x10170878]
add esi, 0xffffeb99
mov dword [0x10170878], esi
mov dword [0x10170874], 0x223b
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.10137120
add esp, 0xc
sub esp, 0x10
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x144]
mov dword [esp + 0xc], edx
call fcn.10137c50
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x1b5d6
mov edx, dword [ebp - 0x110]
mov dword [edx], ecx
mov dword [0x10170874], 0xef3
mov dword [edx + 4], 0x123e00
mov dword [0x10170878], 0x1f82
mov ecx, dword [ebp - 0x148]
add ecx, 0x10f2d
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f50
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret