Function at 0x4b5f40
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [esp + 4]
sub esp, 8
test dl, 7
jne 0x4b637e
cmp edx, 0x10
jb 0x4b637e
cmp edx, 0x20
ja 0x4b637e
test al, 3
je 0x4b637e
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 0x4b5f97
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 0x4b6169
sub edx, 2
je 0x4b60cc
sub edx, 2
jne 0x4b61de
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, 0x570218
jmp 0x4b6000
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 + 0x572a90]
xor edx, dword [ecx*4 + 0x572690]
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 + 0x572e90]
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 + 0x572e90]
mov edx, dword [esp + 0x10]
xor ecx, dword [edx*4 + 0x572a90]
mov edx, esi
shr edx, 8
movzx edx, dl
mov esi, dword [edx*4 + 0x572690]
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 0x4b5ffc
jmp 0x4b61de
mov edx, dword [ecx + 0x10]
mov dword [edi + 0x18], edx
mov ecx, dword [ecx + 0x14]
mov dword [edi + 0x1c], ecx
mov dword [esp + 0xc], 0x570218
mov edx, dword [eax + 0x14]
mov dword [esp + 0x10], ebx
mov ecx, edx
shr ecx, 0x18
mov ebp, dword [ecx*4 + 0x572a90]
mov ebx, edx
shr ebx, 0x10
movzx esi, bl
xor ebp, dword [esi*4 + 0x572690]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor ebp, dword [ecx*4 + str.cwko0]
movzx ecx, dl
mov esi, dword [ecx*4 + 0x572e90]
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 0x4b60e0
jmp 0x4b61de
mov ebp, 0x570218
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 + 0x572690]
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x572a90]
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 + 0x572e90]
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 0x4b6170
mov dl, byte [edi + 0x208]
and dl, 3
cmp dl, 1
je 0x4b6373
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 0x4b6353
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 + 0x574e90]
xor edx, dword [ebx*4 + 0x574a90]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x574690]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x574290]
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 + 0x574e90]
xor edx, dword [ebx*4 + 0x574a90]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x574690]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x574290]
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 + 0x574e90]
xor edx, dword [ebx*4 + 0x574a90]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x574690]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x574290]
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 + 0x574e90]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x574a90]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x574690]
movzx esi, byte [eax]
xor edx, ebx
mov ebx, dword [esi*4 + 0x574290]
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 0x4b6240
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 0x4b638f
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