Function at 0x4032d3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
movzx ebx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 6]
push esi
mov esi, dword [edx + 4]
push edi
movzx edi, byte [ecx + 0xb]
shl edi, 8
xor ebx, dword [esi]
mov dword [esp + 0x28], ebx
movzx ebx, byte [ecx + 7]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 4]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 0xa]
or edi, eax
movzx eax, byte [ecx + 9]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 8]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0xf]
shl eax, 8
push 4
pop ebp
add esi, ebp
mov dword [esp + 0x24], eax
movzx eax, byte [ecx + 0xe]
or dword [esp + 0x24], eax
shl dword [esp + 0x24], 8
xor ebx, dword [esi]
add esi, ebp
movzx eax, byte [ecx + 0xd]
or dword [esp + 0x24], eax
shl dword [esp + 0x24], 8
xor edi, dword [esi]
add esi, ebp
movzx eax, byte [ecx + 0xc]
mov ecx, dword [esp + 0x24]
or ecx, eax
mov dword [esp + 0x1c], edi
xor ecx, dword [esi]
mov edi, 0xff
add esi, ebp
mov dword [esp + 0x10], ebx
mov ebp, dword [edx]
sar ebp, 1
dec ebp
mov dword [esp + 0x24], ecx
test ebp, ebp
jle 0x4035a7
mov edx, dword [esp + 0x1c]
mov eax, edx
shr ecx, 8
and ecx, edi
shr eax, 0x10
and eax, edi
mov edi, 0xff
mov ecx, dword [ecx*4 + 0x40c240]
xor ecx, dword [eax*4 + 0x40c640]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40ca40]
mov eax, dword [esp + 0x28]
movzx eax, al
xor ecx, dword [eax*4 + 0x40be40]
xor ecx, dword [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
and ecx, edi
shr eax, 8
and eax, edi
mov ecx, dword [ecx*4 + 0x40c640]
xor ecx, dword [eax*4 + 0x40c240]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40ca40]
movzx eax, bl
xor ecx, dword [eax*4 + 0x40be40]
xor ecx, dword [esi + 4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, ebx
shr eax, 0x10
and eax, edi
shr ecx, 8
and ecx, edi
mov ebx, dword [ecx*4 + 0x40c240]
xor ebx, dword [eax*4 + 0x40c640]
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x40ca40]
movzx eax, dl
shr edx, 8
and edx, edi
mov edi, dword [esp + 0x10]
shr edi, 0x10
xor ebx, dword [eax*4 + 0x40be40]
and edi, 0xff
mov eax, dword [esp + 0x28]
mov edx, dword [edx*4 + 0x40c240]
xor ebx, dword [esi + 8]
xor edx, dword [edi*4 + 0x40c640]
mov edi, 0xff
shr eax, 0x18
xor edx, dword [eax*4 + 0x40ca40]
movzx eax, cl
xor edx, dword [eax*4 + 0x40be40]
mov eax, ebx
xor edx, dword [esi + 0xc]
shr eax, 0x10
mov ecx, edx
shr ecx, 8
and eax, edi
and ecx, edi
mov ecx, dword [ecx*4 + 0x40c240]
xor ecx, dword [eax*4 + 0x40c640]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40ca40]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x40be40]
xor ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, edx
shr ecx, 0x10
and ecx, edi
shr eax, 8
and eax, edi
mov edi, dword [ecx*4 + 0x40c640]
mov ecx, dword [esp + 0x18]
xor edi, dword [eax*4 + 0x40c240]
mov eax, ebx
shr eax, 0x18
xor edi, dword [eax*4 + 0x40ca40]
movzx eax, cl
shr ecx, 8
xor edi, dword [eax*4 + 0x40be40]
xor edi, dword [esi + 0x14]
mov eax, dword [esp + 0x14]
shr eax, 0x10
mov dword [esp + 0x10], edi
mov edi, 0xff
and ecx, edi
and eax, edi
mov ecx, dword [ecx*4 + 0x40c240]
xor ecx, dword [eax*4 + 0x40c640]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40ca40]
movzx eax, bl
shr ebx, 8
and ebx, edi
xor ecx, dword [eax*4 + 0x40be40]
xor ecx, dword [esi + 0x18]
mov eax, dword [esp + 0x18]
shr eax, 0x10
and eax, edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx*4 + 0x40c240]
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x40c640]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40ca40]
movzx eax, dl
xor ecx, dword [eax*4 + 0x40be40]
xor ecx, dword [esi + 0x1c]
add esi, 0x20
dec ebp
mov dword [esp + 0x24], ecx
test ebp, ebp
jg 0x4033a5
mov edx, dword [esp + 0x1c]
mov ebp, 0xff
shr ecx, 8
mov eax, edx
shr eax, 0x10
and ecx, ebp
and eax, ebp
mov edi, dword [esp + 0x10]
shr edi, 0x10
and edi, ebp
mov ecx, dword [ecx*4 + 0x40c240]
xor ecx, dword [eax*4 + 0x40c640]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40ca40]
mov eax, dword [esp + 0x28]
movzx eax, al
xor ecx, dword [eax*4 + 0x40be40]
xor ecx, dword [esi]
mov eax, dword [esp + 0x28]
shr eax, 8
and eax, ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
and ecx, ebp
mov ecx, dword [ecx*4 + 0x40c640]
xor ecx, dword [eax*4 + 0x40c240]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40ca40]
movzx eax, bl
xor ecx, dword [eax*4 + 0x40be40]
xor ecx, dword [esi + 4]
mov eax, dword [esp + 0x28]
shr eax, 0x10
and eax, ebp
mov dword [esp + 0x1c], ecx
mov ecx, ebx
shr ecx, 8
and ecx, ebp
mov ebx, dword [ecx*4 + 0x40c240]
xor ebx, dword [eax*4 + 0x40c640]
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x40ca40]
movzx eax, dl
shr edx, 8
and edx, ebp
xor ebx, dword [eax*4 + 0x40be40]
mov eax, dword [esp + 0x28]
mov edx, dword [edx*4 + 0x40c240]
xor edx, dword [edi*4 + 0x40c640]
xor ebx, dword [esi + 8]
shr eax, 0x18
mov dword [esp + 0x14], ebx
xor edx, dword [eax*4 + 0x40ca40]
movzx eax, cl
xor edx, dword [eax*4 + 0x40be40]
mov eax, ebx
xor edx, dword [esi + 0xc]
shr eax, 0x10
and eax, ebp
mov dword [esp + 0x10], edx
movzx ecx, byte [eax + 0x40bd40]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
movzx eax, byte [eax + 0x40bd40]
shl eax, 8
xor ecx, eax
mov eax, edx
shr eax, 8
and eax, ebp
shl ecx, 8
movzx eax, byte [eax + 0x40bd40]
xor ecx, eax
mov eax, dword [esp + 0x18]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x40bd40]
xor ecx, eax
mov eax, edx
xor ecx, dword [esi + 0x10]
shr eax, 0x10
and eax, ebp
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0x40bd40]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x40bd40]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x18]
shr eax, 8
and eax, ebp
shl ecx, 8
movzx eax, byte [eax + 0x40bd40]
xor ecx, eax
mov eax, dword [esp + 0x1c]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x40bd40]
xor ecx, eax
mov eax, dword [esp + 0x18]
shr eax, 0x10
and eax, ebp
xor ecx, dword [esi + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
movzx ebx, byte [eax + 0x40bd40]
mov eax, edx
mov edx, dword [esp + 0x1c]
shr eax, 0x18
movzx eax, byte [eax + 0x40bd40]
shl eax, 8
xor ebx, eax
mov eax, edx
shr eax, 8
and eax, ebp
shl ebx, 8
shr edx, 0x10
and edx, ebp
movzx eax, byte [eax + 0x40bd40]
xor ebx, eax
movzx eax, cl
movzx edx, byte [edx + 0x40bd40]
shl ebx, 8
shr ecx, 8
movzx eax, byte [eax + 0x40bd40]
and ecx, ebp
xor ebx, eax
mov eax, dword [esp + 0x18]
xor ebx, dword [esi + 0x18]
shr eax, 0x18
movzx eax, byte [eax + 0x40bd40]
shl eax, 8
xor edx, eax
movzx eax, byte [ecx + 0x40bd40]
mov ecx, dword [esp + 0x2c]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x40bd40]
xor edx, eax
mov eax, dword [esp + 0x24]
xor edx, dword [esi + 0x1c]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x24]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x24]
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [esp + 0x28]
mov byte [ecx + 4], al
shr eax, 8
mov byte [ecx + 5], al
mov eax, dword [esp + 0x28]
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, dword [esp + 0x28]
shr eax, 0x18
mov byte [ecx + 7], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 9], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, edx
shr eax, 8
pop edi
mov byte [ecx + 0xd], al
mov eax, edx
mov byte [ecx + 8], bl
shr ebx, 0x18
pop esi
shr eax, 0x10
mov byte [ecx + 0xc], dl
shr edx, 0x18
pop ebp
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
add esp, 0x10
ret 0xc