Function at 0x42046a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
not edi
jmp 0x4204a1
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx edx, byte [eax]
mov ecx, edi
xor ecx, edx
mov edx, ecx
and edx, 0xff
mov edx, dword [edx*4 + 0x412b60]
mov ecx, edi
shr ecx, 8
mov edi, edx
xor edi, ecx
dec ebx
or ebx, ebx
je 0x4204ac
test byte [esp + 0x14], 3
jne 0x420479
mov esi, dword [esp + 0x14]
jmp 0x4206f8
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
sub ebx, 0x20
cmp ebx, 0x20
jae 0x4204b5
jmp 0x42074e
mov eax, esi
add esi, 4
xor edi, dword [eax]
mov edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x413760]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x413360]
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x412f60]
mov ecx, edi
shr ecx, 0x18
mov edi, edx
xor edi, dword [ecx*4 + 0x412b60]
sub ebx, 4
cmp ebx, 4
jae 0x420703
mov dword [esp + 0x14], esi
or ebx, ebx
je 0x420789
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
movzx esi, byte [eax]
mov edx, edi
xor edx, esi
mov esi, edx
and esi, 0xff
mov esi, dword [esi*4 + 0x412b60]
mov edx, edi
shr edx, 8
mov edi, esi
xor edi, edx
mov eax, ebx
dec eax
mov ebx, eax
jne 0x42075b
not edi
mov eax, edi
pop edi
pop esi
pop ebx
ret