Function at 0x405b74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
mov eax, 0x4c690c
push ebx
push esi
push edi
call fcn.0049fef4
mov word [ebp - 0x24], 8
push 0x15
call fcn.0049f2bc
pop ecx
mov dword [ebp - 0x40], eax
push 0x14
push 0x30
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049fac0
add esp, 0xc
lea ecx, [ebp - 0x54]
push 0x14
push 0
push ecx
call fcn.0049fac0
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x14
push 0
push eax
call fcn.0049fac0
add esp, 0xc
mov dl, 1
mov eax, dword [0x488ef0]
call fcn.00405e40
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00405758
add esp, 8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jge 0x405c2e
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00405758
add esp, 8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jge 0x405c2e
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x405e38
mov word [ebp - 0x24], 0x14
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 4], 0
je 0x405c54
mov eax, dword [ebp - 4]
jmp 0x405c59
mov eax, 0x4c53d7
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 4]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x18]
call fcn.004adc4c
mov word [ebp - 0x24], 0x20
xor ecx, ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
inc dword [ebp - 0x18]
mov edx, 1
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 8], 0
je 0x405cb4
mov eax, dword [ebp - 8]
jmp 0x405cb9
mov eax, 0x4c53d8
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
lea esi, [ebp - 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 8]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x18]
call fcn.004adc4c
lea ecx, [ebp - 0x54]
push ecx
call fcn.0049fbf4
pop ecx
mov edx, eax
cmp edx, 0x14
jle 0x405d01
mov edx, 0x14
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x54]
cmp edx, eax
jle 0x405d1a
mov bl, byte [ecx]
mov byte [esi], bl
inc eax
inc esi
inc ecx
cmp edx, eax
jg 0x405d0f
lea eax, [ebp - 0x68]
push eax
call fcn.0049fbf4
pop ecx
mov edx, eax
cmp edx, 0x14
jle 0x405d30
mov edx, 0x14
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x68]
cmp edx, eax
jle 0x405d49
mov bl, byte [ecx]
xor byte [esi], bl
inc eax
inc esi
inc ecx
cmp edx, eax
jg 0x405d3e
cmp dword [ebp - 0x3c], 0
jne 0x405d6d
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x10], 0x17
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x11], 0x16
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x12], 0x15
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x13], 0x14
jmp 0x405d8f
cmp dword [ebp - 0x3c], 1
jne 0x405d8f
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x10], 0x16
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x11], 0x17
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x12], 0x14
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x13], 0x15
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x405db7
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x24], 0x38
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x24], 0x2c
push 0x15
push 0
mov edx, dword [ebp - 0x40]
push edx
call fcn.0049fac0
add esp, 0xc
push 0x14
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0x40]
push edx
call fcn.0049fa50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
add esp, 0xc
add ecx, 0x63
mov dword [eax + 0x1f60], ecx
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x14], 0
push 0x14
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00405e94
add esp, 0xc
mov word [ebp - 0x24], 0
jmp 0x405e29
mov eax, 1
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret