Function at 0x45fa40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xfc]
push edi
cmp dword [esi + 0x14], 0x20
mov dword [ebp - 0x28], eax
jne 0x45ff8c
push 0x20
push dword [esi + 4]
lea eax, [ebp - 0x5c]
push eax
call fcn.004d0d60
push 0x20
push dword [esi + 8]
lea eax, [ebp - 0x7c]
push eax
call fcn.004d0d60
push 8
push dword [ebp + 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.004d0d60
xorps xmm0, xmm0
add esp, 0x24
movq qword [ebp - 0x1c], xmm0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 4]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x28]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov eax, dword [ebp + 0x20]
dec eax
cmp eax, 0x3f
ja 0x45ff8c
pushal
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x45fb76
pop ebp
mov esi, dword [ebp - 0x20]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp + 0x24], eax
test ebx, ebx
jle 0x45fd8e
nop dword [eax + eax]
test esi, esi
jle 0x45fcfe
mov edx, dword [ebp + 0x14]
xor ecx, ecx
nop dword [eax]
cmp ecx, ebx
jge 0x45fbf1
mov al, byte [edx]
inc edx
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 8
jl 0x45fbe0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x1010101
add eax, 0x1010104
mov dword [ebp + 0x14], edx
mov dword [ebp - 0x10], eax
cmp eax, 0x1010104
jae 0x45fc11
inc eax
mov dword [ebp - 0x10], eax
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x10
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x45fc26
pop ebp
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
pushal
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x45fc7c
pop ebp
mov esi, dword [ebp - 0x2c]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov edx, dword [ebp + 0x24]
xor ecx, ecx
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
cmp ecx, esi
jge 0x45fcdc
mov al, byte [ebp + ecx - 0x3c]
inc ecx
xor al, byte [ebx]
inc ebx
mov byte [edx], al
inc edx
cmp ecx, 8
jl 0x45fcc8
mov dword [ebp - 0x24], ebx
sub esi, 8
mov ebx, dword [ebp + 0x18]
sub ebx, 8
mov dword [ebp + 0x24], edx
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x18], ebx
test ebx, ebx
jg 0x45fbd0
jmp 0x45fd8e
test ebx, ebx
jle 0x45fd8e
mov edx, dword [ebp + 0x14]
xor ecx, ecx
nop dword [eax + eax]
cmp ecx, ebx
jge 0x45fd21
mov al, byte [edx]
inc edx
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 8
jl 0x45fd10
mov dword [ebp + 0x14], edx
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x10
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x45fd39
pop ebp
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
mov ebx, dword [ebp + 0x18]
sub ebx, 8
mov dword [ebp + 0x18], ebx
test ebx, ebx
jg 0x45fd06
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
test esi, esi
jle 0x45fec9
nop dword [eax]
test ebx, ebx
jle 0x45ff4c
mov edx, dword [ebp + 8]
xor ecx, ecx
nop dword [eax]
cmp ecx, ebx
jge 0x45fdc1
mov al, byte [edx]
inc edx
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 8
jl 0x45fdb0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x1010101
add eax, 0x1010104
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], eax
cmp eax, 0x1010104
jae 0x45fde1
inc eax
mov dword [ebp - 0x10], eax
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x10
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x45fdf6
pop ebp
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
pushal
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x45fe4c
pop ebp
mov esi, dword [ebp - 0x2c]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov edx, dword [ebp + 0x24]
xor ecx, ecx
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
cmp ecx, esi
jge 0x45feac
mov al, byte [ebp + ecx - 0x3c]
inc ecx
xor al, byte [ebx]
inc ebx
mov byte [edx], al
inc edx
cmp ecx, 8
jl 0x45fe98
mov dword [ebp - 0x24], ebx
sub esi, 8
mov ebx, dword [ebp + 0xc]
sub ebx, 8
mov dword [ebp + 0x24], edx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], esi
test esi, esi
jg 0x45fda0
test ebx, ebx
jle 0x45ff4c
nop dword [eax]
mov edx, dword [ebp + 8]
xor eax, eax
cmp eax, ebx
jge 0x45fee6
mov cl, byte [edx]
inc edx
xor byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, 8
jl 0x45fed5
mov dword [ebp + 8], edx
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x10
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x45fefe
pop ebp
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
mov ebx, dword [ebp + 0xc]
sub ebx, 8
mov dword [ebp + 0xc], ebx
test ebx, ebx
jg 0x45fed0
mov ebx, dword [ebp + 0x20]
mov esi, ebx
mov edi, dword [ebp + 0x1c]
and ebx, 7
sar esi, 3
test esi, esi
jle 0x45ff6e
push esi
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.004d1780
add esp, 0xc
add edi, esi
test ebx, ebx
je 0x45ff80
mov al, 1
mov ecx, ebx
shl al, cl
dec al
and al, byte [ebp + esi - 0x1c]
mov byte [edi], al
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret