Function at 0x4983c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9bfb
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x13c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push 0x12c
push 0
push eax
mov dword [ebp - 0x144], ebx
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x13c]
call fcn.004122e0
lea ecx, [ebx + 0x30]
mov dword [ebp - 4], 0
call fcn.0040d5b0
test eax, eax
jne 0x498443
push 0x10
push eax
lea ecx, [ebx + 0x30]
call fcn.0040b870
mov dword [ebx + 0x2c], 0xc
cmp dword [esi + 0x534], 0
je 0x498456
push str.Not_in_IV_mode.
jmp 0x498662
mov ecx, dword [esi + 0x538]
cmp ecx, 0xf
ja 0x49865d
mov eax, dword [ebx + 0x2c]
add eax, ecx
cmp eax, 0xc
jbe 0x498476
or dword [esi + 0x530], 1
lea ecx, [ebx + 0x30]
call fcn.0040d580
xor edi, edi
mov edx, eax
mov dword [ebp - 0x140], edx
cmp dword [esi + 0x538], edi
jne 0x498519
test dword [ebx + 0x2c], 0xfffffff0
jbe 0x498517
lea ecx, [edx + 8]
lea ebx, [esi + 0x4f0]
mov dword [ebp - 0x148], ecx
nop dword [eax]
mov eax, dword [ecx + edi - 8]
xor dword [ebx], eax
mov eax, dword [ecx + edi - 4]
xor dword [ebx + 4], eax
mov eax, dword [ecx + edi]
xor dword [esi + 0x4f8], eax
mov eax, dword [ecx + edi + 4]
xor dword [esi + 0x4fc], eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push esi
call fcn.0049ac00
mov eax, dword [ebp - 0x144]
add esp, 0xc
add dword [esi + 0x540], 0x80
mov ecx, dword [ebp - 0x148]
adc dword [esi + 0x544], 0
add edi, 0x10
mov eax, dword [eax + 0x2c]
and eax, 0xfffffff0
cmp edi, eax
jb 0x4984b0
mov edx, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x144]
add edx, edi
cmp edi, dword [ebx + 0x2c]
jae 0x498659
mov ecx, dword [esi + 0x538]
mov al, byte [edx]
inc edx
mov dword [ebp - 0x140], edx
mov byte [ecx + esi + 0x520], al
inc dword [esi + 0x538]
cmp dword [esi + 0x538], 0x10
jne 0x49864f
movzx eax, byte [esi + 0x520]
lea ecx, [esi + 0x4f0]
xor byte [ecx], al
movzx eax, byte [esi + 0x521]
xor byte [esi + 0x4f1], al
movzx eax, byte [esi + 0x522]
xor byte [esi + 0x4f2], al
movzx eax, byte [esi + 0x523]
xor byte [esi + 0x4f3], al
movzx eax, byte [esi + 0x524]
xor byte [esi + 0x4f4], al
movzx eax, byte [esi + 0x525]
xor byte [esi + 0x4f5], al
movzx eax, byte [esi + 0x526]
xor byte [esi + 0x4f6], al
movzx eax, byte [esi + 0x527]
xor byte [esi + 0x4f7], al
movzx eax, byte [esi + 0x528]
xor byte [esi + 0x4f8], al
movzx eax, byte [esi + 0x529]
xor byte [esi + 0x4f9], al
movzx eax, byte [esi + 0x52a]
xor byte [esi + 0x4fa], al
movzx eax, byte [esi + 0x52b]
xor byte [esi + 0x4fb], al
movzx eax, byte [esi + 0x52c]
xor byte [esi + 0x4fc], al
movzx eax, byte [esi + 0x52d]
xor byte [esi + 0x4fd], al
movzx eax, byte [esi + 0x52e]
xor byte [esi + 0x4fe], al
movzx eax, byte [esi + 0x52f]
xor byte [esi + 0x4ff], al
lea eax, [ebp - 0x13c]
push eax
push ecx
push esi
call fcn.0049ac00
mov edx, dword [ebp - 0x140]
add esp, 0xc
add dword [esi + 0x540], 0x80
mov dword [esi + 0x538], 0
adc dword [esi + 0x544], 0
inc edi
cmp edi, dword [ebx + 0x2c]
jb 0x498522
mov bl, 1
jmp 0x49866b
push str.buflen_error.
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x13c]
call fcn.00412300
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x10