Function at 0x70320080
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp - 0x4c]
lea edi, [esi + 1]
sub eax, esi
mov esi, dword [ebp - 0x48]
lea eax, [eax + esi - 8]
test eax, eax
je 0x70320087
movzx edx, byte [ebp - 0x20]
movzx ecx, byte [ebp - 0x1e]
cmp dl, 0x3f
sete bl
mov byte [ebp - 0x34], cl
mov esi, ebx
movzx ebx, byte [ebp - 0x1f]
cmp bl, 0x3f
mov byte [ebp - 0x2c], bl
sete byte [ebp - 0x30]
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1d]
sete byte [ebp - 0x39]
mov byte [ebp - 0x3a], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1c]
sete byte [ebp - 0x3b]
mov byte [ebp - 0x3c], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1b]
sete byte [ebp - 0x41]
mov byte [ebp - 0x42], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1a]
sete byte [ebp - 0x43]
mov byte [ebp - 0x44], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x19]
sete byte [ebp - 0x51]
cmp cl, 0x3f
mov byte [ebp - 0x52], cl
mov ecx, esi
sete byte [ebp - 0x53]
add eax, edi
jmp 0x7031fe82
add edi, 1
cmp edi, eax
je 0x70320087
mov esi, edi
cmp byte [edi], dl
je 0x7031fe8c
test cl, cl
je 0x7031fe77
movzx ebx, byte [ebp - 0x2c]
cmp byte [edi + 1], bl
je 0x7031fe9b
cmp byte [ebp - 0x30], 0
je 0x7031fe77
movzx ebx, byte [ebp - 0x34]
cmp byte [edi + 2], bl
je 0x7031feaa
cmp byte [ebp - 0x39], 0
je 0x7031fe77
movzx ebx, byte [ebp - 0x3a]
cmp byte [edi + 3], bl
je 0x7031feb9
cmp byte [ebp - 0x3b], 0
je 0x7031fe77
movzx ebx, byte [ebp - 0x3c]
cmp byte [edi + 4], bl
je 0x7031fec8
cmp byte [ebp - 0x41], 0
je 0x7031fe77
movzx ebx, byte [ebp - 0x42]
cmp byte [edi + 5], bl
je 0x7031fed7
cmp byte [ebp - 0x43], 0
je 0x7031fe77
movzx ebx, byte [ebp - 0x44]
cmp byte [edi + 6], bl
je 0x7031fee6
cmp byte [ebp - 0x51], 0
je 0x7031fe77
movzx ebx, byte [ebp - 0x52]
cmp byte [edi + 7], bl
je 0x7031fef5
cmp byte [ebp - 0x53], 0
je 0x7031fe77
mov eax, dword [edi]
lea ebx, [edi + 8]
mov ecx, eax
mov edx, eax
shr edx, 0x18
shl ecx, 0x18
add ecx, edx
movzx edx, ah
shr eax, 8
shl edx, 0x10
and eax, 0xff00
add edx, ecx
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x3c]
cmp dword [edi + 8], eax
je 0x70320139
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x7031fde7
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x34], eax
add edx, ecx
cmp eax, dword [ebp - 0x58]
ja 0x703202bc
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 1]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x7032007a
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x10]
cmp ebx, eax
lea eax, [edi + 0x18]
setae cl
cmp edx, eax
setae al
or cl, al
je 0x7032029c
cmp dword [ebp - 0x30], 0xe
jbe 0x7032029c
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
mov eax, edx
and edi, 0xfffffff0
add edi, edx
lea esi, [esi]
movdqu xmm2, xmmword [ecx]
add eax, 0x10
add ecx, 0x10
movups xmmword [eax - 0x10], xmm2
cmp eax, edi
jne 0x7031ff97
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
and eax, 0xfffffff0
lea ecx, [ebx + eax]
sub edi, eax
add edx, eax
cmp dword [ebp - 0x2c], eax
je 0x7032007a
movzx eax, byte [ecx]
mov byte [edx], al
test edi, edi
je 0x7032007a
movzx eax, byte [ecx + 1]
mov byte [edx + 1], al
cmp edi, 1
je 0x7032007a
movzx eax, byte [ecx + 2]
mov byte [edx + 2], al
cmp edi, 2
je 0x7032007a
movzx eax, byte [ecx + 3]
mov byte [edx + 3], al
cmp edi, 3
je 0x7032007a
movzx eax, byte [ecx + 4]
mov byte [edx + 4], al
cmp edi, 4
je 0x7032007a
movzx eax, byte [ecx + 5]
mov byte [edx + 5], al
cmp edi, 5
je 0x7032007a
movzx eax, byte [ecx + 6]
mov byte [edx + 6], al
cmp edi, 6
je 0x7032007a
movzx eax, byte [ecx + 7]
mov byte [edx + 7], al
cmp edi, 7
je 0x7032007a
movzx eax, byte [ecx + 8]
mov byte [edx + 8], al
cmp edi, 8
je 0x7032007a
movzx eax, byte [ecx + 9]
mov byte [edx + 9], al
cmp edi, 9
je 0x7032007a
movzx eax, byte [ecx + 0xa]
mov byte [edx + 0xa], al
cmp edi, 0xa
je 0x7032007a
movzx eax, byte [ecx + 0xb]
mov byte [edx + 0xb], al
cmp edi, 0xb
je 0x7032007a
movzx eax, byte [ecx + 0xc]
mov byte [edx + 0xc], al
cmp edi, 0xc
je 0x7032007a
movzx eax, byte [ecx + 0xd]
mov byte [edx + 0xd], al
cmp edi, 0xd
je 0x7032007a
movzx eax, byte [ecx + 0xe]
mov byte [edx + 0xe], al
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
jmp 0x7031fde7
mov edx, dword [ebp - 0x38]
xor eax, eax
test edx, edx
je 0x7032012d
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
test al, 3
je 0x703200ae
lea esi, [esi]
sub eax, 1
test al, 3
jne 0x703200a7
test eax, eax
je 0x7032011d
lea ebx, [eax - 1]
cmp ebx, 0xf
jbe 0x70320418
mov edx, dword [ebp - 0x38]
shr ebx, 2
movd xmm5, edi
xor ecx, ecx
add ebx, 1
pshufd xmm1, xmm5, 0
mov esi, ebx
shr esi, 2
add edx, 0x10
movdqu xmm0, xmmword [edx]
add ecx, 1
add edx, 0x10
pxor xmm0, xmm1
movups xmmword [edx - 0x10], xmm0
cmp esi, ecx
ja 0x703200da
mov ecx, ebx
and ecx, 0xfffffffc
lea edx, [ecx*4]
cmp ebx, ecx
je 0x7032011d
mov ebx, dword [ebp - 0x38]
lea ecx, [edx + 4]
xor dword [ebx + edx + 0x10], edi
cmp ecx, eax
jae 0x7032011d
xor dword [ebx + edx + 0x14], edi
lea ecx, [edx + 8]
cmp ecx, eax
jae 0x7032011d
xor dword [ebx + edx + 0x18], edi
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x38]
mov dword [eax], esi
mov eax, dword [ebp - 0x40]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x7031ff35
mov eax, dword [edi + 0x10]
mov dword [esp], 0x40
add eax, 0x10
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
call dword [eax + 0x64]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
sub esp, 8
lea edx, [eax - 1]
mov dword [ebp - 0x30], edx
test eax, eax
je 0x7032028e
mov eax, dword [ebp - 0x38]
add edi, 0x18
cmp eax, edi
mov edi, eax
lea eax, [eax + 0x10]
setae dl
cmp ebx, eax
setae al
or dl, al
je 0x7032042d
cmp dword [ebp - 0x30], 0xe
jbe 0x7032042d
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
mov eax, edi
and ecx, 0xfffffff0
add ecx, edi
movdqu xmm3, xmmword [edx]
add eax, 0x10
add edx, 0x10
movups xmmword [eax - 0x10], xmm3
cmp eax, ecx
jne 0x703201a8
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
and ecx, 0xfffffff0
lea edx, [ebx + ecx]
sub edi, ecx
add eax, ecx
cmp dword [ebp - 0x2c], ecx
je 0x7032028e
movzx ecx, byte [edx]
mov byte [eax], cl
test edi, edi
je 0x7032028e
movzx ecx, byte [edx + 1]
mov byte [eax + 1], cl
cmp edi, 1
je 0x7032028e
movzx ecx, byte [edx + 2]
mov byte [eax + 2], cl
cmp edi, 2
je 0x7032028e
movzx ecx, byte [edx + 3]
mov byte [eax + 3], cl
cmp edi, 3
je 0x7032028e
movzx ecx, byte [edx + 4]
mov byte [eax + 4], cl
cmp edi, 4
je 0x7032028e
movzx ecx, byte [edx + 5]
mov byte [eax + 5], cl
cmp edi, 5
je 0x7032028e
movzx ecx, byte [edx + 6]
mov byte [eax + 6], cl
cmp edi, 6
je 0x7032028e
movzx ecx, byte [edx + 7]
mov byte [eax + 7], cl
cmp edi, 7
je 0x7032028e
movzx ecx, byte [edx + 8]
mov byte [eax + 8], cl
cmp edi, 8
je 0x7032028e
movzx ecx, byte [edx + 9]
mov byte [eax + 9], cl
cmp edi, 9
je 0x7032028e
movzx ecx, byte [edx + 0xa]
mov byte [eax + 0xa], cl
cmp edi, 0xa
je 0x7032028e
movzx ecx, byte [edx + 0xb]
mov byte [eax + 0xb], cl
cmp edi, 0xb
je 0x7032028e
movzx ecx, byte [edx + 0xc]
mov byte [eax + 0xc], cl
cmp edi, 0xc
je 0x7032028e
movzx ecx, byte [edx + 0xd]
mov byte [eax + 0xd], cl
cmp edi, 0xd
je 0x7032028e
movzx edx, byte [edx + 0xe]
mov byte [eax + 0xe], dl
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], ebx
add dword [ebp - 0x40], edx
jmp 0x7031fde7
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edi + 8]
lea esi, [esi]
movzx eax, byte [ebx]
add ebx, 1
add edx, 1
mov byte [edx - 1], al
cmp ebx, ecx
jne 0x703202a7
jmp 0x7032007a
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], edx
sub esi, ecx
lea ebx, [esi - 1]
je 0x70320094
lea eax, [edx + 0x10]
cmp dword [ebp - 0x2c], eax
mov ecx, edx
lea edx, [edi + 0x18]
mov edi, ecx
setae al
cmp ecx, edx
setae dl
or al, dl
je 0x70320450
cmp ebx, 0xe
jbe 0x70320450
mov edx, dword [ebp - 0x2c]
mov eax, ecx
mov ecx, esi
and ecx, 0xfffffff0
add ecx, edi
movdqu xmm4, xmmword [edx]
add eax, 0x10
add edx, 0x10
movups xmmword [eax - 0x10], xmm4
cmp eax, ecx
jne 0x70320302
mov eax, ebx
mov ecx, dword [ebp - 0x2c]
mov edx, esi
mov ebx, dword [ebp - 0x30]
and edx, 0xfffffff0
sub eax, edx
add ecx, edx
add ebx, edx
cmp esi, edx
je 0x70320094
movzx edx, byte [ecx]
mov byte [ebx], dl
test eax, eax
je 0x70320094
movzx edx, byte [ecx + 1]
mov byte [ebx + 1], dl
cmp eax, 1
je 0x70320094
movzx edx, byte [ecx + 2]
mov byte [ebx + 2], dl
cmp eax, 2
je 0x70320094
movzx edx, byte [ecx + 3]
mov byte [ebx + 3], dl
cmp eax, 3
je 0x70320094
movzx edx, byte [ecx + 4]
mov byte [ebx + 4], dl
cmp eax, 4
je 0x70320094
movzx edx, byte [ecx + 5]
mov byte [ebx + 5], dl
cmp eax, 5
je 0x70320094
movzx edx, byte [ecx + 6]
mov byte [ebx + 6], dl
cmp eax, 6
je 0x70320094
movzx edx, byte [ecx + 7]
mov byte [ebx + 7], dl
cmp eax, 7
je 0x70320094
movzx edx, byte [ecx + 8]
mov byte [ebx + 8], dl
cmp eax, 8
je 0x70320094
movzx edx, byte [ecx + 9]
mov byte [ebx + 9], dl
cmp eax, 9
je 0x70320094
movzx edx, byte [ecx + 0xa]
mov byte [ebx + 0xa], dl
cmp eax, 0xa
je 0x70320094
movzx edx, byte [ecx + 0xb]
mov byte [ebx + 0xb], dl
cmp eax, 0xb
je 0x70320094
movzx edx, byte [ecx + 0xc]
mov byte [ebx + 0xc], dl
cmp eax, 0xc
je 0x70320094
movzx edx, byte [ecx + 0xd]
mov byte [ebx + 0xd], dl
cmp eax, 0xd
je 0x70320094
movzx eax, byte [ecx + 0xe]
mov byte [ebx + 0xe], al
jmp 0x70320094
mov ecx, dword [ebp - 0x38]
xor edx, edx
xor dword [ecx + edx + 0x10], edi
add edx, 4
cmp eax, edx
ja 0x7032041d
jmp 0x7032011d
mov eax, dword [ebp - 0x38]
mov edx, ebx
mov edi, ebx
mov ecx, dword [ebp - 0x2c]
add ecx, eax
movzx ebx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax - 1], bl
cmp eax, ecx
jne 0x70320439
mov ebx, edi
jmp 0x7032028e
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x2c]
add eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
movzx ebx, byte [ecx]
add edx, 1
add ecx, 1
mov byte [edx - 1], bl
cmp edx, eax
jne 0x7032045c
jmp 0x70320094