Function at 0x4d3de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c78
xor eax, eax
push ebp
push 0x12a4031
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004047ac
mov eax, ebx
call fcn.00404a88
test eax, eax
je 0x4d4001
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004d3d54
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004d3d54
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.00404844
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
call fcn.00404a88
sar eax, 1
jns 0x4d3e6c
adc eax, 0
test eax, eax
jle 0x4d3ff0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 1
je 0x4d3e8f
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00404844
lea eax, [ebp - 0x20]
call fcn.004047ac
xor edx, edx
push ebp
push 0x12a3fd1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x1c]
call fcn.00404a88
mov esi, eax
sar esi, 1
jns 0x4d3eb6
adc esi, 0
test esi, esi
jle 0x4d3fc7
mov edi, 1
mov edx, 0x12a4040
lea eax, [ebp - 0x30]
call fcn.00402f80
lea eax, [ebp - 0x34]
mov ebx, edi
add ebx, ebx
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx + ebx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
mov cl, 2
call fcn.00402f50
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x38]
call fcn.00402f80
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx + ebx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x38]
mov cl, 3
call fcn.00402f50
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x24]
call fcn.00404a10
mov eax, dword [ebp - 0x24]
call fcn.004092d4
mov ebx, eax
mov edx, 0x12a4040
lea eax, [ebp - 0x30]
call fcn.00402f80
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
mov cl, 2
call fcn.00402f50
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x38]
call fcn.00402f80
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x38]
mov cl, 3
call fcn.00402f50
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x28]
call fcn.00404a10
mov eax, dword [ebp - 0x28]
call fcn.004092d4
xor bl, al
lea eax, [ebp - 0x40]
mov edx, ebx
call fcn.00404994
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.004d3d54
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
call fcn.00404a90
inc edi
dec esi
jne 0x4d3ec3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d3fde
cmp dword [ebp - 0x10], 0
jg 0x4d3ff0
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x4d3e7e
cmp dword [ebp - 0x10], 0
jne 0x4d4001
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00404800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12a4038
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004047d0
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004047d0
lea eax, [ebp - 4]
call fcn.004047ac
ret