Function at 0x1005cd30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
lea ecx, [ebx + 0x18]
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1005d06e
mov edi, dword [esp + 0x30]
jmp 0x1005ce45
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1005d080
mov ecx, dword [esp + 0x3c]
movzx eax, byte [esi]
mov edx, edi
xor al, byte [ecx]
mov byte [edi], al
movzx eax, byte [esi + 1]
xor al, byte [ecx + 1]
mov byte [edi + 1], al
movzx eax, byte [esi + 2]
xor al, byte [ecx + 2]
mov byte [edi + 2], al
movzx eax, byte [esi + 3]
xor al, byte [ecx + 3]
mov byte [edi + 3], al
movzx eax, byte [esi + 4]
xor al, byte [ecx + 4]
mov byte [edi + 4], al
movzx eax, byte [esi + 5]
xor al, byte [ecx + 5]
mov byte [edi + 5], al
movzx eax, byte [esi + 6]
xor al, byte [ecx + 6]
mov byte [edi + 6], al
movzx eax, byte [esi + 7]
xor al, byte [ecx + 7]
mov byte [edi + 7], al
movzx eax, byte [esi + 8]
xor al, byte [ecx + 8]
mov byte [edi + 8], al
movzx eax, byte [esi + 9]
xor al, byte [ecx + 9]
mov byte [edi + 9], al
movzx eax, byte [esi + 0xa]
xor al, byte [ecx + 0xa]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0xb]
xor al, byte [ecx + 0xb]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0xc]
xor al, byte [ecx + 0xc]
mov byte [edi + 0xc], al
movzx eax, byte [esi + 0xd]
xor al, byte [ecx + 0xd]
mov byte [edi + 0xd], al
movzx eax, byte [esi + 0xe]
xor al, byte [ecx + 0xe]
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0xf]
xor al, byte [ecx + 0xf]
mov ecx, edi
mov byte [edi + 0xf], al
mov eax, dword [esp + 0x2c]
call fcn.1005cb70
mov ebp, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov ebx, dword [esp + 0x3c]
mov dword [ebx], ebp
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
je 0x1005d06e
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x1005cd60
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
xor ecx, dword [eax + 0x10]
mov eax, dword [esi + 4]
xor eax, dword [ebx + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
xor eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], eax
mov eax, ebx
add eax, 0x98
mov esi, eax
mov edx, ecx
movzx eax, cl
mov edi, dword [esp + 4]
shr edx, 0x18
mov eax, dword [ebx + eax*4 + 0xb4]
xor eax, dword [ebx + edx*4 + 0xcb4]
movzx edx, ch
xor eax, dword [ebx + edx*4 + 0x4b4]
mov edx, ecx
rol edi, 8
shr edx, 0x10
mov ebp, edi
mov ecx, edi
movzx edx, dl
shr ebp, 0x18
xor eax, dword [ebx + edx*4 + 0x8b4]
mov edx, edi
shr edi, 0x10
movzx edx, dl
mov edx, dword [ebx + edx*4 + 0xb4]
xor edx, dword [ebx + ebp*4 + 0xcb4]
movzx ebp, ch
mov ecx, edi
xor edx, dword [ebx + ebp*4 + 0x4b4]
mov ebp, dword [esp + 8]
movzx edi, cl
mov ecx, dword [esi]
xor edx, dword [ebx + edi*4 + 0x8b4]
rol ebp, 1
add ecx, eax
add eax, dword [esi + 4]
mov edi, ecx
add edi, edx
xor edi, ebp
lea eax, [eax + edx*2]
xor eax, dword [esp + 0xc]
mov edx, edi
shr edx, 0x18
mov dword [esp + 8], edi
ror eax, 1
mov ecx, eax
mov dword [esp + 0xc], eax
mov eax, edi
movzx eax, al
mov eax, dword [ebx + eax*4 + 0xb4]
xor eax, dword [ebx + edx*4 + 0xcb4]
mov edx, edi
movzx edx, dh
xor eax, dword [ebx + edx*4 + 0x4b4]
mov edx, edi
mov edi, ecx
rol edi, 8
shr edx, 0x10
mov ecx, edi
movzx edx, dl
mov ebp, edi
xor eax, dword [ebx + edx*4 + 0x8b4]
shr ebp, 0x18
movzx edx, cl
mov ecx, edi
shr edi, 0x10
mov edx, dword [ebx + edx*4 + 0xb4]
xor edx, dword [ebx + ebp*4 + 0xcb4]
movzx ebp, ch
mov ecx, edi
xor edx, dword [ebx + ebp*4 + 0x4b4]
movzx edi, cl
mov ebp, dword [esi - 8]
xor edx, dword [ebx + edi*4 + 0x8b4]
mov ecx, dword [esp]
add ebp, eax
mov edi, ebp
rol ecx, 1
add edi, edx
xor ecx, edi
add eax, dword [esi - 4]
sub esi, 0x10
mov dword [esp], ecx
lea eax, [eax + edx*2]
xor eax, dword [esp + 4]
ror eax, 1
cmp dword [esp + 0x10], esi
mov dword [esp + 4], eax
jne 0x1005ce90
mov eax, dword [esp + 0xc]
mov ebp, ecx
xor eax, dword [ebx + 4]
mov ecx, dword [esp + 4]
xor ecx, dword [ebx + 0xc]
mov edx, dword [esp + 8]
xor ebp, dword [ebx + 8]
xor edx, dword [ebx]
mov dword [esp + 0x2c], ebx
mov dword [esp + 8], eax
mov edi, dword [esp + 0x30]
mov eax, ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], ebp
mov dword [esp], edx
test ecx, ecx
je 0x1005d042
mov ebx, dword [esp + 0x3c]
mov ecx, ebp
mov edx, dword [esi + 0xc]
mov ebp, dword [esi]
mov ebx, dword [ebx]
xor dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx + 4]
xor dword [esp + 8], ebx
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx + 8]
xor ecx, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ebx + 0xc]
xor eax, ebx
mov ebx, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx], ebp
mov dword [ecx + 0xc], edx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc]
add esi, 0x10
add edi, 0x10
mov dword [edi - 0x10], eax
mov eax, dword [esp + 4]
mov dword [edi - 0xc], eax
mov eax, dword [esp]
mov dword [edi - 8], eax
mov eax, dword [esp + 8]
mov dword [edi - 4], eax
sub dword [esp + 0x14], 1
jne 0x1005ce45
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov edx, edi
call fcn.1005cb70
jmp 0x1005ce34