Function at 0x4affd0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, 0xffffffd0
sub ecx, esi
push edi
mov edi, 0x57083c
mov dword [ebp - 4], ecx
mov dword [esi + 0x1e0], 0xe
lea eax, [esi + 0x30]
mov dword [esi], 0x786bcdb8
mov dword [esi + 4], 0x88627aee
mov dword [esi + 8], 0x5bdc45dd
mov dword [esi + 0xc], 0x95b8dbcc
mov dword [esi + 0x10], 0xed21335a
mov dword [esi + 0x14], 0xf1952ef0
mov dword [esi + 0x18], 0x5a6eebc8
mov dword [esi + 0x1c], 0x82c98b7a
mov dword [esi + 0x20], 0xa45617ab
mov dword [esi + 0x24], 0x2c346d45
mov dword [esi + 0x28], 0x77e82898
mov dword [esi + 0x2c], 0xe250f354
nop dword [eax]
mov ebx, dword [eax - 4]
ror ebx, 8
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x56f438]
xor edx, dword [ecx*4 + 0x571c60]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + str.cwko0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x572060]
xor edx, dword [eax - 0x20]
mov ecx, dword [eax - 0x1c]
xor ecx, edx
mov dword [eax], edx
mov edx, dword [eax - 0x18]
xor edx, ecx
mov dword [eax + 4], ecx
mov ecx, dword [eax - 0x14]
xor ecx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
add eax, 0x20
mov ecx, dword [ebp - 4]
add ecx, eax
sar ecx, 2
mov ebx, dword [esi + ecx*4 + 0x1c]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x56f438]
xor edx, dword [ecx*4 + 0x571c60]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + str.cwko0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x572060]
xor edx, dword [eax - 0x30]
xor edx, dword [edi]
add edi, 4
mov dword [eax - 0x10], edx
mov ecx, dword [eax - 0x2c]
xor ecx, edx
mov dword [eax - 0xc], ecx
mov edx, dword [eax - 0x28]
xor edx, ecx
mov dword [eax - 8], edx
mov ecx, dword [eax - 0x24]
xor ecx, edx
mov dword [eax - 4], ecx
cmp edi, 0x570854
jne 0x4b0050
lea edi, [esi + 0xf0]
mov dword [ebp - 4], 1
mov edx, edi
lea ebx, [edi - 0x10]
mov ecx, ebx
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
cmp dword [esi + 0x1e0], 1
jle 0x4b0250
mov edx, dword [ebx - 0x10]
sub ebx, 0x10
mov eax, edx
add edi, 0x10
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x570038]
xor ecx, dword [eax*4 + 0x56fc38]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x570438]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56f838]
mov dword [edi], ecx
mov edx, dword [ebx + 4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x570038]
xor ecx, dword [eax*4 + 0x56fc38]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x570438]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56f838]
mov dword [edi + 4], ecx
mov edx, dword [ebx + 8]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x570038]
xor ecx, dword [eax*4 + 0x56fc38]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x570438]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56f838]
mov dword [edi + 8], ecx
mov edx, dword [ebx + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x570038]
xor ecx, dword [eax*4 + 0x56fc38]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x570438]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56f838]
mov eax, dword [ebp - 4]
inc eax
mov dword [edi + 0xc], ecx
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x1e0]
jl 0x4b0150
mov eax, dword [ebx - 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx - 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebx - 8]
mov dword [edi + 0x18], eax
mov eax, dword [ebx - 4]
mov dword [edi + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret