Function at 0x1001609a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x148
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.10003750
mov eax, esp
mov dword [0x1002e138], 0x23d1
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 0x10016166
mov dword [0x1002e138], 0x1b8b
call fcn.10016418
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], eax
call fcn.10016aee
add esp, 8
mov ecx, eax
mov dword [0x1002e158], eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ebp - 0x124]
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 dword [0x1002e138], 0x829
mov edx, ecx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x130], ecx
jmp 0x10016228
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
lea edx, section..data
imul esi, eax, 0xf4
mov edi, edx
add edi, esi
add edi, 0xec
imul esi, eax, 0xf4
add edx, esi
add edx, 0xe8
add eax, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, ecx
cmp eax, 0xfd
mov ecx, edx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], eax
jne 0x10016166
mov eax, dword [0x1002e13c]
mov ecx, eax
add ecx, 0x411
mov dword [0x1002e13c], ecx
add eax, 0x5d3
mov dword [ebp - 0x134], eax
xor eax, eax
mov ecx, dword [ebp - 0x134]
mov dword [0x1002e138], ecx
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov cl, byte [eax + 0x1001a72b]
mov dl, byte [eax + 0x1001a6fc]
sub dl, cl
mov esi, dword [ebp - 0x118]
mov byte [esi + eax], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x138], eax
je 0x100160ef
jmp 0x100161f1
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x12c]
lea edx, section..data
mov esi, eax
add esi, 1
imul edi, eax, 0xf4
mov ebx, edx
add ebx, edi
add ebx, 0xbc
imul edi, eax, 0xf4
mov dword [ebp - 0x13c], eax
mov eax, edx
add eax, edi
add eax, 0xec
mov edi, dword [ebp - 0x13c]
imul edi, edi, 0xf4
add edx, edi
add edx, 0xe8
mov edi, dword [ebp - 0x128]
add edi, ecx
mov eax, dword [eax]
mov ebx, dword [ebx]
movzx edx, word [edx]
xor edx, eax
sub esp, 0xc
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x148], esi
call fcn.100170ba
add esp, 0xc
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x144]
add eax, ecx
mov edx, dword [ebp - 0x148]
cmp edx, 0xfd
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], eax
jne 0x10016228
lea eax, [0x1001a70a]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x128]
add esi, 0x14a3f
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], edx
call fcn.10016e04
add esp, 0xc
sub esp, 0x10
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
mov ecx, dword [ebp - 0x128]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x124]
mov dword [esp + 0xc], edx
call fcn.10016967
add esp, 0x10
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x14c]
mov dword [eax], ecx
mov dword [eax + 4], 0x13e600
xor eax, eax
mov ecx, dword [ebp - 0x128]
add ecx, 0x11336
mov edx, dword [ebp - 0x110]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f60
mov dword [0x1002e13c], 0xe43
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret