Function at 0x4023c0
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 0x4023ed
push 0x4370c0
lea ecx, [esp + 0x14]
call fcn.00408322
lea eax, [esp + 0x10]
push 0x432670
push eax
call fcn.00408411
mov esi, dword [esp + 0x28]
xor edi, edi
cmp esi, edi
je 0x4025c7
mov ecx, dword [ebx + 0x14]
mov eax, esi
xor edx, edx
div ecx
test edx, edx
jne 0x4025c7
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x4024c8
mov eax, esi
mov ebp, dword [esp + 0x20]
div ecx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
jbe 0x4024a1
jmp 0x402437
mov edi, dword [esp + 0x20]
push edi
push ebp
mov ecx, ebx
call fcn.004020e0
mov cl, byte [ebx + 4]
mov esi, dword [ebx + 0x20]
test cl, cl
mov eax, edi
je 0x4024ab
mov ecx, dword [ebx + 0x14]
xor edi, edi
test ecx, ecx
jle 0x402467
mov cl, byte [esi]
mov dl, byte [eax]
xor dl, cl
inc esi
mov byte [eax], dl
mov ecx, dword [ebx + 0x14]
inc eax
inc edi
cmp edi, ecx
jl 0x402455
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x20]
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14]
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
jb 0x402433
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x4370c0
lea ecx, [esp + 0x14]
call fcn.00408322
lea eax, [esp + 0x10]
push 0x432670
push eax
call fcn.00408411
cmp eax, 2
mov dword [esp + 0x2c], edi
jne 0x402582
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
jbe 0x4024a1
jmp 0x4024f1
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x20]
push edi
push ecx
mov ecx, ebx
call fcn.00401e00
mov al, byte [ebx + 4]
mov esi, edi
test al, al
je 0x402565
mov ecx, dword [ebx + 0x14]
xor eax, eax
test ecx, ecx
jle 0x402521
mov dl, byte [eax + ebp]
mov cl, byte [esi]
xor cl, dl
mov byte [esi], cl
mov ecx, dword [ebx + 0x14]
inc esi
inc eax
cmp eax, ecx
jl 0x40250f
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x20]
mov eax, ecx
mov esi, ebp
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 + 0x14]
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
jb 0x4024ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x4370c0
lea ecx, [esp + 0x14]
call fcn.00408322
lea ecx, [esp + 0x10]
push 0x432670
push ecx
call fcn.00408411
mov eax, esi
xor edx, edx
div ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
test eax, eax
jbe 0x4024a1
push ebp
push edi
mov ecx, ebx
call fcn.004020e0
mov ecx, dword [ebx + 0x14]
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
jb 0x402598
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x4370c4
lea ecx, [esp + 0x14]
call fcn.00408322
lea edx, [esp + 0x10]
push 0x432670
push edx
call fcn.00408411
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop