Function at 0x70321300
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0x4a
or cl, byte [eax - 0x47cf5b8]
or dh, byte [ebx + ebp + 0xf]
mov dh, 0x4a
or ecx, dword [eax - 0x47cf4b8]
or esi, dword [edi + ebx + 0xf]
mov dh, 0x4a
or al, 0x88
dec eax
or al, 0x83
sti
or al, 0x74
adc ecx, dword [edi]
mov dh, 0x4a
or eax, 0x830d4888
sti
or eax, 0xb60f0774
push edx
push cs
mov byte [eax + 0xe], dl
mov eax, dword [ebp - 0x48]
shr eax, 2
add eax, 1
mov ebx, dword [ebp - 0x3c]
mov ecx, eax
shr ecx, 2
movd xmm6, dword [ebp - 0x4c]
jne 0x703212b6
jne 0x703212b6
shl ecx, 4
pshufd xmm1, xmm6, 0
mov edx, ebx
add ecx, ebx
mov esi, esi
lea edi, [edi]
movdqu xmm0, xmmword [edx]
add edx, 0x10
pxor xmm0, xmm1
movups xmmword [edx - 0x10], xmm0
cmp edx, ecx
jne 0x70321317
mov ebx, eax
and ebx, 0xfffffffc
lea ecx, [ebx*4]
mov edx, ecx
cmp eax, ebx
je 0x7032135e
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
xor dword [ebx + ecx], eax
lea eax, [edx + 4]
cmp dword [ebp - 0x40], eax
jbe 0x7032135e
mov ecx, dword [ebp - 0x4c]
add edx, 8
xor dword [ebx + eax], ecx
cmp dword [ebp - 0x40], edx
jbe 0x7032135e
xor dword [ebx + edx], ecx
mov dword [esp + 4], 0x20a
mov eax, dword [ebp - 0x44]
mov dword [esp], 0x40
call eax
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
sub esp, 8
movsx ax, byte [ecx]
test al, al
je 0x70321397
xor edx, edx
lea esi, [esi]
mov word [ebx + edx*2], ax
add edx, 1
movsx ax, byte [ecx + edx]
test al, al
jne 0x70321387
mov dword [esp + 4], 0x20a
mov dword [esp], 0x40
call dword [esi + 0x64]
sub esp, 8
mov dword [ebp - 0x3c], eax
mov dword [esp + 8], 0x105
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [esi + 0x24]
mov eax, dword [ebp - 0x3c]
sub esp, 0xc
cmp word [eax], 0
je 0x70321b87
add eax, 2
xor ecx, ecx
mov edx, eax
add eax, 2
add ecx, 1
cmp word [eax - 2], 0
jne 0x703213da
mov eax, dword [ebp - 0x3c]
lea eax, [eax + ecx*2 - 2]
lea esi, [esi]
xor ecx, ecx
mov word [edx], cx
mov edx, eax
sub eax, 2
cmp word [eax + 2], 0x5c
jne 0x703213f7
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x3c]
mov dword [esp], ebx
call fcn.70320d27
lea eax, [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.70320a67
test al, al
je 0x70321a90
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.7031fd87
test al, al
je 0x70321a90
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
add eax, 0x10
mov dword [ebp - 0x40], eax
jmp 0x7032149a
mov eax, dword [ebp - 0x60]
mov ebx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [esp], 0x40
mov dword [esp + 4], ebx
mov dword [ebp - 0x3c], edx
call dword [esi + 0x64]
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], 0
sub esp, 8
mov dword [ebp - 0x4c], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ebx
mov ebx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp], 2
call dword [esi + 0x40]
sub esp, 0x18
test eax, eax
jne 0x70321a90
cmp byte [ebx + 0x90], 0
jne 0x70321507
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x160]
mov ebx, dword [ebp - 0x4c]
mov edx, dword [ebx + 8]
lea eax, [eax + edx + 0x3dd]
add eax, ebx
mov ebx, dword [edi + 0xa4]
mov ecx, dword [eax + 0xee4]
lea edx, [eax + 0x10de]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], ebx
test ecx, ecx
je 0x70321a9f
mov dword [ebp - 0x40], esi
xor ebx, ebx
mov esi, edx
jmp 0x7032155f
mov eax, dword [ebp - 0x3c]
add ebx, 1
cmp dword [eax + 0xee4], ebx
jbe 0x70321a9c
add esi, 0x8a
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.7031f9b7
cmp dword [ebp - 0x48], eax
jne 0x70321547
imul eax, ebx, 0x8a
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov ebx, dword [eax + 0x86]
mov eax, dword [eax + 0x82]
mov dword [ebp - 0x54], ebx
lea eax, [ecx + eax + 0xee4]
mov dword [ebp - 0x64], eax
lea eax, [ebx - 1]
mov dword [ebp - 0x5c], eax
mov dword [esp + 4], 0x20a
mov eax, dword [ebp - 0x44]
mov dword [esp], 0x40
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
sub esp, 8
cmp byte [eax + 0xf4], 0
je 0x70321b97
xor ebx, ebx
lea esi, [esi]
add ebx, 1
cmp byte [eax + ebx + 0xf4], 0
jne 0x703215d7
mov edx, dword [ebp - 0x50]
mov ecx, eax
movsx ax, byte [ecx + ebx + 0xf4]
mov word [edx + ebx*2], ax
sub ebx, 1
jne 0x703215e9
movsx ax, byte [ecx + 0xf4]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov word [edx], ax
test ax, ax
je 0x70321621
mov eax, edx
lea esi, [esi]
add ebx, 1
cmp word [eax + ebx*2], 0
jne 0x70321617
mov edx, dword [ebp - 0x50]
jmp 0x70321629
mov ebx, eax
lea eax, [ebx - 1]
cmp word [edx + eax*2], 0x5c
jne 0x70321627
mov eax, dword [ebp - 0x50]
lea ecx, [ebx + ebx]
mov dword [esp + 4], 0x20a
mov dword [ebp - 0x40], ecx
mov dword [esp], 0x40
lea ebx, [eax + ecx]
call dword [esi + 0x64]
xor edx, edx
mov ecx, dword [ebp - 0x40]
sub esp, 8
cmp word [ebx], 0
mov dword [ebp - 0x48], eax
jne 0x70321669
jmp 0x7032176a
mov edx, eax
lea eax, [edx + 1]
cmp word [ebx + eax*2], 0
jne 0x70321667
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x50]
lea ecx, [eax + ecx + 0x10]
mov eax, dword [ebp - 0x48]
cmp eax, ecx
setae byte [ebp - 0x50]
lea ecx, [eax + 0x10]
movzx eax, byte [ebp - 0x50]
cmp ebx, ecx
setae cl
or al, cl
je 0x70321b27
cmp edx, 6
jbe 0x70321b27
mov edx, dword [ebp - 0x40]
mov ecx, ebx
mov eax, dword [ebp - 0x48]
shr edx, 3
shl edx, 4
mov dword [ebp - 0x68], eax
add edx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], edx
mov edx, dword [ebp - 0x68]
nop
lea esi, [esi]
movdqu xmm3, xmmword [ecx]
add edx, 0x10
add ecx, 0x10
movups xmmword [edx - 0x10], xmm3
cmp edx, dword [ebp - 0x50]
jne 0x703216c7
mov edx, eax
mov dword [ebp - 0x40], eax
and edx, 0xfffffff8
cmp eax, edx
je 0x7032176a
movzx ecx, word [ebx + edx*2]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x48]
mov word [eax + edx*2], cx
lea ecx, [edx + 1]
cmp dword [ebp - 0x40], ecx
jbe 0x7032176a
movzx edx, word [ebx + ecx*2]
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x50]
lea ecx, [edx + 2]
cmp dword [ebp - 0x40], ecx
jbe 0x7032176a
movzx edx, word [ebx + ecx*2]
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x50]
lea ecx, [edx + 3]
cmp dword [ebp - 0x40], ecx
jbe 0x7032176a
movzx edx, word [ebx + ecx*2]
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x50]
lea ecx, [edx + 4]
cmp dword [ebp - 0x40], ecx
jbe 0x7032176a
movzx edx, word [ebx + ecx*2]
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x50]
lea ecx, [edx + 5]
cmp dword [ebp - 0x40], ecx
jbe 0x7032176a
movzx edx, word [ebx + ecx*2]
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x50]
add edx, 6
cmp dword [ebp - 0x40], edx
jbe 0x7032176a
movzx eax, word [ebx + edx*2]
mov ebx, dword [ebp - 0x48]
mov word [ebx + edx*2], ax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call dword [esi]
mov ecx, dword [ebp - 0x44]
mov esi, eax
mov eax, dword [eax + 0x3c]
sub esp, 4
mov edx, dword [esi + eax + 0x2c]
mov dword [esp], 0x40
mov eax, dword [ebp - 0x54]
lea ebx, [esi + edx]
mov dword [ebp - 0x48], edx
mov dword [esp + 4], eax
call ecx
mov edx, dword [ebp - 0x54]
sub esp, 8
mov dword [ebp - 0x40], eax
test edx, edx
mov edx, dword [ebp - 0x48]
je 0x70321ba7
mov eax, dword [ebp - 0x5c]
lea esi, [esi + edx + 0x10]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x50], esi
cmp eax, 0xe
seta byte [ebp - 0x48]
add edx, 0x10
cmp ebx, edx
setae cl
cmp dword [ebp - 0x40], esi
setae dl
or cl, dl
je 0x70321b57
cmp byte [ebp - 0x48], 0
je 0x70321b57
lea esi, [eax + 1]
xor ecx, ecx
lea edx, [eax - 0xf]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
shr edx, 4
add edx, 1
lea esi, [esi]
mov esi, ecx
add ecx, 1
shl esi, 4
movdqu xmm4, xmmword [ebx + esi]
movups xmmword [eax + esi], xmm4
cmp edx, ecx
ja 0x703217f7
shl edx, 4
mov ecx, eax
mov dword [ebp - 0x40], eax
mov eax, edx
mov edx, dword [ebp - 0x5c]
lea esi, [ebx + eax]
add ecx, eax
sub edx, eax
cmp eax, dword [ebp - 0x44]
je 0x703218e7
movzx eax, byte [esi]
mov byte [ecx], al
test edx, edx
je 0x703218e7
movzx eax, byte [esi + 1]
mov byte [ecx + 1], al
cmp edx, 1
je 0x703218e7
movzx eax, byte [esi + 2]
mov byte [ecx + 2], al
cmp edx, 2
je 0x703218e7
movzx eax, byte [esi + 3]
mov byte [ecx + 3], al
cmp edx, 3
je 0x703218e7
movzx eax, byte [esi + 4]
mov byte [ecx + 4], al
cmp edx, 4
je 0x703218e7
movzx eax, byte [esi + 5]
mov byte [ecx + 5], al
cmp edx, 5
je 0x703218e7
movzx eax, byte [esi + 6]
mov byte [ecx + 6], al
cmp edx, 6
je 0x703218e7
movzx eax, byte [esi + 7]
mov byte [ecx + 7], al
cmp edx, 7
je 0x703218e7
movzx eax, byte [esi + 8]
mov byte [ecx + 8], al
cmp edx, 8
je 0x703218e7
movzx eax, byte [esi + 9]
mov byte [ecx + 9], al
cmp edx, 9
je 0x703218e7
movzx eax, byte [esi + 0xa]
mov byte [ecx + 0xa], al
cmp edx, 0xa
je 0x703218e7
movzx eax, byte [esi + 0xb]
mov byte [ecx + 0xb], al
cmp edx, 0xb
je 0x703218e7
movzx eax, byte [esi + 0xc]
mov byte [ecx + 0xc], al
cmp edx, 0xc
je 0x703218e7
movzx eax, byte [esi + 0xd]
mov byte [ecx + 0xd], al
cmp edx, 0xd
je 0x703218e7
movzx edx, byte [esi + 0xe]
mov byte [ecx + 0xe], dl
nop
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0xcc0], ecx
sar ecx, 0x1f
mov dword [eax + 0xcc4], ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x2c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
call eax
mov esi, dword [ebp - 0x64]
sub esp, 0x10
lea eax, [esi + 0x10]
cmp ebx, eax
setae dl
cmp dword [ebp - 0x50], esi
setbe al
or dl, al
je 0x70321af7
cmp byte [ebp - 0x48], 0
je 0x70321af7
mov eax, dword [ebp - 0x5c]
xor edx, edx
sub eax, 0xf
shr eax, 4
add eax, 1
mov ecx, edx
add edx, 1
shl ecx, 4
movdqu xmm5, xmmword [esi + ecx]
movups xmmword [ebx + ecx], xmm5
cmp edx, eax
jb 0x70321957
mov esi, dword [ebp - 0x5c]
shl eax, 4
mov ecx, dword [ebp - 0x64]
lea edx, [ebx + eax]
sub esi, eax
add ecx, eax
cmp eax, dword [ebp - 0x44]
je 0x70321a47
movzx eax, byte [ecx]
mov byte [edx], al
test esi, esi
je 0x70321a47
movzx eax, byte [ecx + 1]
mov byte [edx + 1], al
cmp esi, 1
je 0x70321a47
movzx eax, byte [ecx + 2]
mov byte [edx + 2], al
cmp esi, 2
je 0x70321a47
movzx eax, byte [ecx + 3]
mov byte [edx + 3], al
cmp esi, 3
je 0x70321a47
movzx eax, byte [ecx + 4]
mov byte [edx + 4], al
cmp esi, 4
je 0x70321a47
movzx eax, byte [ecx + 5]
mov byte [edx + 5], al
cmp esi, 5
je 0x70321a47
movzx eax, byte [ecx + 6]
mov byte [edx + 6], al
cmp esi, 6
je 0x70321a47
movzx eax, byte [ecx + 7]
mov byte [edx + 7], al
cmp esi, 7
je 0x70321a47
movzx eax, byte [ecx + 8]
mov byte [edx + 8], al
cmp esi, 8
je 0x70321a47
movzx eax, byte [ecx + 9]
mov byte [edx + 9], al
cmp esi, 9
je 0x70321a47
movzx eax, byte [ecx + 0xa]
mov byte [edx + 0xa], al
cmp esi, 0xa
je 0x70321a47
movzx eax, byte [ecx + 0xb]
mov byte [edx + 0xb], al
cmp esi, 0xb
je 0x70321a47
movzx eax, byte [ecx + 0xc]
mov byte [edx + 0xc], al
cmp esi, 0xc
je 0x70321a47
movzx eax, byte [ecx + 0xd]
mov byte [edx + 0xd], al
cmp esi, 0xd
je 0x70321a47
movzx eax, byte [ecx + 0xe]
mov byte [edx + 0xe], al
lea esi, [esi]
mov eax, dword [ebp - 0x40]
mov dword [esp], ebx
mov esi, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
call eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], ebx
sub esp, 0x10
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call ebx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0
jmp 0x703215a5
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov esi, ebx
mov ecx, dword [ebp - 0x64]
add edx, ebx
lea esi, [esi]
movzx ebx, byte [ecx]
add eax, 1
add ecx, 1
mov byte [eax - 1], bl
cmp eax, edx
jne 0x70321b07
mov ebx, esi
jmp 0x70321a47
mov eax, dword [ebp - 0x40]
mov ecx, ebx
mov edx, dword [ebp - 0x48]
lea eax, [ebx + eax*2]
nop
lea esi, [esi]
movzx ebx, word [ecx]
add ecx, 2
add edx, 2
mov word [edx - 2], bx
cmp ecx, eax
jne 0x70321b37
jmp 0x7032176a
mov eax, dword [ebp - 0x5c]
mov ecx, ebx
mov edx, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x44], eax
lea esi, [edx + eax]
movzx eax, byte [ecx]
add edx, 1
add ecx, 1
mov byte [edx - 1], al
cmp edx, esi
jne 0x70321b68
jmp 0x703218e7
mov edx, eax
xor ecx, ecx
jmp 0x703213e9
mov edx, dword [ebp - 0x50]
xor eax, eax
xor ebx, ebx
mov word [edx], ax
jmp 0x70321629
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [eax + 0xcc0], ecx
sar ecx, 0x1f
mov dword [eax + 0xcc4], ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
call eax
sub esp, 0x10
jmp 0x70321a47