Function at 0x4089c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.0040e608
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x408a2f
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x4089fa
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x408a27
cmp ecx, 4
jl 0x4089f8
cmp ecx, 4
jne 0x408a2f
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x408a3a
cmp esi, 0xa
jle 0x408a1c
cmp esi, 0xa
jg 0x408bda
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x4157e4]
lea edx, [esp + 0xc]
xor byte [edx], al
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov al, byte [edx + 0x4157e4]
lea edx, [esp + 0xc]
xor byte [edx + 1], al
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x4157e4]
lea edx, [esp + 0xc]
xor byte [edx + 2], al
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov al, byte [edx + 0x4157e4]
lea edx, [esp + 0xc]
xor byte [edx + 3], al
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x4159e4]
lea eax, [esp + 0xc]
xor byte [eax], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x408aea
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x408b88
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x408aca
inc edx
cmp edx, dword [esp + 8]
jl 0x408ac8
jmp 0x408b88
mov edx, 1
jmp 0x408b08
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x408af3
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x408b13
adc eax, 0
cmp edx, eax
jl 0x408af1
mov eax, dword [esp + 8]
sar eax, 1
jns 0x408b22
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x4157e4]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x4157e4]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x4157e4]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x4157e4]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x408b88
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x408b6d
inc edx
cmp edx, dword [esp + 8]
jl 0x408b6b
xor edx, edx
jmp 0x408bc6
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x408b90
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x408bbe
cmp ecx, 4
jl 0x408b8e
cmp ecx, 4
jne 0x408bc6
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x408bd1
cmp esi, 0xa
jle 0x408bb3
cmp esi, 0xa
jle 0x408a43
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret