Function at 0x45ae80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x23c
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x24c]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x250]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x244]
mov dword [esp + 0x1c], eax
mov eax, edx
mov dword [esp + 4], ecx
and eax, 0xf
xor ecx, ecx
or eax, ecx
push edi
mov edi, dword [esp + 0x244]
je 0x45aedb
mov byte [0], cl
mov eax, dword [esp + 0x24c]
shrd edx, eax, 4
shr eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
cmp eax, ecx
ja 0x45aefd
cmp edx, ecx
jbe 0x45b0f3
push ebx
push ebp
push esi
jmp 0x45af0c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ecx
ja 0x45af20
jb 0x45af17
cmp edx, 0x20
jae 0x45af20
mov eax, dword [esp + 0x14]
lea ebx, [edx + eax]
jmp 0x45af25
mov ebx, 0x20
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
lea esi, [esp + 0x38]
mov dword [esp + 0x38], edx
push ecx
mov edx, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x268]
push edx
lea ebp, [esp + 0x248]
push eax
mov dword [esp + 0x24], ebp
call fcn.0042c3e0
add esp, 0xc
mov dword [esp + 0x24], 0
test ebx, ebx
jbe 0x45b024
jmp 0x45af84
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x14]
jb 0x45afb4
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp], edx
mov edx, dword [esi + 0xc]
mov dword [ebp + 4], eax
add esi, 8
sub ebp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
sub ebp, 8
mov dword [esp + 0x18], ebp
jmp 0x45afb7
add esi, 8
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov ebp, ecx
and ebp, 0x80000000
xor edx, edx
or edx, ebp
mov byte [esp + 0x13], 0x87
jne 0x45afd4
mov byte [esp + 0x13], 0
shld ecx, eax, 1
add eax, eax
mov dword [esi + 4], ecx
mov dword [esi], eax
mov ebp, dword [esi - 4]
mov eax, dword [esi - 8]
sub esi, 8
mov edx, ebp
and edx, 0x80000000
xor ecx, ecx
or ecx, edx
je 0x45b000
mov ecx, dword [esi + 0xc]
or dword [esi + 8], 1
mov dword [esi + 0xc], ecx
mov dl, byte [esp + 0x13]
shld ebp, eax, 1
add eax, eax
mov dword [esi], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esi + 4], ebp
xor byte [esp + 0x38], dl
mov dword [esp + 0x24], eax
cmp eax, ebx
jb 0x45af80
mov ebp, dword [esp + 0x14]
mov edx, edi
mov dword [esp + 0x18], edx
lea eax, [esp + 0x240]
cmp ebp, ebx
jae 0x45b067
mov ecx, ebx
sub ecx, ebp
lea ecx, [ecx]
mov esi, dword [eax]
xor dword [edi], esi
mov esi, dword [eax + 4]
xor dword [edi + 4], esi
mov esi, dword [eax - 8]
xor dword [edi + 8], esi
mov esi, dword [eax - 4]
xor dword [edi + 0xc], esi
sub eax, 8
add edi, 8
sub eax, 8
add edi, 8
sub ecx, 1
jne 0x45b040
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x264]
mov esi, ebx
sub esi, ebp
push esi
push eax
push edx
push ecx
call fcn.0042c600
mov edi, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x240]
cmp ebp, ebx
jae 0x45b0ba
mov ecx, esi
mov edx, dword [eax]
xor dword [edi], edx
mov edx, dword [eax + 4]
xor dword [edi + 4], edx
mov edx, dword [eax - 8]
xor dword [edi + 8], edx
mov edx, dword [eax - 4]
xor dword [edi + 0xc], edx
sub eax, 8
add edi, 8
sub eax, 8
add edi, 8
sub ecx, 1
jne 0x45b093
sub dword [esp + 0x1c], esi
mov eax, dword [esp + 0x20]
mov ecx, 0
sbb eax, ecx
add dword [esp + 0x28], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
adc dword [esp + 0x2c], ecx
cmp eax, ecx
ja 0x45af02
jb 0x45b0ee
cmp dword [esp + 0x1c], ecx
ja 0x45af02
pop esi
pop ebp
xor ecx, ecx
pop ebx
lea eax, [esp + 0x2c]
mov edx, 2
pop edi
lea ecx, [ecx]
mov dword [eax], ecx
dec edx
mov dword [eax + 4], ecx
add eax, 8
cmp edx, ecx
jne 0x45b100
lea eax, [esp + 0x38]
mov edx, 0x40
mov dword [eax], ecx
dec edx
mov dword [eax + 4], ecx
add eax, 8
cmp edx, ecx
jne 0x45b116
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0046be7b
add esp, 0x23c
ret