Function at 0x401f40
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov eax, ecx
mov dword [esp + 4], eax
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + 4]
mov eax, edi
shr eax, 4
xor eax, esi
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor edi, eax
mov eax, esi
shr eax, 0x10
xor eax, edi
movzx eax, ax
xor edi, eax
shl eax, 0x10
xor esi, eax
mov eax, edi
shr eax, 2
xor eax, esi
and eax, 0x33333333
xor esi, eax
shl eax, 2
xor edi, eax
mov eax, esi
shr eax, 8
xor eax, edi
and eax, 0xff00ff
xor edi, eax
shl eax, 8
xor esi, eax
mov eax, edi
shr eax, 1
xor eax, esi
and eax, 0x55555555
xor esi, eax
add eax, eax
xor edi, eax
mov eax, esi
shr eax, 0x1d
lea ebx, [eax + esi*8]
mov eax, edi
shr eax, 0x1d
cmp dword [esp + 0x18], 0
lea edi, [eax + edi*8]
je 0x4020ec
lea ebp, [edx + 8]
mov dword [esp + 0x18], 8
mov eax, dword [ebp - 4]
lea ebp, [ebp + 0x10]
xor eax, ebx
mov esi, dword [ebp - 0x18]
mov edx, eax
xor esi, ebx
shr eax, 4
shl edx, 0x1c
add edx, eax
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x54f900]
xor ecx, dword [eax*4 + 0x54f700]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x54f500]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f800]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f600]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x54f400]
xor ecx, dword [edx*4 + 0x54fb00]
xor ecx, dword [esi*4 + 0x54fa00]
mov eax, dword [ebp - 0xc]
xor edi, ecx
xor eax, edi
mov esi, dword [ebp - 0x10]
mov edx, eax
xor esi, edi
shr eax, 4
shl edx, 0x1c
add edx, eax
mov ecx, edx
mov eax, edx
shr eax, 0xa
shr ecx, 0x12
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x54f900]
xor ecx, dword [eax*4 + 0x54f700]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x54f500]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f800]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f600]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x54f400]
xor ecx, dword [edx*4 + 0x54fb00]
xor ecx, dword [esi*4 + 0x54fa00]
xor ebx, ecx
sub dword [esp + 0x18], 1
jne 0x401fd1
jmp 0x40220d
lea ebp, [edx + 0x70]
mov dword [esp + 0x18], 8
mov eax, dword [ebp + 0xc]
lea ebp, [ebp - 0x10]
xor eax, ebx
mov esi, dword [ebp + 0x18]
mov edx, eax
xor esi, ebx
shr eax, 4
shl edx, 0x1c
add edx, eax
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x54f900]
xor ecx, dword [eax*4 + 0x54f700]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x54f500]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f800]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f600]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x54f400]
xor ecx, dword [edx*4 + 0x54fb00]
xor ecx, dword [esi*4 + 0x54fa00]
mov eax, dword [ebp + 0x14]
xor edi, ecx
xor eax, edi
mov esi, dword [ebp + 0x10]
mov edx, eax
xor esi, edi
shr eax, 4
shl edx, 0x1c
add edx, eax
mov ecx, edx
mov eax, edx
shr eax, 0xa
shr ecx, 0x12
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x54f900]
xor ecx, dword [eax*4 + 0x54f700]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x54f500]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f800]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x54f600]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x54f400]
xor ecx, dword [edx*4 + 0x54fb00]
xor ecx, dword [esi*4 + 0x54fa00]
xor ebx, ecx
sub dword [esp + 0x18], 1
jne 0x4020f7
mov edx, ebx
mov esi, edi
shl edx, 0x1d
shl esi, 0x1d
shr ebx, 3
add edx, ebx
shr edi, 3
add esi, edi
mov eax, edx
shr eax, 1
xor eax, esi
and eax, 0x55555555
xor esi, eax
add eax, eax
xor edx, eax
mov eax, esi
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor esi, eax
mov eax, edx
shr eax, 2
xor eax, esi
and eax, 0x33333333
xor esi, eax
shl eax, 2
xor edx, eax
mov eax, esi
shr eax, 0x10
xor eax, edx
movzx eax, ax
xor edx, eax
shl eax, 0x10
xor esi, eax
mov ecx, edx
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
mov eax, ecx
shl ecx, 4
xor eax, esi
mov esi, dword [esp + 0x10]
pop edi
xor ecx, edx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
pop ecx
ret