Function at 0x7245d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov al, byte [edi + 8]
lea ebx, [edi + 8]
mov dword [esp + 0x1c], edi
mov ebp, dword [edi]
mov dword [esp + 0x20], ebp
test al, al
jne 0x724892
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x724603
movzx ecx, word [esi + 8]
jmp 0x724605
xor ecx, ecx
mov al, byte [edi + 9]
mov dword [esp + 0x18], ecx
cmp al, 8
jae 0x72476d
movzx eax, al
sub eax, 1
je 0x724705
sub eax, 1
je 0x72469e
sub eax, 2
jne 0x72475c
and ecx, 0xf
mov ebx, 4
mov eax, ecx
shl ecx, 4
add ecx, eax
lea eax, [ebp - 1]
mov esi, eax
mov dword [esp + 0x18], ecx
and eax, 1
shr esi, 1
shl eax, 2
lea ecx, [edx - 1]
add esi, edx
add ecx, ebp
sub ebx, eax
test ebp, ebp
je 0x724758
mov edi, ecx
mov dl, byte [esi]
lea edi, [edi - 1]
mov cl, bl
shr dl, cl
mov ecx, 4
mov al, dl
shl dl, 4
and al, 0xf
xor al, dl
cmp ebx, 4
mov byte [edi + 1], al
lea eax, [esi - 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp ebx, 4
cmovne eax, ecx
mov ebx, eax
sub ebp, 1
jne 0x724661
mov ebp, dword [esp + 0x20]
jmp 0x724750
and ecx, 3
lea eax, [ebp - 1]
imul ecx, ecx, 0x55
mov esi, eax
and eax, 3
shr esi, 2
mov ebx, 3
add esi, edx
sub ebx, eax
add ebx, ebx
mov dword [esp + 0x18], ecx
lea ecx, [edx - 1]
add ecx, ebp
test ebp, ebp
je 0x724758
mov edi, ecx
lea ecx, [ecx]
mov dl, byte [esi]
mov cl, bl
shr dl, cl
and dl, 3
mov al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
mov byte [edi], al
cmp ebx, 6
jne 0x7246f6
xor ebx, ebx
dec esi
jmp 0x7246f9
add ebx, 2
dec edi
sub ebp, 1
jne 0x7246d0
mov ebp, dword [esp + 0x20]
jmp 0x724750
lea eax, [ebp - 1]
and ecx, 1
mov esi, eax
imul ecx, ecx, 0xff
shr esi, 3
lea ebx, [edx - 1]
add esi, edx
and eax, 7
mov edx, 7
add ebx, ebp
sub edx, eax
mov dword [esp + 0x18], ecx
test ebp, ebp
je 0x724754
mov edi, ebp
mov al, byte [esi]
mov cl, dl
shr al, cl
and al, 1
neg al
sbb al, al
mov byte [ebx], al
cmp edx, 7
jne 0x724749
xor edx, edx
dec esi
jmp 0x72474a
inc edx
dec ebx
sub edi, 1
jne 0x724731
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
lea ebx, [edi + 4]
mov byte [edi + 9], 8
mov byte [edi + 0xb], 8
mov al, 8
mov dword [ebx], ebp
jmp 0x724770
lea ebx, [edi + 4]
test esi, esi
je 0x724a42
cmp al, 8
jne 0x7247c4
mov esi, dword [esp + 0x14]
dec edx
mov eax, dword [esp + 0x18]
dec esi
movzx eax, al
add edx, ebp
mov dword [esp + 0x28], eax
lea esi, [esi + ebp*2]
test ebp, ebp
je 0x724858
mov ebx, ebp
lea esp, [esp]
movzx eax, byte [edx]
lea esi, [esi - 2]
sub eax, dword [esp + 0x28]
lea edx, [edx - 1]
neg eax
sbb al, al
mov byte [esi + 2], al
mov al, byte [edx + 1]
mov byte [esi + 1], al
sub ebx, 1
jne 0x7247a0
jmp 0x724855
cmp al, 0x10
jne 0x724858
mov eax, dword [esp + 0x18]
dec edx
mov ecx, eax
movzx eax, al
shr ecx, 8
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
add edx, eax
lea ecx, [ecx + eax*2]
dec ecx
test ebp, ebp
je 0x724858
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x28]
lea esp, [esp]
movzx eax, byte [edx - 1]
mov dword [esp + 0x28], ecx
cmp eax, ebp
jne 0x72481a
movzx eax, byte [edx]
cmp eax, dword [esp + 0x24]
jne 0x72481a
dec ecx
xor al, al
jmp 0x72481d
dec ecx
or al, 0xff
mov edi, dword [esp + 0x28]
mov ebx, ecx
mov dword [esp + 0x18], 0xffffffff
mov byte [edi], al
mov byte [ecx], al
mov ecx, dword [esp + 0x18]
mov al, byte [edx]
mov byte [ecx + ebx], al
add ecx, ebx
mov al, byte [edx - 1]
sub edx, 2
mov byte [ecx - 1], al
sub ecx, 2
sub dword [esp + 0x14], 1
jne 0x724800
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
lea ebx, [edi + 4]
mov al, byte [edi + 9]
add al, al
mov byte [edi + 8], 4
mov byte [edi + 0xa], 2
mov byte [edi + 0xb], al
movzx ecx, al
cmp al, 8
jb 0x72487f
shr ecx, 3
imul ecx, ebp
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
add esp, 0x28
ret
imul ecx, ebp
pop edi
pop esi
pop ebp
add ecx, 7
shr ecx, 3
mov dword [ebx], ecx
pop ebx
add esp, 0x28
ret
cmp al, 2
jne 0x724a42
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x724a42
mov cl, byte [edi + 9]
lea esi, [edi + 9]
cmp cl, 8
jne 0x72492b
mov cl, byte [eax + 2]
mov byte [esp + 0x12], cl
mov cl, byte [eax + 4]
mov al, byte [eax + 6]
mov byte [esp + 0x11], cl
lea ecx, [edx - 1]
mov byte [esp + 0x13], al
lea edx, [edx + ebp*4]
mov eax, dword [edi + 4]
dec edx
add ecx, eax
test ebp, ebp
je 0x724a0f
mov ah, byte [esp + 0x11]
mov dword [esp + 0x20], ebp
mov al, byte [esp + 0x12]
cmp byte [ecx - 2], al
jne 0x7248fc
cmp byte [ecx - 1], ah
jne 0x7248fc
mov al, byte [esp + 0x13]
cmp byte [ecx], al
jne 0x7248fc
xor al, al
jmp 0x7248fe
or al, 0xff
mov byte [edx], al
or ebx, 0xffffffff
mov al, byte [ecx]
mov esi, edx
lea edx, [ebx + esi]
mov byte [ebx + esi], al
mov al, byte [ecx - 1]
mov byte [edx - 1], al
mov al, byte [ecx - 2]
sub ecx, 3
mov byte [edx - 2], al
sub edx, 3
sub dword [esp + 0x20], 1
jne 0x7248e2
jmp 0x724a09
cmp cl, 0x10
jne 0x724a0f
movzx ecx, word [eax + 2]
dec edx
add edx, dword [edi + 4]
mov dword [esp + 0x24], ecx
shr ecx, 8
mov dword [esp + 0x28], ecx
movzx ecx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [esp + 0x2c], ecx
shr ecx, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
shr eax, 8
mov dword [esp + 0x30], eax
lea ecx, [ecx + ebp*8]
dec ecx
test ebp, ebp
je 0x724a0f
mov dword [esp + 0x1c], ebp
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
cmp byte [edx - 5], al
jne 0x7249bd
mov eax, dword [esp + 0x24]
cmp byte [edx - 4], al
jne 0x7249bd
mov eax, dword [esp + 0x18]
cmp byte [edx - 3], al
jne 0x7249bd
mov eax, dword [esp + 0x2c]
cmp byte [edx - 2], al
jne 0x7249bd
mov eax, dword [esp + 0x30]
cmp byte [edx - 1], al
jne 0x7249bd
mov eax, dword [esp + 0x34]
cmp byte [edx], al
jne 0x7249bd
xor al, al
jmp 0x7249bf
or al, 0xff
mov ebp, dword [esp + 0x14]
dec ecx
or ebx, 0xffffffff
mov esi, ecx
mov byte [ebp], al
mov byte [ecx], al
lea ecx, [ebx + esi]
mov al, byte [edx]
mov byte [ebx + esi], al
mov al, byte [edx - 1]
mov byte [ecx - 1], al
mov al, byte [edx - 2]
mov byte [ecx - 2], al
mov al, byte [edx - 3]
mov byte [ecx - 3], al
mov al, byte [edx - 4]
mov byte [ecx - 4], al
mov al, byte [edx - 5]
sub edx, 6
mov byte [ecx - 5], al
sub ecx, 6
sub dword [esp + 0x1c], 1
jne 0x724980
mov ebp, dword [esp + 0x20]
lea esi, [edi + 9]
lea ebx, [edi + 8]
mov al, byte [esi]
shl al, 2
mov byte [ebx], 6
mov byte [edi + 0xa], 4
mov byte [edi + 0xb], al
movzx ecx, al
cmp al, 8
jb 0x724a36
shr ecx, 3
imul ecx, ebp
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
imul ecx, ebp
add ecx, 7
shr ecx, 3
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret