Function at 0x4985f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5428f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x58], ebx
test eax, eax
jne 0x498636
cmp dword [ebp + 0x20], eax
jbe 0x498636
mov eax, 0xffffff7c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bafa
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp + 0x14]
call fcn.00468c20
mov edi, eax
add esp, 4
test edi, edi
js 0x49886d
lea eax, [edi*2 + 2]
cmp ebx, eax
jb 0x49886d
push esi
push ebx
call fcn.00462980
mov esi, eax
add esp, 4
test esi, esi
jne 0x49867f
lea eax, [esi - 0x7d]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bafa
mov esp, ebp
pop ebp
ret
push ebx
push 0
push esi
call fcn.004bd260
push dword [ebp + 0x24]
mov eax, dword [ebp - 0x50]
mov ecx, ebx
push edi
sub ecx, edi
inc eax
dec ecx
add eax, edi
push esi
push ecx
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], eax
call fcn.00497c90
add esp, 0x24
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x49876f
xor ecx, ecx
test edi, edi
je 0x498751
mov edx, dword [ebp - 0x50]
cmp edi, 0x40
jb 0x498741
lea eax, [edx + 1]
mov dword [ebp - 0x48], eax
lea eax, [edi + edx]
cmp esi, eax
ja 0x4986df
lea eax, [esi - 1]
add eax, edi
cmp eax, dword [ebp - 0x48]
jae 0x498741
mov eax, edi
mov dword [ebp - 0x48], edi
and eax, 0x3f
sub dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
nop dword [eax]
movups xmm0, xmmword [esi + ecx]
movups xmm1, xmmword [edx + ecx + 1]
pxor xmm1, xmm0
movups xmmword [esi + ecx], xmm1
movups xmm0, xmmword [esi + ecx + 0x10]
movups xmm1, xmmword [edx + ecx + 0x11]
pxor xmm1, xmm0
movups xmmword [esi + ecx + 0x10], xmm1
movups xmm0, xmmword [esi + ecx + 0x20]
movups xmm1, xmmword [edx + ecx + 0x21]
pxor xmm1, xmm0
movups xmmword [esi + ecx + 0x20], xmm1
movups xmm0, xmmword [esi + ecx + 0x30]
movups xmm1, xmmword [edx + ecx + 0x31]
pxor xmm1, xmm0
movups xmmword [esi + ecx + 0x30], xmm1
add ecx, 0x40
cmp ecx, eax
jb 0x4986f0
cmp ecx, edi
jae 0x498751
mov al, byte [edx + ecx + 1]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jb 0x498745
push dword [ebp + 0x24]
lea eax, [esi + edi]
push dword [ebp - 0x4c]
push eax
push edi
push esi
push dword [ebp + 0x18]
call fcn.00497c90
add esp, 0x18
mov dword [ebp - 0x48], eax
test eax, eax
je 0x49878c
push esi
call fcn.00462920
mov eax, dword [ebp - 0x48]
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bafa
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp dword [ebp - 0x4c], ecx
jbe 0x4987af
mov edx, dword [ebp - 0x54]
lea ebx, [esi + edi]
nop dword [eax]
mov al, byte [ebx + ecx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, dword [ebp - 0x4c]
jb 0x4987a0
mov ebx, dword [ebp - 0x58]
push esi
call fcn.00462920
lea esi, [edi*2 + 1]
add esp, 4
mov dword [ebp - 0x4c], esi
cmp esi, ebx
jae 0x4987de
mov eax, dword [ebp - 0x50]
nop dword [eax]
cmp byte [eax + esi], 0
jne 0x4987db
inc esi
cmp esi, ebx
jb 0x4987d0
mov dword [ebp - 0x4c], esi
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x5c]
push dword [ebp + 0x14]
call fcn.004687d0
add esp, 0x14
test eax, eax
jne 0x49866e
xor ebx, ebx
xor edx, edx
test edi, edi
jle 0x498825
mov esi, dword [ebp - 0x54]
nop word [eax + eax]
movzx ecx, byte [esi + edx]
movzx eax, byte [ebp + edx - 0x44]
inc edx
xor ecx, eax
or ebx, ecx
cmp edx, edi
jl 0x498810
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
movzx ecx, byte [edx + esi]
inc esi
movzx eax, byte [edx]
xor ecx, 1
add ecx, ebx
add eax, ecx
je 0x49884f
pop esi
pop edi
mov eax, 0xffffff3f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bafa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x60]
lea ecx, [edx + esi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
sub eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049bafa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff53
pop edi
xor ecx, ebp
pop ebx
call fcn.0049bafa
mov esp, ebp
pop ebp
ret