Function at 0x459bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
add dword [ecx + 0x38], 8
mov edx, dword [ecx + 0x3c]
test edx, edx
je 0x459c86
mov ecx, 8
mov edi, 8
mov dword [ebp - 0x24], edx
sub ecx, edx
cmovae edi, ecx
xor esi, esi
xor edx, edx
mov dword [ebp - 0x14], ecx
cmp edi, 4
setae dl
cmovb eax, esi
lea ecx, [edx*4 + 1]
shl edx, 2
cmp ecx, edi
jae 0x459c29
movzx ebx, word [ebp + edx - 0x30]
lea ecx, [edx*8]
xor esi, esi
shld esi, ebx, cl
shl ebx, cl
test cl, 0x20
mov ecx, 0
cmovne esi, ebx
cmovne ebx, ecx
or edx, 2
or eax, ebx
cmp edx, edi
jae 0x459c50
movzx edi, byte [ebp + edx - 0x30]
shl edx, 3
xor ebx, ebx
mov ecx, edx
shld ebx, edi, cl
shl edi, cl
test dl, 0x20
mov ecx, 0
cmovne ebx, edi
cmovne edi, ecx
or esi, ebx
or eax, edi
mov edi, dword [ebp - 0x24]
xor edx, edx
lea ecx, [edi*8]
shld esi, eax, cl
shl eax, cl
test cl, 0x20
cmovne esi, eax
cmove edx, eax
mov eax, dword [ebp + 8]
or esi, dword [eax + 0x34]
or edx, dword [eax + 0x30]
cmp edi, 8
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], esi
jbe 0x459c8d
add edi, 8
jmp 0x459f00
xor edx, edx
jmp 0x459d52
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x28], edx
xor eax, esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
xor ecx, edx
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, dword [edx + 0x10]
mov edi, eax
add edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x24]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x14]
adc edx, ebx
shld edi, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [ebp + 8]
xor ebx, edx
xor edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
add eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
adc eax, edx
mov dword [ebp - 0x18], eax
mov eax, ecx
shrd ecx, edx, 0x10
shld eax, edx, 0x10
xor ecx, dword [ebp - 0x18]
xor eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
mov edx, eax
adc dword [ebp - 0x10], ecx
shld edx, ecx, 0x15
shrd eax, ecx, 0xb
mov ecx, dword [ebp + 8]
xor edx, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x10]
mov dword [ecx + 0x28], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x2c], eax
mov eax, edi
add edx, edi
adc dword [ebp - 0x18], ebx
shld eax, ebx, 0x11
shrd edi, ebx, 0xf
xor eax, edx
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x18]
xor edi, eax
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x10]
xor edx, dword [ebp - 0x28]
xor eax, esi
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x14]
mov eax, 8
sub eax, edx
mov edi, eax
and eax, 0xfffffff8
and edi, 7
cmp edx, eax
mov dword [ebp - 0x24], edi
jae 0x459e79
mov esi, dword [ecx + 0x2c]
mov edi, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], edx
mov ebx, dword [ecx + 0x28]
mov edx, dword [ecx + 0x10]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [edi + 0x20]
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
mov edi, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp + edi - 0x2c]
mov dword [ebp - 0x34], edi
xor dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x14]
mov edi, dword [ebp + edi - 0x30]
xor ebx, edi
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x10]
add edx, esi
adc edi, ecx
shld eax, ecx, 0xd
shld ecx, esi, 0xd
mov esi, dword [ebp - 0x1c]
xor eax, edx
xor ecx, edi
mov dword [ebp - 0x10], edi
add dword [ebp - 0x20], ebx
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov eax, ebx
adc edi, esi
shrd ebx, esi, 0x10
shld eax, esi, 0x10
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edi
xor ebx, edi
mov edi, dword [ebp - 0x10]
xor eax, esi
add edi, eax
mov dword [ebp - 0x28], edi
mov edi, eax
adc edx, ebx
shrd eax, ebx, 0xb
shld edi, ebx, 0x15
xor eax, edx
mov ebx, edi
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
xor ebx, dword [ebp - 0x28]
add esi, edi
adc eax, ecx
xor edx, dword [ebp - 0x34]
mov dword [ebp - 0x18], esi
mov esi, edi
add dword [ebp - 0x14], 8
shld esi, ecx, 0x11
shld ecx, edi, 0x11
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
xor ecx, eax
xor esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x28]
xor edx, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x38]
jb 0x459da0
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], ebx
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], ecx
mov esi, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x18], esi
xor ebx, ebx
cmp edi, 3
jbe 0x459e8b
mov esi, dword [ebp + edx - 0x30]
mov eax, 4
jmp 0x459e8f
xor eax, eax
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x14], edx
or ecx, 1
cmp ecx, edi
jae 0x459ec9
lea ecx, [eax + edx]
xor edx, edx
movzx edi, word [ebp + ecx - 0x30]
lea ecx, [eax*8]
shld edx, edi, cl
shl edi, cl
test cl, 0x20
mov ecx, 0
cmovne edx, edi
cmovne edi, ecx
or eax, 2
or esi, edi
mov edi, dword [ebp - 0x24]
or ebx, edx
cmp eax, edi
jae 0x459ef7
mov ecx, dword [ebp - 0x14]
xor edi, edi
add ecx, eax
shl eax, 3
movzx edx, byte [ebp + ecx - 0x30]
mov ecx, eax
shld edi, edx, cl
shl edx, cl
test al, 0x20
mov eax, 0
cmovne edi, edx
cmovne edx, eax
or ebx, edi
mov edi, dword [ebp - 0x24]
or esi, edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], ebx
mov dword [eax + 0x3c], edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret