Function at 0x10005ea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp ecx, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
jbe 0x100060b4
mov eax, dword [0x10065650]
mov ecx, dword [0x10065654]
mov edx, dword [0x1006565c]
push ebx
mov ebx, dword [0x10065658]
push ebp
push esi
mov esi, ebx
imul esi, eax
add esi, ecx
add esi, edx
push edi
mov edi, dword [esp + 0x48]
lea esi, [edi + esi*4]
mov edi, dword [0x10065660]
mov dword [esp + 0x24], esi
lea esi, [eax + 3]
imul esi, edi
lea ebp, [ecx + eax]
shl ebp, 1
sub ebp, esi
mov esi, dword [esp + 0x48]
sub ebp, edx
lea esi, [esi + ebp*4]
mov dword [esp + 0x28], esi
mov esi, edi
imul esi, edx
mov dword [esp + 0x14], esi
lea ebp, [esi + 1]
imul ebp, edx
mov esi, edi
imul esi, ebx
sub esi, ebp
lea ebp, [eax + 1]
imul ebp, ecx
sub esi, ebp
mov ebp, dword [esp + 0x48]
add esi, eax
lea ebp, [ebp + esi*2]
add esi, ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x2c], esi
mov esi, edi
sub esi, ecx
add esi, ebx
lea esi, [ebp + esi*4]
mov dword [esp + 0x30], esi
mov esi, ecx
imul esi, ebx
mov ebx, edx
imul ebx, eax
add esi, ebx
mov ebx, dword [esp + 0x14]
imul esi, edx
mov ebp, eax
imul ebp, eax
sub ebx, ebp
inc ebx
imul ebx, edi
add esi, ebx
mov ebx, dword [esp + 0x48]
sub esi, ecx
sub esi, eax
lea ebx, [ebx + esi*2]
add esi, ebx
mov dword [esp + 0x34], esi
mov esi, ecx
imul esi, eax
add esi, edi
lea esi, [esi + edx + 1]
imul esi, dword [0x10065658]
mov ebx, edi
imul ebx, edi
mov ebp, ecx
sub ebp, esi
mov esi, ebx
imul esi, edi
sub ebp, esi
sub ebp, eax
mov esi, ebp
mov ebp, dword [esp + 0x48]
lea esi, [ebp + esi*4]
sub ebx, ecx
mov dword [esp + 0x38], esi
mov esi, dword [0x10065658]
sub ebx, esi
sub ebx, eax
lea ebx, [ebp + ebx*2]
mov dword [esp + 0x14], ebx
mov ebx, edx
imul ebx, edx
mov ebp, ecx
sub ebp, ebx
lea ebp, [eax + ebp + 2]
imul ebp, edx
add ebp, esi
lea ebx, [ecx + ecx*2]
add ebx, ebp
lea esi, [edi + edi]
mov ebp, 2
sub ebp, esi
imul ebp, dword [0x10065658]
mov esi, 2
sub esi, ecx
lea esi, [ebp + esi*2]
imul esi, eax
add eax, edx
mov dword [esp + 0x3c], esi
lea esi, [eax + eax*4]
imul eax, dword [0x10065658]
mov ebp, 5
sub ebp, esi
mov esi, dword [esp + 0x1c]
imul ebp, edi
mov edi, dword [esp + 0x20]
shl ebx, 1
inc eax
imul eax, ecx
mov ecx, dword [esp + 0x4c]
sub eax, edx
add ebp, ecx
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*4]
add eax, ebp
mov ebp, dword [0x1006564c]
mov dword [esp + 0x40], eax
lea esp, [esp]
xor edx, edx
lea eax, [ecx + 1]
div ebp
mov ecx, edx
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + ecx]
add eax, esi
xor edx, edx
div ebp
mov eax, dword [esp + 0x28]
mov esi, edx
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x13], dl
mov dl, byte [eax + esi]
mov eax, dword [esp + 0x30]
mov byte [eax + ecx], dl
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x13]
mov byte [edx + esi], al
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + esi]
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + ecx]
add eax, edx
xor edx, edx
div ebp
add edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
add edx, ebx
mov dl, byte [edx + eax]
mov eax, dword [esp + 0x40]
xor byte [eax + edi], dl
mov eax, dword [esp + 0x50]
inc edi
cmp edi, eax
jb 0x10006040
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret