Function at 0x10163305
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
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.101620f0
mov eax, esp
mov dword [0x101ec098], 0xe6a
mov dword [0x101ec09c], 0x1c1d
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], edx
jmp 0x1016339b
mov eax, dword [ebp - 0x124]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101641d8]
mov dh, byte [eax + 0x101641a9]
sub dh, dl
mov esi, dword [ebp - 0x118]
mov byte [esi + eax], dh
cmp ecx, 0xe
mov dword [ebp - 0x124], ecx
je 0x10163404
jmp 0x10163364
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
xor edx, edx
lea esi, section..data
imul edi, ecx, 0xac
mov ebx, esi
add ebx, edi
add ebx, 0xa8
imul edi, ecx, 0xac
add esi, edi
add esi, 0x7c
add ecx, 1
mov edi, dword [ebx]
movzx esi, word [esi]
xor esi, edi
add esi, eax
cmp ecx, 0x2e3
mov eax, esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
je 0x10163364
jmp 0x1016339b
mov dword [0x101ec09c], 0x1490
mov dword [0x101ec098], 0x2176
call fcn.10162eff
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], eax
call fcn.1016302b
add esp, 8
mov ecx, eax
mov dword [0x101ec0b4], eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ebp - 0x128]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], ecx
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x130]
lea edx, section..data
imul esi, eax, 0xac
mov edi, edx
add edi, esi
add edi, 0xa8
mov esi, dword [edi]
imul edi, eax, 0xac
mov ebx, edx
add ebx, edi
add ebx, 0x20
mov edi, dword [ebx]
imul ebx, eax, 0xac
add edx, ebx
add edx, 0x7c
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x12c]
add esi, ecx
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], edx
call fcn.10162203
add esp, 0xc
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x13c]
add eax, ecx
mov edx, dword [ebp - 0x138]
add edx, 1
cmp edx, 0x2e3
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
jne 0x10163476
lea eax, [0x101641b7]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101ec098], 0x1cea
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], ecx
call fcn.10162adf
add esp, 0xc
sub esp, 0x10
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
mov ecx, dword [ebp - 0x12c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x128]
mov dword [esp + 0xc], edx
call fcn.10162263
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x12c]
add ecx, 0xd4600
mov edx, dword [ebp - 0x110]
mov dword [edx], ecx
mov dword [edx + 4], 0x13c600
mov ecx, dword [ebp - 0x12c]
add ecx, 0x5d4b5
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2020
mov dword [0x101ec098], 0x25ad
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret