Function at 0x40ff00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
shr edi, 1
mov esi, edx
cmp edi, 0x40
jle 0x40ff23
mov edi, 0x40
push edi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0041eab0
add esp, 0xc
xor ecx, ecx
xor eax, eax
test edi, edi
jle 0x40ff8a
jmp 0x40ff43
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx + 0x43cd08]
xor byte [ebp + eax - 0x44], dl
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, 8
jge 0x40ff8a
mov dl, byte [ebp + eax - 0x44]
mov ecx, eax
movzx ebx, dl
and ecx, 7
shl ebx, cl
test ebx, ebx
jne 0x40ff7f
mov cl, byte [ebp + 8]
mov bl, al
and bl, 7
sub cl, bl
add cl, 8
shr dl, cl
test dl, dl
jne 0x40ff7f
xor cl, cl
jmp 0x40ff81
mov cl, 1
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x40ff40
mov eax, dword [ebp + 0xc]
mov edi, eax
and edi, 0x80000001
jns 0x40ff9c
dec edi
or edi, 0xfffffffe
inc edi
mov edx, eax
sar edx, 2
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
test edi, edi
je 0x40ffea
xor edi, edi
xor eax, eax
mov ecx, 7
test edx, edx
je 0x40ffdf
jmp 0x40ffc0
mov bl, byte [ecx + 0x43cd08]
xor byte [esi + eax], bl
inc edi
cmp edi, dword [ecx*4 + 0x43cd10]
jle 0x40ffda
dec ecx
test ecx, ecx
jg 0x40ffdf
xor edi, edi
inc eax
cmp eax, edx
jb 0x40ffc0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4102ff
cmp edx, 0x10
jb 0x41015f
cmp edx, 0x9e
ja 0x41016b
xor eax, eax
jmp 0x410010
cmp dword [ebp - 0x4c], 0
mov cl, byte [eax + 0x43cd08]
je 0x4100b8
mov ebx, dword [eax*8 + 0x43cd34]
mov bl, byte [esi + ebx]
mov edi, dword [eax*8 + 0x43cd30]
xor cl, byte [edi + esi]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd34]
mov byte [esi + edi], cl
mov ebx, dword [eax*8 + 0x43cd3c]
mov bl, byte [esi + ebx]
mov edi, dword [eax*8 + 0x43cd38]
mov cl, byte [eax + 0x43cd09]
xor cl, byte [edi + esi]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd3c]
mov byte [esi + edi], cl
mov ebx, dword [eax*8 + 0x43cd44]
mov edi, dword [eax*8 + 0x43cd40]
mov cl, byte [eax + 0x43cd0a]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd44]
mov byte [esi + edi], cl
mov edi, dword [eax*8 + 0x43cd48]
mov ebx, dword [eax*8 + 0x43cd4c]
mov cl, byte [eax + 0x43cd0b]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd4c]
jmp 0x41014b
mov ebx, dword [eax*8 + 0x43cd30]
mov bl, byte [esi + ebx]
mov edi, dword [eax*8 + 0x43cd34]
xor cl, byte [edi + esi]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd30]
mov byte [esi + edi], cl
mov edi, dword [eax*8 + 0x43cd3c]
mov cl, byte [edi + esi]
mov ebx, dword [eax*8 + 0x43cd38]
mov bl, byte [esi + ebx]
xor cl, byte [eax + 0x43cd09]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd38]
mov byte [esi + edi], cl
mov ebx, dword [eax*8 + 0x43cd40]
mov edi, dword [eax*8 + 0x43cd44]
mov cl, byte [eax + 0x43cd0a]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd40]
mov byte [esi + edi], cl
mov edi, dword [eax*8 + 0x43cd4c]
mov ebx, dword [eax*8 + 0x43cd48]
mov cl, byte [eax + 0x43cd0b]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43cd48]
add eax, 4
mov byte [esi + edi], cl
cmp eax, 8
jl 0x410010
jmp 0x4102f5
cmp edx, 0x9e
jbe 0x4102e8
mov ecx, 0xf
mov eax, 0x43cd70
jmp 0x41017a
mov edi, dword [ebp - 0x4c]
lea edx, [ecx + 1]
test edi, edi
je 0x41022e
and edx, 0x80000007
mov edi, dword [eax]
jns 0x410194
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 4]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 4]
mov byte [esi + edi], dl
mov edi, dword [eax + 8]
mov edx, ecx
and edx, 0x80000007
jns 0x4101be
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 0xc]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0xc]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x10]
lea edx, [ecx - 1]
and edx, 0x80000007
jns 0x4101e9
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 0x14]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x14]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x18]
lea edx, [ecx - 2]
and edx, 0x80000007
jns 0x410214
dec edx
or edx, 0xfffffff8
inc edx
mov ebx, dword [eax + 0x1c]
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x1c]
jmp 0x4102d1
and edx, 0x80000007
mov edi, dword [eax + 4]
jns 0x41023e
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax]
mov byte [esi + edi], dl
mov edi, dword [eax + 0xc]
mov edx, ecx
and edx, 0x80000007
jns 0x410266
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 8]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 8]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x14]
lea edx, [ecx - 1]
and edx, 0x80000007
jns 0x410291
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 0x10]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x10]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x1c]
lea edx, [ecx - 2]
and edx, 0x80000007
jns 0x4102bc
dec edx
or edx, 0xfffffff8
inc edx
mov ebx, dword [eax + 0x18]
mov dl, byte [edx + 0x43cd08]
xor dl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x18]
sub ecx, 4
add eax, 0x20
mov byte [esi + edi], dl
mov edx, dword [ebp - 0x48]
cmp ecx, 0xffffffff
jg 0x410177
jmp 0x4102f5
mov al, byte [0x43cd0d]
add al, byte [0x43cd0a]
xor byte [esi], al
cmp dword [ebp - 0x4c], 0
je 0x40ffab
xor ebx, ebx
mov cl, byte [ebp + ebx - 0x44]
xor cl, 0x32
mov byte [ebx + 0x43c748], cl
inc ebx
cmp ebx, 0x10
jl 0x410301
mov esi, dword [0x43ca70]
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
mov eax, esi
sub eax, edx
add ebx, eax
xor eax, eax
mov dword [0x43e564], 0x10
test ebx, ebx
jle 0x410357
cmp eax, 4
jge 0x410352
mov cl, al
add cl, cl
add cl, bl
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, ebx
jl 0x410343
movzx ecx, byte [0x43c768]
add ecx, dword [0x43ca6c]
mov eax, 0x66666667
add ecx, esi
add ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, al
add dl, dl
add dl, dl
add al, dl
add al, al
sub cl, al
add cl, byte [ebp - 0x42]
pop edi
mov byte [0x43c74b], cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret