Function at 0x459120
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x23c
mov eax, dword [0x4b38b4]
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 0x45917b
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 0x45919d
cmp edx, ecx
jbe 0x459393
push ebx
push ebp
push esi
jmp 0x4591ac
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ecx
ja 0x4591c0
jb 0x4591b7
cmp edx, 0x20
jae 0x4591c0
mov eax, dword [esp + 0x14]
lea ebx, [edx + eax]
jmp 0x4591c5
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.0042ba90
add esp, 0xc
mov dword [esp + 0x24], 0
test ebx, ebx
jbe 0x4592c4
jmp 0x459224
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x14]
jb 0x459254
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 0x459257
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 0x459274
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 0x4592a0
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 0x459220
mov ebp, dword [esp + 0x14]
mov edx, edi
mov dword [esp + 0x18], edx
lea eax, [esp + 0x240]
cmp ebp, ebx
jae 0x459307
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 0x4592e0
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.0042bcb0
mov edi, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x240]
cmp ebp, ebx
jae 0x45935a
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 0x459333
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 0x4591a2
jb 0x45938e
cmp dword [esp + 0x1c], ecx
ja 0x4591a2
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 0x4593a0
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 0x4593b6
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00469f7b
add esp, 0x23c
ret