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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test ebx, ebx
jne 0x55d806
xor eax, eax
jmp 0x55dcc6
xor ecx, 0xffffffff
cmp dword [ebp + 0x10], 0x17
jb 0x55dba7
jmp 0x55d833
dec dword [ebp + 0x10]
xor eax, eax
mov al, byte [ebx]
mov edx, ecx
xor ecx, eax
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x585f3c]
inc ebx
mov ecx, edx
cmp dword [ebp + 0x10], 0
je 0x55d83e
test bl, 3
jne 0x55d815
mov eax, dword [ebp + 0x10]
mov esi, 0x14
xor edx, edx
div esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 2
lea eax, [eax + eax*4]
sub dword [ebp + 0x10], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 1
cmp byte [ebp - 0xc], 0
je 0x55da08
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x55d998
mov edx, dword [ebp - 8]
xor esi, dword [edx]
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 4]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 8]
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov ecx, 0x58673c
xor eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
add dword [ebp - 8], 0x14
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
and edx, 0xff
and eax, 0xff
mov esi, dword [ecx + edx*4]
mov edx, 0x58673c
mov ecx, dword [edx + eax*4]
mov edx, 0x58673c
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov ecx, dword [edx + eax*4]
mov edx, 0x58673c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x28]
and eax, 0xff
mov ecx, dword [edx + eax*4]
mov edx, 0x58673c
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x30]
and eax, 0xff
mov ecx, dword [edx + eax*4]
mov eax, 1
mov dword [ebp - 0x2c], ecx
mov edx, 0x586b3c
mov ebx, eax
mov edi, dword [ebp - 0x10]
shl ebx, 3
inc eax
mov ecx, ebx
shr edi, cl
and edi, 0xff
mov ecx, ebx
xor esi, dword [edx + edi*4]
mov edi, dword [ebp - 0x18]
shr edi, cl
and edi, 0xff
mov ecx, dword [edx + edi*4]
xor dword [ebp - 0x14], ecx
mov ecx, ebx
mov edi, dword [ebp - 0x20]
shr edi, cl
and edi, 0xff
mov ecx, dword [edx + edi*4]
xor dword [ebp - 0x1c], ecx
mov ecx, ebx
mov edi, dword [ebp - 0x28]
shr edi, cl
and edi, 0xff
mov ecx, dword [edx + edi*4]
xor dword [ebp - 0x24], ecx
mov ecx, ebx
mov ebx, dword [ebp - 0x30]
shr ebx, cl
and ebx, 0xff
mov ecx, dword [edx + ebx*4]
add edx, 0x400
xor dword [ebp - 0x2c], ecx
cmp eax, 4
jl 0x55d92b
dec dword [ebp - 4]
jne 0x55d888
mov eax, dword [ebp - 8]
xor esi, dword [eax]
push esi
call fcn.0055d7a0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
xor edx, dword [ebp - 0x14]
xor ecx, edx
push ecx
call fcn.0055d7a0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
xor edx, dword [ebp - 0x1c]
xor ecx, edx
push ecx
call fcn.0055d7a0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor edx, dword [ebp - 0x24]
xor ecx, edx
push ecx
call fcn.0055d7a0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x10]
xor edx, dword [ebp - 0x2c]
xor ecx, edx
push ecx
call fcn.0055d7a0
pop ecx
add dword [ebp - 8], 0x14
mov ecx, eax
jmp 0x55dba4
push ecx
call fcn.0055d6b8
pop ecx
mov esi, eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x40], edx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
xor eax, eax
mov dword [ebp - 0x50], eax
jmp 0x55db3a
mov edx, dword [ebp - 8]
xor esi, dword [edx]
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 4]
xor eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 8]
xor ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
xor edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov ecx, 0x58773c
xor eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
add dword [ebp - 8], 0x14
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
and edx, 0xff
and eax, 0xff
mov esi, dword [ecx + edx*4]
mov edx, 0x58773c
mov ecx, dword [edx + eax*4]
mov edx, 0x58773c
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x44]
and eax, 0xff
mov ecx, dword [edx + eax*4]
mov edx, 0x58773c
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x4c]
and eax, 0xff
mov ecx, dword [edx + eax*4]
mov edx, 0x58773c
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x54]
and eax, 0xff
mov ecx, dword [edx + eax*4]
mov eax, 1
mov dword [ebp - 0x50], ecx
mov edx, 0x587b3c
mov ebx, eax
mov edi, dword [ebp - 0x34]
shl ebx, 3
inc eax
mov ecx, ebx
shr edi, cl
and edi, 0xff
mov ecx, ebx
xor esi, dword [edx + edi*4]
mov edi, dword [ebp - 0x3c]
shr edi, cl
and edi, 0xff
mov ecx, dword [edx + edi*4]
xor dword [ebp - 0x38], ecx
mov ecx, ebx
mov edi, dword [ebp - 0x44]
shr edi, cl
and edi, 0xff
mov ecx, dword [edx + edi*4]
xor dword [ebp - 0x40], ecx
mov ecx, ebx
mov edi, dword [ebp - 0x4c]
shr edi, cl
and edi, 0xff
mov ecx, dword [edx + edi*4]
xor dword [ebp - 0x48], ecx
mov ecx, ebx
mov ebx, dword [ebp - 0x54]
shr ebx, cl
and ebx, 0xff
mov ecx, dword [edx + ebx*4]
add edx, 0x400
xor dword [ebp - 0x50], ecx
cmp eax, 4
jl 0x55dacd
dec dword [ebp - 4]
jne 0x55da2a
mov eax, dword [ebp - 8]
xor esi, dword [eax]
push esi
call fcn.0055d7c4
pop ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
xor edx, dword [ebp - 0x38]
xor eax, edx
push eax
call fcn.0055d7c4
pop ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
xor edx, dword [ebp - 0x40]
xor eax, edx
push eax
call fcn.0055d7c4
pop ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
xor edx, dword [ebp - 0x48]
xor eax, edx
push eax
call fcn.0055d7c4
pop ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor edx, dword [ebp - 0x50]
xor eax, edx
push eax
call fcn.0055d7c4
pop ecx
add dword [ebp - 8], 0x14
push eax
call fcn.0055d6b8
pop ecx
mov ecx, eax
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x10], 8
jb 0x55dc97
sub dword [ebp + 0x10], 8
xor edx, edx
mov eax, ecx
mov dl, byte [ebx]
inc ebx
xor ecx, edx
xor edx, edx
and ecx, 0xff
mov dl, byte [ebx]
shr eax, 8
inc ebx
xor eax, dword [ecx*4 + 0x585f3c]
mov ecx, eax
mov eax, ecx
xor ecx, edx
and ecx, 0xff
xor edx, edx
shr eax, 8
mov dl, byte [ebx]
xor eax, dword [ecx*4 + 0x585f3c]
inc ebx
mov ecx, eax
mov eax, ecx
xor ecx, edx
and ecx, 0xff
xor edx, edx
shr eax, 8
mov dl, byte [ebx]
xor eax, dword [ecx*4 + 0x585f3c]
inc ebx
mov ecx, eax
mov eax, ecx
xor ecx, edx
and ecx, 0xff
xor edx, edx
shr eax, 8
mov dl, byte [ebx]
xor eax, dword [ecx*4 + 0x585f3c]
inc ebx
mov ecx, eax
mov eax, ecx
xor ecx, edx
and ecx, 0xff
xor edx, edx
shr eax, 8
mov dl, byte [ebx]
xor eax, dword [ecx*4 + 0x585f3c]
inc ebx
mov ecx, eax
mov eax, ecx
xor ecx, edx
and ecx, 0xff
xor edx, edx
shr eax, 8
mov dl, byte [ebx]
xor eax, dword [ecx*4 + 0x585f3c]
inc ebx
mov ecx, eax
mov eax, ecx
xor ecx, edx
and ecx, 0xff
xor edx, edx
shr eax, 8
mov dl, byte [ebx]
xor eax, dword [ecx*4 + 0x585f3c]
inc ebx
mov ecx, eax
mov eax, ecx
xor ecx, edx
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x585f3c]
cmp dword [ebp + 0x10], 8
mov ecx, eax
jae 0x55dbb1
cmp dword [ebp + 0x10], 0
je 0x55dcc1
dec dword [ebp + 0x10]
xor edx, edx
mov dl, byte [ebx]
mov eax, ecx
xor ecx, edx
inc ebx
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x585f3c]
cmp dword [ebp + 0x10], 0
mov ecx, eax
jne 0x55dc9d
mov eax, ecx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret