Function at 0x492980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x134]
mov eax, dword [ecx + 0x140]
sub esp, 8
push ebx
mov ebx, edx
push esi
xor esi, esi
and ebx, 0xf
test eax, eax
jl 0x492b6a
cmp eax, 0xb
jne 0x4929bc
mov eax, 0xfffffffa
pop esi
mov dword [ecx + 0x140], eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
add edx, edi
cmp edx, dword [ecx + 0x128]
jbe 0x4929dc
pop edi
mov eax, 0xfffffff9
pop esi
mov dword [ecx + 0x140], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, eax
sub edx, ebx
sub edx, ecx
test dl, 7
jne 0x492a9d
test edi, edi
jbe 0x492a08
test bl, 7
je 0x492a08
mov dl, byte [esi + eax]
xor byte [ebx + ecx + 0x20], dl
add esi, 1
add ebx, 1
cmp esi, edi
jb 0x4929f2
lea edx, [esi + 8]
cmp edx, edi
ja 0x492a35
nop
cmp ebx, 8
ja 0x492a35
mov edi, dword [eax + edx - 8]
xor dword [ebx + ecx + 0x20], edi
mov edi, dword [eax + edx - 4]
xor dword [ebx + ecx + 0x24], edi
mov edi, dword [ebp + 0xc]
add edx, 8
add esi, 8
add ebx, 8
cmp edx, edi
jbe 0x492a10
lea edx, [esi + 0x10]
cmp edx, edi
ja 0x492b0a
lea edx, [esi + eax]
mov dword [ebp - 4], edx
mov edx, 0x10
sub edx, eax
lea edi, [ecx + 0x20]
mov dword [ebp - 8], edx
lea eax, [ecx + 0x30]
push eax
push edi
push edi
call fcn.00493e5d
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
xor ecx, dword [eax]
mov edx, dword [edi + 4]
xor edx, dword [eax + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
xor ecx, dword [edi + 8]
mov edx, dword [eax + 0xc]
xor edx, dword [edi + 0xc]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 8]
add eax, 0x10
add ecx, eax
add esp, 0xc
add esi, 0x10
cmp ecx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xc], edx
mov dword [ebp - 4], eax
jbe 0x492a53
jmp 0x492b04
test edi, edi
jbe 0x492ab7
cmp ebx, 0x10
jae 0x492ab7
mov dl, byte [esi + eax]
xor byte [ebx + ecx + 0x20], dl
add esi, 1
add ebx, 1
cmp esi, edi
jb 0x492aa1
lea edx, [esi + 0x10]
cmp edx, edi
ja 0x492b0a
lea eax, [ecx + 0x30]
mov dword [ebp - 8], eax
lea edi, [ecx + 0x20]
mov dword [ebp - 4], edx
lea ebx, [ebx]
mov ecx, dword [ebp - 8]
push ecx
push edi
push edi
call fcn.00493e5d
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ecx, [edx + eax - 0x10]
push ecx
push edi
push edi
call fcn.00492380
mov eax, dword [ebp - 4]
add eax, 0x10
add esp, 0x18
add esi, 0x10
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jbe 0x492ad0
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp esi, edi
jae 0x492b48
lea edx, [ecx + 0x20]
mov dword [ebp - 4], edx
jmp 0x492b19
mov edx, dword [ebp - 4]
cmp ebx, 0x10
jne 0x492b34
add ecx, 0x30
push ecx
push edx
push edx
call fcn.00493e5d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
xor ebx, ebx
mov dl, byte [esi + eax]
mov edi, dword [ebp - 4]
xor byte [edi + ebx], dl
add esi, 1
add ebx, 1
cmp esi, dword [ebp + 0xc]
jb 0x492b16
cmp ebx, 0x10
jne 0x492b61
lea eax, [ecx + 0x20]
add ecx, 0x30
push ecx
push eax
push eax
call fcn.00493e5d
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ecx + 0x134], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret