Function at 0x410140
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 edi
mov edi, dword [ebp + 8]
shr edi, 2
cmp edi, 0x40
jle 0x410162
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 0x4101ca
jmp 0x410183
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 0x4101ca
mov dl, byte [ebp + eax - 0x44]
mov ecx, eax
movzx ebx, dl
and ecx, 7
shl ebx, cl
test ebx, ebx
jne 0x4101bf
mov cl, byte [ebp + 0xc]
mov bl, al
and bl, 7
sub cl, bl
add cl, 8
shr dl, cl
test dl, dl
jne 0x4101bf
xor cl, cl
jmp 0x4101c1
mov cl, 1
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x410180
mov edx, dword [ebp + 8]
mov eax, edx
and eax, 1
shr edx, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
test eax, eax
je 0x41021a
xor ecx, ecx
xor edi, edi
xor eax, eax
test edx, edx
je 0x410210
jmp 0x4101f0
mov bl, byte [ecx + 0x43cd08]
xor byte [esi + eax], bl
inc edi
cmp edi, dword [ecx*4 + 0x43cd10]
jle 0x41020b
inc ecx
cmp ecx, 8
jg 0x410210
xor edi, edi
inc eax
cmp eax, edx
jb 0x4101f0
cmp dword [ebp - 0x48], 0
je 0x41038d
cmp edx, 0x10
jb 0x410316
cmp edx, 0x62
ja 0x41031b
mov edi, dword [0x43cd34]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43cd30]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43cd34]
mov byte [eax + esi], cl
mov edi, dword [0x43cd3c]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43cd38]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43cd3c]
mov byte [eax + esi], cl
mov edi, dword [0x43cd44]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43cd40]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43cd44]
mov byte [eax + esi], cl
mov edi, dword [0x43cd4c]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43cd48]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43cd4c]
mov byte [eax + esi], cl
mov edi, dword [0x43cd54]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43cd50]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43cd54]
mov byte [eax + esi], cl
mov edi, dword [str._a_t_r_n_v]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43cd58]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [str._a_t_r_n_v]
mov byte [eax + esi], cl
mov edi, dword [0x43cd64]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43cd60]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43cd64]
mov byte [eax + esi], cl
mov edi, dword [0x43cd6c]
mov eax, dword [0x43cd68]
movzx ebx, byte [edi + esi]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43cd6c]
mov byte [eax + esi], cl
jmp 0x410383
cmp edx, 0x62
jbe 0x410383
mov eax, 0x43cd74
mov edi, dword [eax]
movzx ebx, byte [esi + edi]
mov ecx, dword [eax - 4]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], bl
mov ecx, dword [eax]
mov byte [esi + ecx], dl
mov edi, dword [eax + 8]
movzx ebx, byte [esi + edi]
mov ecx, dword [eax + 4]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], bl
mov ecx, dword [eax + 8]
mov byte [esi + ecx], dl
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
movzx ebx, byte [esi + edi]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], bl
mov ecx, dword [eax + 0x10]
mov byte [esi + ecx], dl
mov edi, dword [eax + 0x18]
mov ecx, dword [eax + 0x14]
movzx ebx, byte [esi + edi]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], bl
mov ecx, dword [eax + 0x18]
add eax, 0x20
mov byte [esi + ecx], dl
cmp eax, 0x43cdf4
jl 0x410320
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 0
je 0x4101de
pop edi
xor eax, eax
pop ebx
mov dl, byte [ebp + eax - 0x44]
xor dl, 0x32
mov byte [eax + 0x43c748], dl
inc eax
cmp eax, 0x10
jl 0x410391
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x43e524], 0x10
mov eax, 1
call fcn.0041b25d
mov esp, ebp
pop ebp
ret