Function at 0x421380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
push ebx
mov ebx, dword [ecx + 0x20c]
xor ebx, dword [eax + 8]
push ebp
mov ebp, dword [eax + 0xc]
push esi
mov esi, dword [ecx + 0x204]
xor edx, esi
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x208]
xor edx, dword [eax + 4]
xor ebp, dword [ecx + 0x210]
mov dword [esp + 0xc], edx
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0xc]
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov edi, 0x1d
jmp 0x4213f0
mov eax, ebp
lea edx, [edi - 2]
and edx, 3
mov edx, dword [ecx + edx*4 + 0x204]
mov dword [esp + 0x1c], edx
rol eax, 0xb
add eax, ebx
xor eax, edx
mov edx, eax
shr edx, 0x10
and edx, 0xff
movzx esi, byte [edx + ecx + 0x104]
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + ecx + 0x104]
shl edx, 8
or esi, edx
mov edx, eax
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + ecx + 0x104]
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
xor esi, dword [esp + 0x14]
mov eax, ebx
ror eax, 0xf
xor eax, ebp
add eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx ebp, byte [ecx + ebp + 0x104]
and edx, 0xff
movzx edx, byte [edx + ecx + 0x104]
shl ebp, 8
or edx, ebp
mov ebp, eax
shr ebp, 8
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
and ebp, 0xff
movzx ebp, byte [ecx + ebp + 0x104]
shl edx, 8
or edx, ebp
shl edx, 8
or edx, eax
xor edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [edi + 1]
and eax, 3
lea ebx, [ecx + eax*4 + 0x204]
mov eax, edx
rol eax, 0xb
add eax, esi
xor eax, dword [ebx]
mov ebp, esi
mov dword [esp + 0x1c], ebx
mov esi, eax
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + ecx + 0x104]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + ecx + 0x104]
shl ebx, 8
or esi, ebx
mov ebx, eax
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + ecx + 0x104]
shl esi, 8
or esi, ebx
mov dword [esp + 0x18], edx
shl esi, 8
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
or esi, eax
xor esi, dword [esp + 0x14]
mov eax, ebp
ror eax, 0xf
xor eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx]
mov dword [esp + 0x14], ebp
mov edx, eax
shr edx, 0x10
mov ebx, eax
and edx, 0xff
movzx edx, byte [edx + ecx + 0x104]
shr ebx, 0x18
movzx ebx, byte [ebx + ecx + 0x104]
shl ebx, 8
or edx, ebx
mov ebx, eax
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
shl edx, 8
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + ecx + 0x104]
or edx, ebx
shl edx, 8
or edx, eax
xor edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, edi
and eax, 3
lea ebp, [ecx + eax*4 + 0x204]
mov dword [esp + 0x1c], ebp
mov eax, edx
rol eax, 0xb
add eax, esi
xor eax, dword [ebp]
mov ebx, esi
mov esi, eax
shr esi, 0x10
mov ebp, eax
shr ebp, 0x18
movzx ebp, byte [ecx + ebp + 0x104]
shl ebp, 8
and esi, 0xff
movzx esi, byte [esi + ecx + 0x104]
or esi, ebp
mov ebp, eax
shr ebp, 8
and ebp, 0xff
movzx ebp, byte [ecx + ebp + 0x104]
shl esi, 8
or esi, ebp
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
shl esi, 8
or esi, eax
xor esi, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov eax, ebx
ror eax, 0xf
xor eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx]
mov edx, eax
shr edx, 0x10
mov ebp, eax
shr ebp, 0x18
movzx ebp, byte [ecx + ebp + 0x104]
and edx, 0xff
movzx edx, byte [edx + ecx + 0x104]
shl ebp, 8
or edx, ebp
mov ebp, eax
shr ebp, 8
shl edx, 8
and ebp, 0xff
movzx ebp, byte [ecx + ebp + 0x104]
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
or edx, ebp
shl edx, 8
or edx, eax
xor edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
lea eax, [edi - 1]
and eax, 3
lea ebx, [ecx + eax*4 + 0x204]
mov eax, edx
rol eax, 0xb
add eax, esi
xor eax, dword [ebx]
mov dword [esp + 0x1c], ebx
mov ebp, esi
mov esi, eax
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + ecx + 0x104]
shr esi, 0x10
shl ebx, 8
and esi, 0xff
movzx esi, byte [esi + ecx + 0x104]
or esi, ebx
mov ebx, eax
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + ecx + 0x104]
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
shl esi, 8
or esi, ebx
mov dword [esp + 0x18], edx
shl esi, 8
or esi, eax
xor esi, dword [esp + 0x14]
mov eax, ebp
ror eax, 0xf
xor eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx]
sub edi, 4
mov edx, eax
shr edx, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + ecx + 0x104]
and edx, 0xff
movzx edx, byte [edx + ecx + 0x104]
shl ebx, 8
or edx, ebx
mov ebx, eax
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + ecx + 0x104]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
or edx, ebx
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x18]
xor edx, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
lea eax, [edi + 2]
mov ebp, edx
mov ebx, esi
mov dword [esp + 0x18], ebp
test eax, eax
jge 0x4213f0
mov edi, dword [ecx + 0x204]
mov eax, dword [esp + 0x20]
xor edi, esi
mov dword [eax], edi
mov esi, dword [ecx + 0x208]
xor esi, edx
mov dword [eax + 4], esi
mov edx, dword [ecx + 0x20c]
xor edx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x210]
xor edx, dword [esp + 0x10]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x28]
push eax
call fcn.00420b90
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x2c
ret 4