Function at 0x4a91e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040509c
xor eax, eax
push ebp
push 0x4a9438
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404c84
mov eax, dword [ebp - 0x18]
call fcn.00404eac
and eax, 0x80000001
jns 0x4a9243
dec eax
or eax, 0xfffffffe
inc eax
dec eax
je 0x4a9400
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004a8fbc
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x18]
call fcn.00404c84
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00404c84
mov eax, dword [ebp - 0x1c]
call fcn.00404eac
sar eax, 1
jns 0x4a927a
adc eax, 0
cmp eax, 1
jl 0x4a93f5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
call fcn.00404eac
sar eax, 1
jns 0x4a9295
adc eax, 0
cmp eax, dword [ebp - 0x10]
je 0x4a92a5
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00404c84
lea eax, [ebp - 0x24]
call fcn.00404bec
mov eax, dword [ebp - 0x20]
call fcn.00404eac
sar eax, 1
jns 0x4a92bc
adc eax, 0
test eax, eax
jle 0x4a93e8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 1
mov edx, 0x4a9444
lea eax, [ebp - 0x34]
call fcn.0040349c
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
add edx, edx
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x34]
mov cl, 2
call fcn.0040346c
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x3c]
call fcn.0040349c
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
add edx, edx
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov cl, 3
call fcn.0040346c
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x30]
call fcn.00404e50
mov eax, dword [ebp - 0x30]
call fcn.00409804
mov byte [ebp - 0x25], al
mov edx, 0x4a9444
lea eax, [ebp - 0x34]
call fcn.0040349c
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x34]
mov cl, 2
call fcn.0040346c
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x3c]
call fcn.0040349c
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov cl, 3
call fcn.0040346c
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
call fcn.00404e50
mov eax, dword [ebp - 0x40]
call fcn.00409804
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x25]
xor al, byte [ebp - 0x26]
mov byte [ebp - 0x27], al
lea eax, [ebp - 0x48]
mov dl, byte [ebp - 0x27]
call fcn.00404dd4
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.004a8fbc
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x24]
call fcn.00404eb4
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x4a92ce
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jne 0x4a9286
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.004a906c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a943f
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404c10
lea eax, [ebp - 0x30]
call fcn.00404bec
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404c10
lea eax, [ebp - 8]
call fcn.00404bec
ret