Function at 0x4bd600
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [esp + 4]
sub esp, 8
test dl, 7
jne 0x4bda3e
cmp edx, 0x10
jb 0x4bda3e
cmp edx, 0x20
ja 0x4bda3e
test al, 3
je 0x4bda3e
push ebx
mov bl, byte [edi + 0x208]
xor bl, al
mov al, byte [edi + 0x208]
and bl, 3
shr edx, 2
push ebp
xor al, bl
cmp edx, 4
push esi
mov byte [edi + 0x208], al
mov dword [edi], edx
mov esi, edx
ja 0x4bd657
mov esi, 4
add esi, 6
mov dword [edi + 4], esi
mov ebx, dword [ecx]
lea eax, [edi + 8]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [edi + 0xc], ebx
mov ebx, dword [ecx + 8]
mov dword [edi + 0x10], ebx
mov ebx, dword [ecx + 0xc]
lea esi, [esi*4 + 4]
sub esi, edx
sub edx, 4
mov dword [edi + 0x14], ebx
lea ebx, [eax + esi*4]
je 0x4bd829
sub edx, 2
je 0x4bd78c
sub edx, 2
jne 0x4bd89e
mov edx, dword [ecx + 0x10]
mov dword [edi + 0x18], edx
mov edx, dword [ecx + 0x14]
mov dword [edi + 0x1c], edx
mov edx, dword [ecx + 0x18]
mov dword [edi + 0x20], edx
mov ecx, dword [ecx + 0x1c]
mov dword [edi + 0x24], ecx
mov esi, 0x57aeb8
jmp 0x4bd6c0
mov esi, dword [esp + 0xc]
mov ebp, dword [eax + 0x1c]
mov ecx, ebp
shr ecx, 0x10
movzx ecx, cl
mov edx, ebp
shr edx, 0x18
mov edx, dword [edx*4 + 0x57d730]
xor edx, dword [ecx*4 + 0x57d330]
mov ecx, ebp
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + str.cwko0]
movzx ecx, byte [eax + 0x1c]
xor edx, dword [ecx*4 + 0x57db30]
xor edx, dword [eax]
xor edx, dword [esi]
mov ecx, dword [eax + 4]
xor ecx, edx
mov dword [eax + 0x20], edx
mov edx, dword [eax + 8]
xor edx, ecx
mov dword [eax + 0x24], ecx
add esi, 4
mov dword [eax + 0x28], edx
mov dword [esp + 0xc], esi
mov esi, dword [eax + 0xc]
xor esi, edx
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x10], ecx
mov dword [eax + 0x2c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edx*4 + 0x57db30]
mov edx, dword [esp + 0x10]
xor ecx, dword [edx*4 + 0x57d730]
mov edx, esi
shr edx, 8
movzx edx, dl
mov esi, dword [edx*4 + 0x57d330]
movzx edx, byte [eax + 0x2c]
xor ecx, esi
mov esi, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x10]
xor ecx, esi
xor ecx, edx
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, ebp
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
add eax, 0x20
cmp eax, ebx
jb 0x4bd6bc
jmp 0x4bd89e
mov edx, dword [ecx + 0x10]
mov dword [edi + 0x18], edx
mov ecx, dword [ecx + 0x14]
mov dword [edi + 0x1c], ecx
mov dword [esp + 0xc], 0x57aeb8
mov edx, dword [eax + 0x14]
mov dword [esp + 0x10], ebx
mov ecx, edx
shr ecx, 0x18
mov ebp, dword [ecx*4 + 0x57d730]
mov ebx, edx
shr ebx, 0x10
movzx esi, bl
xor ebp, dword [esi*4 + 0x57d330]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [ecx*4 + str.cwko0]
movzx ecx, dl
mov esi, dword [ecx*4 + 0x57db30]
mov ecx, dword [eax]
xor ebp, esi
mov esi, dword [eax + 8]
xor ebp, ecx
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx]
add ecx, 4
xor ebp, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 4]
xor ecx, ebp
xor esi, ecx
mov dword [eax + 0x18], ebp
mov ebp, dword [eax + 0xc]
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x10]
xor ebp, esi
xor ecx, ebp
mov dword [eax + 0x28], ecx
xor ecx, edx
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], ecx
add eax, 0x18
cmp eax, ebx
jb 0x4bd7a0
jmp 0x4bd89e
mov ebp, 0x57aeb8
mov edi, edi
mov edx, dword [eax + 0xc]
mov dword [esp + 0x10], ebx
mov ebx, edx
shr ebx, 0x10
movzx esi, bl
mov ebx, dword [esi*4 + 0x57d330]
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x57d730]
xor ecx, ebx
mov ebx, edx
shr ebx, 8
movzx esi, bl
xor ecx, dword [esi*4 + str.cwko0]
movzx esi, dl
mov ebx, dword [esi*4 + 0x57db30]
mov esi, dword [eax]
xor ecx, ebx
mov ebx, dword [ebp]
xor ecx, esi
mov esi, dword [eax + 4]
xor ecx, ebx
mov ebx, dword [esp + 0x10]
xor esi, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, esi
mov dword [eax + 0x18], ecx
xor ecx, edx
mov dword [eax + 0x14], esi
mov dword [eax + 0x1c], ecx
add eax, 0x10
add ebp, 4
cmp eax, ebx
jb 0x4bd830
mov dl, byte [edi + 0x208]
and dl, 3
cmp dl, 1
je 0x4bda33
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
shl eax, 4
lea ecx, [eax + edi + 0x108]
mov dword [ecx], edx
lea eax, [edi + 8]
mov edx, dword [eax + 4]
add eax, 4
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
add ecx, 4
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [edi + 4]
mov ebp, 1
add eax, 4
sub ecx, 0x1c
cmp edx, ebp
jbe 0x4bda13
lea ecx, [ecx]
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x57fb30]
xor edx, dword [ebx*4 + 0x57f730]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x57f330]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x57ef30]
mov dword [ecx], edx
mov esi, dword [eax + 4]
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x57fb30]
xor edx, dword [ebx*4 + 0x57f730]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x57f330]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x57ef30]
mov dword [ecx + 4], edx
mov esi, dword [eax + 4]
add ecx, 4
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x57fb30]
xor edx, dword [ebx*4 + 0x57f730]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x57f330]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x57ef30]
mov dword [ecx + 4], edx
mov esi, dword [eax + 4]
add ecx, 4
add eax, 4
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x57fb30]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x57f730]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x57f330]
movzx esi, byte [eax]
xor edx, ebx
mov ebx, dword [esi*4 + 0x57ef30]
add ecx, 4
xor edx, ebx
mov dword [ecx], edx
mov edx, dword [edi + 4]
add eax, 4
sub ecx, 0x1c
inc ebp
cmp ebp, edx
jb 0x4bd900
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add ecx, 4
add eax, 4
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 8
ret
test edx, edx
je 0x4bda4f
and byte [edi + 0x208], 0xfc
xor eax, eax
add esp, 8
ret
mov cx, word [edi]
shl cx, 2
movsx eax, cx
add esp, 8
ret