Function at 0x420791
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 8
and eax, 0xff00
add ecx, eax
mov eax, edx
and eax, 0xff00
shl eax, 8
add ecx, eax
and edx, 0xff
shl edx, 0x18
mov edi, ecx
add edi, edx
not edi
jmp 0x4207ed
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov edx, edi
shr edx, 0x18
movzx ecx, byte [eax]
xor edx, ecx
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shl ecx, 8
mov edi, edx
xor edi, ecx
dec ebx
or ebx, ebx
je 0x4207f8
test byte [esp + 0x14], 3
jne 0x4207ca
mov esi, dword [esp + 0x14]
add esi, 0xfffffffc
jmp 0x420a5f
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
sub ebx, 0x20
cmp ebx, 0x20
jae 0x420804
jmp 0x420ab8
mov eax, esi
add eax, 4
lea esi, [esi + 4]
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413b60]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413f60]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x414360]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x414760]
sub ebx, 4
cmp ebx, 4
jae 0x420a6a
add esi, 4
mov dword [esp + 0x14], esi
or ebx, ebx
je 0x420af1
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov esi, edi
shr esi, 0x18
movzx edx, byte [eax]
xor esi, edx
mov esi, dword [esi*4 + 0x413b60]
mov edx, edi
shl edx, 8
mov edi, esi
xor edi, edx
mov eax, ebx
dec eax
mov ebx, eax
jne 0x420ac8
not edi
mov esi, edi
shr esi, 0x18
mov ebx, edi
shr ebx, 8
and ebx, 0xff00
add esi, ebx
mov ebx, edi
and ebx, 0xff00
shl ebx, 8
add esi, ebx
mov ebx, edi
and ebx, 0xff
shl ebx, 0x18
mov eax, esi
add eax, ebx
pop edi
pop esi
pop ebx
ret