Function at 0x5150ab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x174
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
xor eax, eax
mov dword [0x5b9298], 0x2249
mov dword [0x5b929c], 0x1ad5
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jmp 0x5151a6
lea eax, [0x573d9b]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x5b9298], 0x1695
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.00514f16
mov dword [0x5b929c], 0x1967
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.00515627
xor eax, eax
mov dword [0x5b929c], 0x15ce
mov ecx, dword [ebp - 0x144]
add ecx, 0x11503
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x126200
mov ecx, dword [ebp - 0x144]
add ecx, 0xd4b3
mov dword [edx + 8], ecx
mov dword [0x5b9298], 0xe3a
mov dword [edx + 0xc], 0x2010
add esp, 0x174
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
xor edx, edx
lea esi, section..data
mov edi, ecx
add edi, 1
imul ebx, ecx, 0x11c
mov dword [ebp - 0x14c], eax
mov eax, esi
add eax, ebx
add eax, 0x50
imul ecx, ecx, 0x11c
add esi, ecx
add esi, 0x68
mov ecx, dword [esi]
movzx eax, word [eax]
xor eax, ecx
mov ecx, dword [ebp - 0x14c]
add eax, ecx
cmp edi, 0x3d7
mov ecx, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x150], edx
jne 0x5151a6
mov eax, dword [ebp - 0x150]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x573dbc]
mov dh, byte [eax + 0x573d8d]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x150], ecx
jne 0x515216
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x154], eax
mov dword [0x5b9298], 0x179a
call fcn.005160ab
mov dword [esp], eax
mov eax, dword [ebp - 0x154]
mov dword [esp + 4], eax
call fcn.00514c21
mov ecx, eax
mov dword [0x5b92b8], eax
mov eax, esp
mov edx, dword [ebp - 0x148]
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 edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], ecx
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
lea edx, section..data
imul esi, eax, 0x11c
mov edi, edx
add edi, esi
add edi, 0x68
imul esi, eax, 0x11c
mov ebx, edx
add ebx, esi
mov esi, eax
add esi, 1
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x144]
add eax, ecx
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x160]
imul eax, eax, 0x11c
add edx, eax
add edx, 0x50
mov eax, dword [edi]
mov edi, dword [ebx]
movzx edx, word [edx]
xor edx, eax
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], esi
call fcn.00515cd3
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x16c]
add eax, ecx
mov edx, dword [ebp - 0x170]
cmp edx, 0x3d7
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], eax
je 0x5150e9
jmp 0x5152b7