Function at 0x41beae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4524c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push 6
pop ecx
xor edx, edx
mov dword [ebp - 0x68], edi
mov eax, esi
div ecx
push 3
pop ecx
mov dword [ebp - 0x4c], edx
mov eax, esi
xor edx, edx
mov dword [ebp - 0x64], ecx
div ecx
push 0x40
mov esi, eax
pop eax
cmp esi, eax
cmovg esi, eax
lea eax, [ebp - 0x44]
push esi
push edi
push eax
call fcn.0041e470
xor ebx, ebx
add esp, 0xc
dec esi
mov edx, ebx
test esi, esi
jle 0x41bf57
mov edi, ebx
mov al, byte [edi + 0x4481d5]
inc edi
xor byte [ebp + edx - 0x44], al
mov al, byte [ebp + edx - 0x44]
mov byte [ebp - 0x45], al
cmp edi, 6
jge 0x41bf54
mov ecx, edx
and ecx, 0x80000007
jns 0x41bf29
dec ecx
or ecx, 0xfffffff8
inc ecx
movzx eax, al
shl eax, cl
mov dword [ebp - 0x58], ecx
test eax, eax
jne 0x41bf49
mov cl, byte [ebp + 8]
sub cl, byte [ebp - 0x58]
mov al, byte [ebp - 0x45]
add cl, 8
shr al, cl
test al, al
mov al, bl
je 0x41bf4b
mov al, 1
mov byte [ebp + edx - 0x44], al
inc edx
cmp edx, esi
jl 0x41bf03
mov edi, dword [ebp - 0x68]
mov edx, dword [ebp + 0xc]
mov esi, edx
shl esi, 2
cmp dword [ebp - 0x4c], ebx
je 0x41bf76
mov eax, dword [0x455274]
add eax, dword [ebp + 8]
push 0x48
xor eax, 0x13
pop ecx
sub ecx, eax
jmp 0x41bf7c
mov ecx, dword [0x455270]
add ecx, esi
mov dword [ebp - 0x58], ecx
mov ecx, edx
and ecx, 0x80000001
jns 0x41bf90
dec ecx
or ecx, 0xfffffffe
inc ecx
sar edx, 2
mov dword [ebp - 0x50], ecx
mov dword [ebp + 0xc], edx
test ecx, ecx
je 0x41c03a
mov dword [ebp - 0x54], ebx
mov esi, ebx
test edx, edx
je 0x41c032
mov dword [ebp - 0x4c], 0x449c48
mov dword [ebp - 0x5c], ebx
mov eax, esi
and eax, 0x80000003
jns 0x41bfc6
dec eax
or eax, 0xfffffffc
inc eax
mov eax, dword [ebp - 0x5c]
jne 0x41bffa
movzx ecx, byte [eax + 0x4481da]
mov eax, edx
xor edx, edx
mov dword [ebp - 0x60], 7
div dword [ebp - 0x60]
add edx, esi
cmp edx, ecx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 0xc]
jne 0x41c02d
test ecx, ecx
je 0x41bff5
inc byte [edi + esi]
jmp 0x41c02d
dec byte [edi + esi]
jmp 0x41c02d
mov al, byte [eax + 0x44819a]
xor byte [edi + esi], al
mov eax, dword [ebp - 0x4c]
inc dword [ebp - 0x54]
mov edi, dword [ebp - 0x54]
mov eax, dword [eax]
cmp edi, dword [eax*4 + 0x449c50]
mov edi, dword [ebp - 0x68]
jle 0x41c02d
mov eax, dword [ebp - 0x5c]
sub dword [ebp - 0x4c], 4
dec eax
mov dword [ebp - 0x5c], eax
add eax, 6
jns 0x41c032
mov dword [ebp - 0x54], ebx
inc esi
cmp esi, edx
jb 0x41bfb8
test ecx, ecx
je 0x41c16a
lea eax, [edx - 8]
cmp eax, 0x5a
ja 0x41c0f4
mov dword [ebp - 0x60], 0x449d28
mov esi, ebx
mov ebx, dword [ebp - 0x60]
test ecx, ecx
je 0x41c097
mov eax, dword [ebx]
mov dl, byte [esi + 0x4481db]
mov cl, byte [eax + edi]
movzx eax, dl
and eax, 0x80000001
jns 0x41c070
dec eax
or eax, 0xfffffffe
inc eax
jne 0x41c076
xor cl, dl
jmp 0x41c07c
xor cl, byte [esi + 0x44819b]
lea eax, [esi + 7]
mov byte [ebp - 0x45], cl
cdq
idiv dword [ebp - 0x64]
test edx, edx
jne 0x41c090
add cl, 2
mov byte [ebp - 0x45], cl
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
jmp 0x41c0d4
mov eax, dword [ebx + 4]
mov cl, byte [eax + edi]
lea eax, [esi + 7]
cdq
idiv dword [ebp - 0x64]
test edx, edx
jne 0x41c0ab
add cl, 0xfe
mov dl, byte [esi + 0x4481db]
movzx eax, dl
and eax, 0x80000001
jns 0x41c0c0
dec eax
or eax, 0xfffffffe
inc eax
jne 0x41c0c6
xor cl, dl
jmp 0x41c0cc
xor cl, byte [esi + 0x44819b]
mov edx, dword [ebx + 4]
mov byte [ebp - 0x45], cl
mov ecx, dword [ebx]
mov al, byte [ecx + edi]
dec esi
mov byte [edx + edi], al
sub ebx, 8
mov al, byte [ebp - 0x45]
mov byte [ecx + edi], al
mov ecx, dword [ebp - 0x50]
lea eax, [esi + 7]
test eax, eax
jns 0x41c052
jmp 0x41c152
cmp edx, 0x9e
jbe 0x41c15c
push 0x10
pop eax
mov ebx, 0x449c70
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x41c11e
mov esi, dword [ebx]
and eax, 0x80000007
jns 0x41c119
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, dword [ebx + 4]
jmp 0x41c12f
mov esi, dword [ebx + 4]
and eax, 0x80000007
jns 0x41c12d
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, dword [ebx]
mov dl, byte [eax + 0x4481d4]
add ebx, 8
mov al, byte [ecx + edi]
xor dl, byte [esi + edi]
mov byte [esi + edi], al
mov eax, dword [ebp - 0x4c]
dec eax
mov byte [ecx + edi], dl
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
test eax, eax
jg 0x41c107
mov ecx, dword [ebp - 0x50]
xor ebx, ebx
mov edx, dword [ebp + 0xc]
jmp 0x41c15f
xor byte [edi], 0xb4
add dword [ebp - 0x58], ecx
test ecx, ecx
je 0x41bfa1
push 0x10
mov ecx, ebx
pop edx
mov al, byte [ebp + ecx - 0x44]
xor al, 0x32
mov byte [ecx + 0x453710], al
inc ecx
cmp ecx, edx
jl 0x41c16f
mov dword [0x455270], edx
test ecx, ecx
jle 0x41c19e
cmp ebx, 4
jge 0x41c199
mov al, bl
add al, al
add al, cl
mov byte [ebp + ebx - 0x44], al
inc ebx
cmp ebx, ecx
jl 0x41c18a
lea eax, [ecx + 0x2f]
push 0xa
pop ecx
cdq
idiv ecx
mov ecx, dword [ebp - 4]
xor eax, eax
add dl, byte [ebp - 0x42]
xor ecx, ebp
pop edi
pop esi
mov byte [0x453713], dl
inc eax
pop ebx
call fcn.0041e2e9
mov esp, ebp
pop ebp
ret