Function at 0x420120
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
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 + 0xc], edx
mov edx, dword [ecx + 0x208]
xor edx, dword [eax + 4]
xor ebp, dword [ecx + 0x210]
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
mov edi, 0xfffffffe
lea eax, [edi - 2]
and eax, 3
mov edx, dword [ecx + eax*4 + 0x204]
mov dword [esp + 0x1c], edx
mov eax, ebp
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 + 0x10]
mov eax, ebx
ror eax, 0xf
xor eax, ebp
add eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 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 + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 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 + 0x10]
mov eax, ebp
ror eax, 0xf
xor eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx]
mov dword [esp + 0x10], 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]
add al, 1
add byte [eax], al
or edx, ebx
shl edx, 8
or edx, eax
xor edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 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 + 0x10]
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 + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 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 + 0x10]
mov eax, ebp
ror eax, 0xf
xor eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx]
add 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 + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
lea eax, [edi + 2]
cmp eax, 0x20
mov ebp, edx
mov ebx, esi
mov dword [esp + 0x18], ebp
jl 0x420161
mov edi, dword [ecx + 0x204]
mov eax, dword [esp + 0x28]
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 + 0x10]
pop edi
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x210]
xor edx, dword [esp + 0x10]
pop esi
pop ebp
mov dword [eax + 0xc], edx
pop ebx
add esp, 0x14
mov dword [esp + 4], eax
jmp fcn.0041fd40