Function at 0x1013ba21
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1019921c], 0x1fc2
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1013bb37
lea eax, [0x1017eb8b]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x13c]
add esi, 0x22b39
mov edi, dword [ebp - 0x13c]
add edi, 0x3e3a
mov dword [0x1019921c], 0x20aa
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], esi
call fcn.1013b187
mov eax, dword [0x10199218]
add eax, 0xffffded0
mov dword [0x10199218], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
mov ecx, dword [ebp - 0x13c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x150]
mov dword [esp + 0xc], edx
call fcn.1013c12e
xor eax, eax
mov dword [0x1019921c], 0x24c3
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x14c]
mov dword [ecx], edx
mov dword [ecx + 4], 0x157200
mov edx, dword [ebp - 0x140]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x20d0
mov edx, dword [0x1019921c]
add edx, 0x13ce
mov dword [0x1019921c], edx
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, [0x1018a5f0]
mov esi, eax
add esi, 1
imul edi, eax, 0x74
mov ebx, edx
add ebx, edi
add ebx, 0x4c
imul eax, eax, 0x74
add edx, eax
add edx, 0x70
mov eax, dword [edx]
movzx edx, word [ebx]
xor edx, eax
add edx, ecx
cmp esi, 0x209
mov eax, edx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x138], esi
jne 0x1013bb37
xor eax, eax
mov dword [0x1019921c], 0xbaf
mov ecx, dword [0x10199218]
add ecx, 0xffffeb03
mov dword [0x10199218], ecx
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1017ebac]
mov dh, byte [eax + 0x1017eb7d]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x154], ecx
jne 0x1013bbb8
lea eax, [ebp - 0x12c]
mov dword [0x1019921c], 0x1775
mov dword [0x10199218], 0x2310
mov dword [ebp - 0x158], eax
call fcn.1013b0bb
mov dword [esp], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
call fcn.1013acf3
mov ecx, eax
mov dword [0x10199234], eax
mov eax, esp
mov edx, dword [ebp - 0x150]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x10199218], 0x1394
mov edx, ecx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x160], ecx
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
lea edx, [0x1018a5f0]
imul esi, eax, 0x74
mov edi, edx
add edi, esi
add edi, 0x48
imul esi, eax, 0x74
mov ebx, edx
add ebx, esi
add ebx, 0x70
mov esi, eax
add esi, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x13c]
add eax, ecx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x164]
imul eax, eax, 0x74
add edx, eax
add edx, 0x4c
mov eax, dword [ebx]
mov edi, dword [edi]
movzx edx, word [edx]
xor edx, eax
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x174], esi
call fcn.1013bf16
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x170]
add eax, ecx
mov edx, dword [ebp - 0x174]
cmp edx, 0x209
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], eax
je 0x1013ba55
jmp 0x1013bc6d