Function at 0x402d13
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
push ebx
mov edx, dword [esp + 0x1c]
push ebp
movzx ebx, byte [ecx + 3]
mov ebp, 0xff
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]
push esi
mov esi, dword [edx + 4]
push edi
movzx edi, byte [ecx + 7]
shl edi, 8
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 6]
or edi, eax
xor ebx, dword [esi]
movzx eax, byte [ecx + 5]
shl edi, 8
or edi, eax
mov dword [esp + 0x10], ebx
movzx eax, byte [ecx + 4]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0xb]
xor edi, dword [esi + 4]
add esi, 8
shl eax, 8
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 0xa]
or dword [esp + 0x28], eax
shl dword [esp + 0x28], 8
movzx eax, byte [ecx + 9]
or dword [esp + 0x28], eax
movzx eax, byte [ecx + 8]
shl dword [esp + 0x28], 8
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
xor eax, dword [esi]
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 0xf]
shl eax, 8
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 0xe]
or dword [esp + 0x2c], eax
shl dword [esp + 0x2c], 8
movzx eax, byte [ecx + 0xd]
or dword [esp + 0x2c], eax
shl dword [esp + 0x2c], 8
movzx eax, byte [ecx + 0xc]
mov ecx, dword [esp + 0x2c]
push 4
mov dword [esp + 0x20], edi
or ecx, eax
mov eax, dword [edx]
pop edi
add esi, edi
sar eax, 1
xor ecx, dword [esi]
add esi, edi
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
test eax, eax
jle 0x40301f
mov edx, dword [esp + 0x1c]
mov eax, edx
mov ecx, dword [esp + 0x28]
shr eax, 8
and eax, ebp
shr ecx, 0x10
and ecx, ebp
mov ebp, dword [esp + 0x2c]
push 4
pop edi
mov ecx, dword [ecx*4 + 0x40b540]
xor ecx, dword [eax*4 + 0x40b140]
mov eax, ebp
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40b940]
movzx eax, bl
xor ecx, dword [eax*4 + 0x40ad40]
xor ecx, dword [esi]
add esi, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, ebp
shr eax, 8
and eax, 0xff
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x40b540]
xor ecx, dword [eax*4 + 0x40b140]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40b940]
movzx eax, dl
xor ecx, dword [eax*4 + 0x40ad40]
mov eax, ebx
xor ecx, dword [esi]
add esi, edi
mov dword [esp + 0x18], ecx
mov ecx, ebp
shr eax, 0x10
mov ebp, 0xff
and eax, ebp
shr ecx, 8
and ecx, ebp
mov ebx, dword [ecx*4 + 0x40b140]
xor ebx, dword [eax*4 + 0x40b540]
mov eax, edx
mov ecx, dword [esp + 0x10]
shr eax, 0x18
shr edx, 0x10
shr ecx, 8
and edx, ebp
and ecx, ebp
xor ebx, dword [eax*4 + 0x40b940]
mov eax, dword [esp + 0x28]
mov edx, dword [edx*4 + 0x40b540]
xor edx, dword [ecx*4 + 0x40b140]
movzx eax, al
xor ebx, dword [eax*4 + 0x40ad40]
mov eax, dword [esp + 0x28]
xor ebx, dword [esi]
add esi, edi
shr eax, 0x18
mov ecx, ebx
shr ecx, 0x10
and ecx, ebp
xor edx, dword [eax*4 + 0x40b940]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx*4 + 0x40b540]
movzx eax, al
xor edx, dword [eax*4 + 0x40ad40]
mov eax, dword [esp + 0x18]
xor edx, dword [esi]
add esi, edi
shr eax, 8
and eax, ebp
xor ecx, dword [eax*4 + 0x40b140]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40b940]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x40ad40]
mov eax, ebx
xor ecx, dword [esi]
add esi, edi
mov dword [esp + 0x10], ecx
mov ecx, edx
shr ecx, 0x10
and ecx, ebp
shr eax, 8
and eax, ebp
push 4
mov ecx, dword [ecx*4 + 0x40b540]
xor ecx, dword [eax*4 + 0x40b140]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40b940]
mov eax, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x40ad40]
xor ecx, dword [esi]
add esi, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, edx
shr ecx, 8
shr eax, 0x10
and ecx, ebp
and eax, ebp
mov ecx, dword [ecx*4 + 0x40b140]
xor ecx, dword [eax*4 + 0x40b540]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
mov edi, dword [esp + 0x2c]
shr eax, 0x18
shr ecx, 0x10
and ecx, ebp
xor edi, dword [eax*4 + 0x40b940]
movzx eax, bl
mov ecx, dword [ecx*4 + 0x40b540]
shr ebx, 0x18
xor edi, dword [eax*4 + 0x40ad40]
mov eax, edi
mov dword [esp + 0x2c], edi
xor eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
shr eax, 8
and eax, ebp
pop edi
add esi, edi
xor ecx, dword [eax*4 + 0x40b140]
xor ecx, dword [ebx*4 + 0x40b940]
mov ebx, dword [esp + 0x10]
movzx eax, dl
xor ecx, dword [eax*4 + 0x40ad40]
xor ecx, dword [esi]
add esi, edi
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
test eax, eax
jg 0x402dfb
mov edx, dword [esp + 0x1c]
mov eax, edx
mov ecx, dword [esp + 0x28]
shr eax, 8
and eax, ebp
shr ecx, 0x10
and ecx, ebp
mov ecx, dword [ecx*4 + 0x40b540]
xor ecx, dword [eax*4 + 0x40b140]
mov eax, dword [esp + 0x2c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40b940]
movzx eax, bl
xor ecx, dword [eax*4 + 0x40ad40]
xor ecx, dword [esi]
add esi, edi
mov eax, dword [esp + 0x28]
shr eax, 8
and eax, ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
shr ecx, 0x10
and ecx, ebp
mov ecx, dword [ecx*4 + 0x40b540]
xor ecx, dword [eax*4 + 0x40b140]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x40b940]
movzx eax, dl
xor ecx, dword [eax*4 + 0x40ad40]
mov eax, ebx
xor ecx, dword [esi]
add esi, edi
shr eax, 0x10
and eax, ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
shr ecx, 8
and ecx, ebp
mov ebx, dword [ecx*4 + 0x40b140]
xor ebx, dword [eax*4 + 0x40b540]
mov eax, edx
mov ecx, dword [esp + 0x10]
shr eax, 0x18
shr edx, 0x10
and edx, ebp
shr ecx, 8
and ecx, ebp
xor ebx, dword [eax*4 + 0x40b940]
mov eax, dword [esp + 0x28]
mov edx, dword [edx*4 + 0x40b540]
xor edx, dword [ecx*4 + 0x40b140]
movzx eax, al
xor ebx, dword [eax*4 + 0x40ad40]
mov eax, dword [esp + 0x28]
xor ebx, dword [esi]
add esi, edi
shr eax, 0x18
mov dword [esp + 0x20], ebx
xor edx, dword [eax*4 + 0x40b940]
mov eax, dword [esp + 0x2c]
movzx eax, al
xor edx, dword [eax*4 + 0x40ad40]
mov eax, ebx
xor edx, dword [esi]
add esi, edi
shr eax, 0x10
and eax, ebp
mov dword [esp + 0x1c], edx
movzx ecx, byte [eax + 0x40ac40]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x40ac40]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x14]
shr eax, 8
and eax, ebp
shl ecx, 8
movzx eax, byte [eax + 0x40ac40]
xor ecx, eax
mov eax, dword [esp + 0x18]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x40ac40]
xor ecx, eax
mov eax, edx
xor ecx, dword [esi]
add esi, edi
shr eax, 0x10
and eax, ebp
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0x40ac40]
mov eax, dword [esp + 0x18]
shr eax, 0x18
movzx eax, byte [eax + 0x40ac40]
shl eax, 8
xor ecx, eax
mov eax, ebx
shr eax, 8
and eax, ebp
shl ecx, 8
movzx eax, byte [eax + 0x40ac40]
xor ecx, eax
mov eax, dword [esp + 0x14]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x40ac40]
xor ecx, eax
mov eax, dword [esp + 0x18]
shr eax, 0x10
and eax, ebp
xor ecx, dword [esi]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
movzx ebx, byte [eax + 0x40ac40]
mov eax, dword [esp + 0x14]
shr eax, 0x18
movzx eax, byte [eax + 0x40ac40]
shl eax, 8
xor ebx, eax
mov eax, edx
shr eax, 8
and eax, ebp
shl ebx, 8
movzx eax, byte [eax + 0x40ac40]
xor ebx, eax
movzx eax, cl
shl ebx, 8
shr ecx, 0x18
movzx eax, byte [eax + 0x40ac40]
xor ebx, eax
mov eax, dword [esp + 0x14]
shr eax, 0x10
and eax, ebp
xor ebx, dword [esi + edi]
movzx edx, byte [eax + 0x40ac40]
movzx eax, byte [ecx + 0x40ac40]
shl eax, 8
xor edx, eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
shr eax, 8
and eax, ebp
shl edx, 8
movzx eax, byte [eax + 0x40ac40]
xor edx, eax
mov eax, dword [esp + 0x1c]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x40ac40]
xor edx, eax
mov eax, dword [esp + 0x28]
xor edx, dword [esi + edi + 4]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x28]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x28]
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [esp + 0x2c]
mov byte [ecx + 4], al
shr eax, 8
mov byte [ecx + 5], al
mov eax, dword [esp + 0x2c]
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, dword [esp + 0x2c]
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, 0x14
ret 0xc