Function at 0x407e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edx, 4
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ecx]
mov ebp, dword [ecx + 0xc]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x68]
mov ebx, dword [edi + 4]
sub ebx, dword [edi]
mov dword [ecx + 4], eax
mov dword [ecx + 0x10], ebp
sar ebx, 2
test ebx, ebx
jne 0x4081d0
mov dword [esp], edx
mov ecx, esi
mov dword [esp + 4], 0
call fcn.0062faf0
sub esp, 8
mov eax, dword [esi]
mov edx, dword [esp + 0x64]
mov byte [eax], dl
mov eax, dword [esi]
mov edx, ebx
shr edx, 0x10
mov byte [eax + 1], dl
mov eax, dword [esi]
mov byte [eax + 2], bh
mov eax, dword [esi]
mov byte [eax + 3], bl
mov eax, dword [esi]
lea ecx, [eax + 4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
sub eax, edi
mov dword [esp + 0x30], edi
cmp eax, 7
jle 0x407f96
sub eax, 8
mov edx, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
and eax, 0xfffffff8
lea eax, [edi + eax + 8]
mov dword [esp + 0x2c], eax
movzx edi, byte [edx + 2]
movzx esi, byte [edx]
add edx, 8
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 4]
movzx ebx, byte [edx - 5]
mov ebp, edi
and esi, 7
sar edi, 2
shl ebp, 6
mov byte [esp + 0x20], cl
movzx ecx, byte [edx - 1]
or esi, ebp
movzx ebp, byte [edx - 7]
mov byte [esp + 0x1c], al
movzx eax, byte [edx - 3]
mov byte [esp + 0x27], cl
shl ebp, 3
and ebp, 0x38
or esi, ebp
mov ebp, dword [esp + 0x18]
mov ecx, esi
mov esi, edi
lea edi, [ebx + ebx]
movzx ebx, byte [esp + 0x1c]
and esi, 1
and edi, 0xe
mov byte [ebp], cl
add ebp, 3
or edi, esi
mov esi, eax
sar eax, 1
shl esi, 7
and eax, 3
shl ebx, 4
or edi, esi
and ebx, 0x70
or ebx, edi
movzx edi, byte [esp + 0x20]
mov byte [ebp - 2], bl
lea ebx, [edi*4]
and ebx, 0x1c
or eax, ebx
movzx ebx, byte [esp + 0x27]
shl ebx, 5
or eax, ebx
mov byte [ebp - 1], al
cmp dword [esp + 0x2c], edx
mov dword [esp + 0x18], ebp
jne 0x407ed1
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, eax
and eax, 7
shr edx, 3
add edx, 1
lea esi, [esi + edx*8]
lea edx, [edx + edx*2]
add dword [esp + 0x38], edx
mov dword [esp + 0x30], esi
cmp eax, 7
je 0x408280
cmp eax, 6
je 0x407ff0
cmp eax, 5
je 0x408500
cmp eax, 4
je 0x408670
cmp eax, 3
je 0x408455
cmp eax, 2
mov esi, dword [esp + 0x38]
je 0x4086bd
cmp eax, 1
mov dword [esp + 0x34], esi
jne 0x408056
mov eax, dword [esp + 0x30]
add dword [esp + 0x34], 1
movzx eax, byte [eax]
and eax, 7
mov byte [esi], al
jmp 0x408056
mov ebp, dword [esp + 0x30]
movzx eax, byte [ebp + 2]
movzx ebx, byte [ebp]
movzx esi, byte [ebp + 3]
movzx edx, byte [ebp + 5]
movzx edi, byte [ebp + 4]
mov ecx, eax
mov byte [esp + 0x18], bl
and ebx, 7
shl ecx, 6
sar eax, 2
add esi, esi
or ecx, ebx
movzx ebx, byte [ebp + 1]
and eax, 1
and esi, 0xe
shl edi, 4
or eax, esi
and edi, 0x70
shl ebx, 3
and ebx, 0x38
or ecx, ebx
mov ebx, dword [esp + 0x38]
mov byte [ebx], cl
mov ecx, edx
sar edx, 1
shl ecx, 7
and edx, 3
or eax, ecx
mov byte [ebx + 2], dl
or eax, edi
mov byte [ebx + 1], al
lea eax, [ebx + 3]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub eax, esi
mov dword [esp + 0x30], esi
cmp eax, 7
jle 0x408175
sub eax, 8
mov edi, dword [esp + 0x34]
mov ebp, esi
mov dword [esp + 0x3c], eax
shr eax, 3
mov dword [esp + 0x38], eax
lea eax, [eax + eax*4 + 5]
mov ebx, edi
add eax, edi
mov dword [esp + 0x2c], eax
nop
movzx ecx, byte [ebp + 2]
movzx esi, byte [ebp]
invalid