Function at 0x10152092
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.1014b830
mov eax, esp
mov dword [0x10165250], 0xeb4
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 0x101521a8
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x128]
lea edx, section..data
imul esi, ecx, 0xb4
mov edi, edx
add edi, esi
add edi, 0x48
imul esi, ecx, 0xb4
mov ebx, edx
add ebx, esi
mov esi, ecx
add esi, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x134], ecx
mov ecx, dword [ebp - 0x12c]
add eax, ecx
mov ecx, dword [ebp - 0x134]
imul ecx, ecx, 0xb4
add edx, ecx
add edx, 0x44
mov ecx, dword [edi]
mov edi, dword [ebx]
movzx edx, word [edx]
xor edx, ecx
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], edx
call fcn.10152478
add esp, 0xc
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x12c]
add eax, ecx
mov edx, dword [ebp - 0x138]
cmp edx, 0x12b
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], eax
je 0x101522c1
jmp 0x101520ea
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
xor edx, edx
lea esi, section..data
imul edi, ecx, 0xb4
mov ebx, esi
add ebx, edi
add ebx, 0x48
mov edi, ecx
add edi, 1
imul ecx, ecx, 0xb4
add esi, ecx
add esi, 0x44
mov ecx, dword [ebx]
movzx esi, word [esi]
xor esi, ecx
add esi, eax
cmp edi, 0x12b
mov eax, esi
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x144], edx
jne 0x101521a8
mov eax, dword [ebp - 0x144]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101555a3]
mov dh, byte [eax + 0x10155574]
sub dh, dl
mov esi, dword [ebp - 0x118]
mov byte [esi + eax], dh
cmp ecx, 0xe
mov dword [ebp - 0x144], ecx
jne 0x1015220d
mov dword [0x10165250], 0xf0b
call fcn.10152f2b
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], eax
call fcn.10151c36
add esp, 8
mov ecx, eax
mov dword [0x10165270], eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ebp - 0x140]
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, dword [0x10165254]
add edx, 0xffffd942
mov dword [0x10165250], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], ecx
jmp 0x101520ea
lea eax, [0x10155582]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x130]
add esi, 0x11cbb
mov dword [0x10165254], 0xe6d
mov edi, dword [ebp - 0x130]
add edi, 0x1c58c
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], esi
call fcn.10151ef9
add esp, 0xc
sub esp, 0x10
mov eax, dword [ebp - 0x150]
mov dword [esp], eax
mov ecx, dword [ebp - 0x130]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.10152a46
add esp, 0x10
xor eax, eax
mov dword [0x10165250], 0x1e27
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x148]
mov dword [ecx], edx
mov dword [ecx + 4], 0x113a00
mov edx, dword [ebp - 0x154]
mov dword [ecx + 8], edx
mov edx, dword [0x10165250]
add edx, 0xffffe53e
mov dword [0x10165250], edx
mov dword [ecx + 0xc], 0x1ff0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret