Function at 0x4103d0
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 0x4103f3
mov edi, 0x40
push edi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0041ef90
add esp, 0xc
xor ecx, ecx
xor eax, eax
test edi, edi
jle 0x41045a
jmp 0x410413
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 0x41045a
mov dl, byte [ebp + eax - 0x44]
mov ecx, eax
movzx ebx, dl
and ecx, 7
shl ebx, cl
test ebx, ebx
jne 0x41044f
mov cl, byte [ebp + 8]
mov bl, al
and bl, 7
sub cl, bl
add cl, 8
shr dl, cl
test dl, dl
jne 0x41044f
xor cl, cl
jmp 0x410451
mov cl, 1
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x410410
mov eax, dword [ebp + 0xc]
mov edi, eax
and edi, 0x80000001
jns 0x41046c
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 0x4104ba
xor edi, edi
xor eax, eax
mov ecx, 7
test edx, edx
je 0x4104af
jmp 0x410490
mov bl, byte [ecx + 0x43cd08]
xor byte [esi + eax], bl
inc edi
cmp edi, dword [ecx*4 + 0x43cd10]
jle 0x4104aa
dec ecx
test ecx, ecx
jg 0x4104af
xor edi, edi
inc eax
cmp eax, edx
jb 0x410490
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4107cf
cmp edx, 0x10
jb 0x41062f
cmp edx, 0x9e
ja 0x41063b
xor eax, eax
jmp 0x4104e0
cmp dword [ebp - 0x4c], 0
mov cl, byte [eax + 0x43cd08]
je 0x410588
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 0x41061b
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 0x4104e0
jmp 0x4107c5
cmp edx, 0x9e
jbe 0x4107b8
mov ecx, 0xf
mov eax, 0x43cd70
jmp 0x41064a
mov edi, dword [ebp - 0x4c]
lea edx, [ecx + 1]
test edi, edi
je 0x4106fe
and edx, 0x80000007
mov edi, dword [eax]
jns 0x410664
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 0x41068e
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 0x4106b9
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 0x4106e4
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 0x4107a1
and edx, 0x80000007
mov edi, dword [eax + 4]
jns 0x41070e
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 0x410736
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 0x410761
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 0x41078c
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 0x410647
jmp 0x4107c5
mov al, byte [0x43cd0d]
add al, byte [0x43cd0a]
xor byte [esi], al
cmp dword [ebp - 0x4c], 0
je 0x41047b
xor ebx, ebx
mov cl, byte [ebp + ebx - 0x44]
xor cl, 0x32
mov byte [ebx + 0x43c748], cl
inc ebx
cmp ebx, 0x10
jl 0x4107d1
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 [0x43e524], 0x10
test ebx, ebx
jle 0x410827
cmp eax, 4
jge 0x410822
mov cl, al
add cl, cl
add cl, bl
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, ebx
jl 0x410813
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.0041b25d
mov esp, ebp
pop ebp
ret