Function at 0x438b50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
mov al, byte [ebx + 4]
push edi
test al, al
jne 0x438b7d
push 0x4819cc
lea ecx, [esp + 0x14]
call fcn.00442760
lea eax, [esp + 0x10]
push 0x477580
push eax
call fcn.0044284f
mov esi, dword [esp + 0x28]
xor edi, edi
cmp esi, edi
je 0x438d8f
mov ecx, dword [ebx + 0x3cc]
mov eax, esi
xor edx, edx
div ecx
test edx, edx
jne 0x438d8f
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x438c7b
mov edx, dword [esp + 0x20]
mov eax, esi
mov dword [esp + 0x20], edx
xor edx, edx
div ecx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
test eax, eax
jle 0x438c54
mov eax, dword [esp + 0x20]
push ebp
push eax
mov ecx, ebx
call fcn.004385f0
mov cl, byte [ebx + 4]
mov eax, ebp
test cl, cl
je 0x438c5e
mov ecx, dword [ebx + 0x3cc]
xor esi, esi
test ecx, ecx
jle 0x438c0b
mov ecx, ebx
sub ecx, ebp
lea edi, [ecx + 0x3f4]
mov dl, byte [edi + eax]
mov cl, byte [eax]
xor cl, dl
mov byte [eax], cl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc esi
cmp esi, ecx
jl 0x438bf6
mov ecx, dword [ebx + 0x3cc]
mov esi, dword [esp + 0x20]
mov eax, ecx
lea edi, [ebx + 0x3f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov edi, dword [esp + 0x20]
div ecx
mov esi, dword [esp + 0x2c]
add edi, ecx
add ebp, ecx
inc esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], esi
cmp esi, eax
jl 0x438bca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x4819cc
lea ecx, [esp + 0x14]
call fcn.00442760
lea ecx, [esp + 0x10]
push 0x477580
push ecx
call fcn.0044284f
cmp eax, 2
mov dword [esp + 0x2c], edi
jne 0x438d47
mov eax, esi
xor edx, edx
div ecx
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x20], edi
test eax, eax
jle 0x438c54
jmp 0x438ca4
mov edi, dword [esp + 0x20]
lea eax, [ebx + 0x3f4]
push edi
push eax
mov ecx, ebx
call fcn.00438300
mov cl, byte [ebx + 4]
mov eax, edi
test cl, cl
je 0x438d2a
mov ecx, dword [ebx + 0x3cc]
xor esi, esi
test ecx, ecx
jle 0x438cdd
mov dl, byte [esi + ebp]
mov cl, byte [eax]
xor cl, dl
mov byte [eax], cl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc esi
cmp esi, ecx
jl 0x438cc8
mov ecx, dword [ebx + 0x3cc]
mov esi, ebp
mov eax, ecx
lea edi, [ebx + 0x3f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov esi, dword [esp + 0x20]
div ecx
add esi, ecx
add ebp, ecx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x2c]
inc esi
mov dword [esp + 0x2c], esi
cmp esi, eax
jl 0x438ca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x4819cc
lea ecx, [esp + 0x14]
call fcn.00442760
lea ecx, [esp + 0x10]
push 0x477580
push ecx
call fcn.0044284f
mov eax, esi
xor edx, edx
div ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
test eax, eax
jle 0x438c54
push ebp
push edi
mov ecx, ebx
call fcn.004385f0
mov ecx, dword [ebx + 0x3cc]
mov edx, dword [esp + 0x2c]
add edi, ecx
add ebp, ecx
inc edx
mov eax, esi
mov dword [esp + 0x2c], edx
xor edx, edx
div ecx
cmp dword [esp + 0x2c], eax
jl 0x438d5d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x4819d0
lea ecx, [esp + 0x14]
call fcn.00442760
lea edx, [esp + 0x10]
push 0x477580
push edx
call fcn.0044284f
nop
nop
nop
nop
mov cl, byte [0x48fb8c]
mov al, 1
test al, cl
jne 0x438dc4
or cl, al
mov byte [0x48fb8c], cl
jmp 0x438dd0
push fcn.0040a3a0
call fcn.004412f3
pop ecx
ret