Function at 0x45cb80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub esp, 0x9c
push ebp
mov ebp, dword [esp + 0xa8]
lea eax, [esp + 0x3c]
push eax
push ecx
push ebp
push edx
call fcn.00496340
add esp, 0x10
test eax, eax
je 0x45cbb7
mov eax, 1
pop ebp
add esp, 0x9c
ret
mov eax, dword [esp + 0x48]
mov ebp, dword [ebp + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
imul ecx, ebp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x5c]
sub eax, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb0]
push edi
mov edi, dword [esp + 0x4c]
lea ecx, [ecx + edi*4]
add ecx, dword [eax + 8]
mov eax, dword [esp + 0x14]
imul eax, esi
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x5c]
sub ebx, edx
lea eax, [eax + edx*4]
mov edx, dword [esp + 0xbc]
mov esi, dword [edx + 8]
mov dl, byte [esp + 0x48]
add eax, esi
test dl, dl
mov dword [esp + 0x34], ebp
je 0x45d0d3
mov edx, ebx
sar edx, 3
mov dword [esp + 0x18], edx
mov edx, ebx
and edx, 7
mov esi, edx
sub esi, dword [esp + 0xa4]
mov dword [esp + 0x28], edx
add esi, edi
mov edi, dword [esp + 0x14]
lea esi, [ebp + esi*4]
mov dword [esp + 0x24], esi
mov esi, edx
sub esi, ebx
test edx, edx
lea esi, [edi + esi*4]
mov dword [esp + 0x1c], esi
jne 0x45ce6e
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x45d1f7
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
test ebp, ebp
jle 0x45ce46
nop
mov edx, dword [ecx]
mov edi, dword [eax]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov edi, dword [eax + 4]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov edi, dword [eax + 8]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov edi, dword [eax + 0xc]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov edi, dword [eax + 0x10]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x10], edx
mov edi, dword [eax + 0x14]
mov edx, dword [ecx + 0x14]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov edi, dword [eax + 0x18]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov edi, dword [eax + 0x1c]
mov ebx, edx
mov esi, edx
and esi, edi
xor ebx, edi
and ebx, 0xfefefe
lea esi, [ebx + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x1c], edx
add eax, 0x20
add ecx, 0x20
dec ebp
jne 0x45cc90
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add eax, edi
add ecx, esi
dec edx
mov dword [esp + 0x14], edx
jne 0x45cc87
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x9c
ret
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x45d1f7
mov dword [esp + 0x20], esi
mov edi, edi
mov ebx, dword [esp + 0x18]
test ebx, ebx
jle 0x45d04e
lea esp, [esp]
mov edx, dword [ecx]
mov edi, dword [eax]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov edi, dword [eax + 4]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov edi, dword [eax + 8]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov edi, dword [eax + 0xc]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov edi, dword [eax + 0x10]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x10], edx
mov edi, dword [eax + 0x14]
mov edx, dword [ecx + 0x14]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov edi, dword [eax + 0x18]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov edi, dword [eax + 0x1c]
mov ebp, edx
mov esi, edx
and esi, edi
xor ebp, edi
and ebp, 0xfefefe
lea esi, [ebp + esi*2]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, edi
or edx, esi
mov dword [eax + 0x1c], edx
add eax, 0x20
add ecx, 0x20
dec ebx
jne 0x45ce90
mov edx, dword [esp + 0x28]
test edx, edx
jle 0x45d0ab
mov ebx, ecx
mov edi, eax
sub ebx, eax
mov dword [esp + 0x10], edx
lea esp, [esp]
mov edx, dword [ebx + edi]
mov esi, dword [edi]
mov dword [esp + 0x14], esi
mov ebp, edx
and ebp, esi
mov esi, edx
xor esi, dword [esp + 0x14]
add edi, 4
and esi, 0xfefefe
lea esi, [esi + ebp*2]
mov ebp, dword [esp + 0x14]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, ebp
or edx, esi
mov dword [edi - 4], edx
dec dword [esp + 0x10]
jne 0x45d060
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add eax, ebx
add ecx, edi
dec esi
mov dword [esp + 0x20], esi
jne 0x45ce80
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x9c
ret
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x80]
shl edx, 2
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x90]
mov dword [esp + 0x44], edx
mov edx, ebp
imul edx, dword [esp + 0x98]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x10]
test esi, esi
mov dword [esp + 0x30], edx
jle 0x45d1f7
mov dword [esp + 0x1c], esi
jmp 0x45d140
mov edi, dword [esp + 0x20]
add edi, dword [esp + 0x28]
mov dword [esp + 0x20], edi
js 0x45d156
mov esi, dword [esp + 0x18]
add ecx, ebp
sub edi, esi
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x2c]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], esi
jle 0x45d1dc
lea esp, [esp]
mov edx, dword [esp + 0x10]
add edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
js 0x45d18b
mov esi, dword [esp + 0x38]
add ecx, 4
sub edx, esi
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
mov esi, dword [eax + edi*4]
mov dword [esp + 0x24], esi
mov ebp, edx
and ebp, esi
mov esi, edx
xor esi, dword [esp + 0x24]
and esi, 0xfefefe
lea esi, [esi + ebp*2]
mov ebp, dword [esp + 0x24]
shr esi, 8
and esi, 0x10101
add esi, 0x7f7f7f
xor esi, 0x7f7f7f
sub edx, esi
add edx, ebp
mov ebp, dword [esp + 0x44]
or edx, esi
add ecx, ebp
mov dword [eax + edi*4], edx
inc edi
cmp edi, ebx
jl 0x45d170
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
add ecx, edx
add eax, edi
dec esi
mov dword [esp + 0x1c], esi
jne 0x45d13c
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x9c
ret