Function at 0x40fc70
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 0x40fc92
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 0x40fcfa
jmp 0x40fcb3
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 0x40fcfa
mov dl, byte [ebp + eax - 0x44]
mov ecx, eax
movzx ebx, dl
and ecx, 7
shl ebx, cl
test ebx, ebx
jne 0x40fcef
mov cl, byte [ebp + 0xc]
mov bl, al
and bl, 7
sub cl, bl
add cl, 8
shr dl, cl
test dl, dl
jne 0x40fcef
xor cl, cl
jmp 0x40fcf1
mov cl, 1
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x40fcb0
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 0x40fd4a
xor ecx, ecx
xor edi, edi
xor eax, eax
test edx, edx
je 0x40fd40
jmp 0x40fd20
mov bl, byte [ecx + 0x43cd08]
xor byte [esi + eax], bl
inc edi
cmp edi, dword [ecx*4 + 0x43cd10]
jle 0x40fd3b
inc ecx
cmp ecx, 8
jg 0x40fd40
xor edi, edi
inc eax
cmp eax, edx
jb 0x40fd20
cmp dword [ebp - 0x48], 0
je 0x40febd
cmp edx, 0x10
jb 0x40fe46
cmp edx, 0x62
ja 0x40fe4b
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 0x40feb3
cmp edx, 0x62
jbe 0x40feb3
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 0x40fe50
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 0
je 0x40fd0e
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 0x40fec1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x43e564], 0x10
mov eax, 1
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret