Function at 0x402050
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45901c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xff
mov esi, ecx
lea ecx, [ebp - 0x103]
push 0
push ecx
mov dword [ebp - 0x11c], eax
call fcn.0040c1c0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x104], edx
mov edx, dword [esi + 0x10]
push edi
mov dword [ebp - 0x100], eax
push edx
lea eax, [ebp - 0xf8]
push eax
mov dword [ebp - 0xfc], ecx
call fcn.0040ff80
lea ecx, [ebp - 0x104]
add eax, edi
add esp, 0x18
sub eax, ecx
mov edx, ecx
mov ecx, 0xffffffff
je 0x4020e9
lea esp, [esp]
movzx ebx, byte [edx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x45a400]
inc edx
dec eax
jne 0x4020d0
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 4]
not ecx
mov ebx, ecx
add edx, edi
lea ecx, [edx + eax + 0x8c]
push ecx
mov dword [ebp - 0x118], ebx
call fcn.004061e8
add esp, 4
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x40212a
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret 4
mov dword [eax], ebx
mov edx, dword [esi + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
add edi, ecx
lea ebx, [eax + 0x1c]
mov dword [ebp - 0x10c], ebx
cmp ecx, edi
je 0x4021c9
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x110], eax
nop
mov dl, byte [ecx]
cmp dl, 0x41
jb 0x40217f
cmp dl, 0x5a
ja 0x40217f
or dl, 0x20
mov byte [ebp - 0x105], dl
cmp dl, 0xf0
jae 0x4021b1
mov edx, dword [ebp - 0x110]
and edx, 3
movzx eax, byte [ebp + edx - 0x118]
cdq
mov ebx, 0xa
idiv ebx
mov ebx, dword [ebp - 0x10c]
add dl, byte [ebp - 0x105]
mov byte [ebx], dl
inc dword [ebp - 0x110]
mov eax, dword [ebp - 0x114]
inc ebx
inc ecx
mov dword [ebp - 0x10c], ebx
cmp ecx, edi
jne 0x402170
mov edi, dword [esi + 8]
mov ecx, dword [esi + 4]
add ecx, edi
mov dword [ebp - 0x110], ecx
cmp edi, ecx
je 0x402237
mov edx, edi
sub edx, ecx
mov dword [ebp - 0x10c], edx
mov cl, byte [edi]
cmp cl, 0x41
jb 0x4021f4
cmp cl, 0x5a
ja 0x4021f4
or cl, 0x20
mov byte [ebp - 0x105], cl
cmp cl, 0xf0
jae 0x402226
and edx, 3
movzx eax, byte [ebp + edx - 0x118]
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [ebp - 0x114]
add dl, byte [ebp - 0x105]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10c]
inc edi
inc edx
inc ebx
mov dword [ebp - 0x10c], edx
cmp edi, dword [ebp - 0x110]
jne 0x4021e5
mov edi, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
add esi, edi
mov dword [ebp - 0x110], esi
cmp edi, esi
je 0x40229d
mov edx, edi
sub edx, esi
mov dword [ebp - 0x10c], edx
mov cl, byte [edi]
cmp cl, 0x41
jb 0x402262
cmp cl, 0x5a
ja 0x402262
or cl, 0x20
cmp cl, 0xf0
jae 0x402290
and edx, 3
movzx eax, byte [ebp + edx - 0x118]
cdq
mov esi, 0xa
idiv esi
mov eax, dword [ebp - 0x114]
mov esi, dword [ebp - 0x110]
add dl, cl
mov byte [ebx], dl
mov edx, dword [ebp - 0x10c]
inc edi
inc edx
inc ebx
mov dword [ebp - 0x10c], edx
cmp edi, esi
jne 0x402253
mov ecx, dword [ebp - 0x11c]
sub ebx, eax
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00405970
mov esp, ebp
pop ebp
ret 4