Function at 0x413980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
shr edi, 2
cmp edi, 0x40
jle 0x4139a2
mov edi, 0x40
push edi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004217f0
add esp, 0xc
xor ecx, ecx
xor eax, eax
test edi, edi
jle 0x413a0a
jmp 0x4139c3
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx + 0x43fd08]
xor byte [ebp + eax - 0x44], dl
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, 8
jge 0x413a0a
mov dl, byte [ebp + eax - 0x44]
mov ecx, eax
movzx ebx, dl
and ecx, 7
shl ebx, cl
test ebx, ebx
jne 0x4139ff
mov cl, byte [ebp + 0xc]
mov bl, al
and bl, 7
sub cl, bl
add cl, 8
shr dl, cl
test dl, dl
jne 0x4139ff
xor cl, cl
jmp 0x413a01
mov cl, 1
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x4139c0
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 0x413a5a
xor ecx, ecx
xor edi, edi
xor eax, eax
test edx, edx
je 0x413a50
jmp 0x413a30
mov bl, byte [ecx + 0x43fd08]
xor byte [esi + eax], bl
inc edi
cmp edi, dword [ecx*4 + 0x43fd10]
jle 0x413a4b
inc ecx
cmp ecx, 8
jg 0x413a50
xor edi, edi
inc eax
cmp eax, edx
jb 0x413a30
cmp dword [ebp - 0x48], 0
je 0x413bcd
cmp edx, 0x10
jb 0x413b56
cmp edx, 0x62
ja 0x413b5b
mov edi, dword [0x43fd34]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43fd30]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43fd34]
mov byte [eax + esi], cl
mov edi, dword [0x43fd3c]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43fd38]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43fd3c]
mov byte [eax + esi], cl
mov edi, dword [0x43fd44]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43fd40]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43fd44]
mov byte [eax + esi], cl
mov edi, dword [0x43fd4c]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43fd48]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43fd4c]
mov byte [eax + esi], cl
mov edi, dword [0x43fd54]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43fd50]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43fd54]
mov byte [eax + esi], cl
mov edi, dword [str._a_t_r_n_v]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43fd58]
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 [0x43fd64]
movzx ebx, byte [edi + esi]
mov eax, dword [0x43fd60]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43fd64]
mov byte [eax + esi], cl
mov edi, dword [0x43fd6c]
mov eax, dword [0x43fd68]
movzx ebx, byte [edi + esi]
mov cl, byte [eax + esi]
mov byte [eax + esi], bl
mov eax, dword [0x43fd6c]
mov byte [eax + esi], cl
jmp 0x413bc3
cmp edx, 0x62
jbe 0x413bc3
mov eax, 0x43fd74
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, 0x43fdf4
jl 0x413b60
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 0
je 0x413a1e
pop edi
xor eax, eax
pop ebx
mov dl, byte [ebp + eax - 0x44]
xor dl, 0x32
mov byte [eax + 0x43f748], dl
inc eax
cmp eax, 0x10
jl 0x413bd1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x441528], 0x10
mov eax, 1
call fcn.0041e965
mov esp, ebp
pop ebp
ret