Function at 0x70b4e3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
lea ecx, [edi + edi*2]
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
lea edx, [edi + ecx*4]
mov ecx, eax
shl ecx, 8
sub ecx, eax
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx*4 + 0x17c]
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
lea esi, [edx + eax*4]
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
mov eax, dword [eax]
mov dword [ebp - 4], 0x20
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [0x70bc1998]
mov ebx, dword [ebp + 0xc]
mov ecx, eax
and ecx, edx
xor edx, edx
mov dl, byte [ebx]
mov dword [ebp + 0x14], 8
shr eax, 8
shl edx, 0x18
or eax, edx
mov edx, dword [ebp - 4]
inc ebx
add edx, 8
test cl, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov byte [esi + 0x3c], cl
je 0x70b4e49b
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], 0xffffffff
or al, 1
mov dword [esi + 0x38], eax
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
add edx, 7
pop edi
shr edx, 3
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb8]
test edx, edx
mov edx, dword [esi + 0x38]
jne 0x70b4e4b0
and edx, 0xfffffffc
jmp 0x70b4e4b3
and edx, 0xfffffffe
mov dword [esi + 0x38], edx
mov dword [esi + 0x18], 0
test byte [ecx + 0xbe], 0x80
je 0x70b4e503
mov edx, dword [0x70bc19d8]
mov ecx, eax
and ecx, edx
mov edx, dword [ebp - 4]
add edx, 0x18
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], 0x20
mov ecx, 3
mov dword [ebp - 4], edx
xor edx, edx
mov dl, byte [ebx]
shr eax, 8
shl edx, 0x18
or eax, edx
inc ebx
dec ecx
jne 0x70b4e4e8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esi + 0x18], ecx
jmp 0x70b4e525
test edi, edi
jne 0x70b4e525
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x70b4e525
mov edx, dword [ecx + 0xb8]
test edx, edx
jne 0x70b4e525
test byte [ecx + 0xbd], 0x20
jne 0x70b4e483
mov cl, byte [esi + 0x3c]
mov edx, dword [ebp + 0x14]
test cl, 2
je 0x70b4e539
mov dword [esi + 0x34], 1
jmp 0x70b4e540
mov dword [esi + 0x34], 0
test cl, 8
je 0x70b4e54e
mov dword [esi + 0x30], 1
jmp 0x70b4e555
mov dword [esi + 0x30], 0
test cl, 4
je 0x70b4e563
mov dword [esi + 0x2c], 1
jmp 0x70b4e571
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
test edi, edi
jne 0x70b4e66c
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x70b4e66c
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0xb8]
test edi, edi
jne 0x70b4e66f
test byte [ecx + 0xbd], 0x20
je 0x70b4e66f
mov eax, dword [ebp - 0x10]
test dl, 1
mov dword [ebp + 0x18], eax
jne 0x70b4e486
mov esi, dword [esi + 0x18]
cmp esi, 0x44
jb 0x70b4e5c2
mov dword [ebp + 0xc], 0x40
jmp 0x70b4e5ca
lea eax, [esi - 4]
and al, 0xfe
mov dword [ebp + 0xc], eax
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 0x48]
mov dword [edi + 0x94], esi
sub ecx, eax
add edi, 0x50
shr ecx, 0x10
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov cl, ah
and eax, 0xff
shl eax, 8
add ecx, eax
mov eax, 0x51eb851f
shr ecx, 1
add ecx, 0x4000
mul ecx
shr edx, 6
lea eax, [edx + edx*2]
lea ecx, [edx + eax*8]
lea edx, [ecx*8 + 0x15]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x40], ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jbe 0x70b4e651
mov ecx, eax
mov eax, dword [ebp - 0x18]
lea esi, [ecx + 1]
mov ecx, dword [ebp - 0x10]
shr esi, 1
mov edi, edx
add ecx, 2
imul edi, eax
inc edi
and edi, 0xffff
mov eax, edi
xor word [ecx - 2], ax
dec esi
jne 0x70b4e639
mov eax, dword [ebp + 0x18]
add dword [ebp + 0x18], 4
mov eax, dword [eax]
mov dword [ebp - 4], 0x20
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
jmp 0x70b4e679
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x90], 0
mov edi, dword [ebp - 8]
test byte [edi + 0x3c], 0x10
je 0x70b4ec65
mov esi, edx
add edx, 8
and esi, 7
mov dword [ebp + 0x14], edx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x70bc1998]
add esi, 8
and edx, ecx
cmp esi, 8
jb 0x70b4e6c3
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4e6b3
cmp edx, 0x3d
ja 0x70b4e483
mov edi, dword [ebp - 8]
test edx, edx
mov byte [edi + 0x1a0], dl
jbe 0x70b4e77e
add edi, 0x1a2
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov esi, ecx
add ecx, 8
and esi, 7
mov dword [ebp + 0x14], ecx
mov ecx, esi
add esi, 8
shr edx, cl
mov ecx, dword [0x70bc1998]
and edx, ecx
cmp esi, 8
jb 0x70b4e726
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4e716
mov ecx, dword [ebp + 0x14]
mov byte [edi - 1], dl
mov esi, ecx
add ecx, 8
and esi, 7
mov dword [ebp + 0x14], ecx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x70bc1998]
add esi, 8
and edx, ecx
cmp esi, 8
jb 0x70b4e769
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4e759
mov ecx, dword [ebp + 0xc]
mov byte [edi], dl
add edi, 2
dec ecx
mov dword [ebp + 0xc], ecx
jne 0x70b4e6e6
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov cl, byte [edi + 0x3c]
mov dword [edi + 0x1aeb0], 8
test cl, 0x40
je 0x70b4e7d6
mov edi, dword [0x70bc1984]
mov ecx, edx
and ecx, 7
mov esi, eax
shr esi, cl
add ecx, 3
add edx, 3
and esi, edi
cmp ecx, 8
jb 0x70b4e7cd
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x70b4e7bd
mov edi, dword [ebp - 8]
mov dword [edi + 0x1aeb0], esi
test byte [edi + 0x3c], 0x80
je 0x70b4e911
mov edi, dword [0x70bc1984]
mov ecx, edx
and ecx, 7
mov esi, eax
shr esi, cl
add ecx, 3
add edx, 3
and esi, edi
cmp ecx, 8
jb 0x70b4e81a
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x70b4e80a
cmp esi, 7
jne 0x70b4e8d3
mov esi, edx
add edx, 4
and esi, 7
mov dword [ebp + 0x14], edx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x70bc1988]
add esi, 4
and edx, ecx
cmp esi, 8
mov dword [ebp + 0xc], edx
jb 0x70b4e863
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4e853
mov edi, dword [ebp - 8]
cmp edx, 1
mov dword [ebp + 0x18], 1
mov byte [edi + 0x49], dl
jb 0x70b4e95e
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov esi, ecx
add ecx, 4
and esi, 7
mov dword [ebp + 0x14], ecx
mov ecx, esi
add esi, 4
shr edx, cl
mov ecx, dword [0x70bc1988]
and edx, ecx
cmp esi, 8
jb 0x70b4e8b9
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4e8a9
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov byte [edi + ecx + 0x49], dl
mov edx, dword [ebp + 0xc]
inc ecx
cmp ecx, edx
mov dword [ebp + 0x18], ecx
jbe 0x70b4e879
jmp 0x70b4e95e
mov ecx, esi
mov edi, dword [ebp - 8]
shl ecx, 4
lea ecx, [ecx + esi + 0x70bc1a90]
mov esi, dword [ebp - 8]
mov dword [ebp + 0x18], ecx
mov cl, byte [ecx]
mov byte [esi + 0x49], cl
mov esi, 1
movsx ecx, cl
cmp ecx, esi
mov dword [ebp + 0xc], ecx
jb 0x70b4e961
mov ecx, dword [ebp + 0x18]
inc esi
mov cl, byte [ecx + esi - 1]
mov byte [edi + esi + 0x48], cl
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jbe 0x70b4e8fc
jmp 0x70b4e961
mov cl, byte [0x70bc1b07]
mov byte [edi + 0x49], cl
movsx ecx, byte [0x70bc1b07]
cmp ecx, 1
mov dword [ebp + 0xc], ecx
jb 0x70b4e961
lea ecx, [edi + 0x4a]
mov dword [ebp + 0x18], ecx
mov ecx, 0x70bc1abe
sub ecx, edi
mov dword [ebp + 0x14], ecx
mov ecx, 0xffffffb7
sub ecx, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov cl, byte [ecx + esi]
mov byte [esi], cl
mov ecx, dword [ebp - 0x18]
inc esi
mov dword [ebp + 0x18], esi
add ecx, esi
cmp ecx, dword [ebp + 0xc]
jbe 0x70b4e943
jmp 0x70b4e961
mov edx, dword [ebp + 0x14]
mov ecx, edx
mov esi, eax
and ecx, 7
inc edx
shr esi, cl
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x70bc197c]
and esi, ecx
mov ecx, dword [ebp + 0xc]
inc ecx
cmp ecx, 8
jb 0x70b4e9a0
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x70b4e98d
mov edi, dword [ebp - 8]
test esi, esi
je 0x70b4e9e1
mov edi, dword [0x70bc19b8]
mov ecx, edx
and ecx, 7
mov esi, eax
shr esi, cl
add ecx, 0x10
add edx, 0x10
and esi, edi
cmp ecx, 8
jb 0x70b4e9de
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x70b4e9ce
mov edi, dword [ebp - 8]
mov ecx, edx
mov dword [edi + 0x20], esi
mov edi, dword [0x70bc198c]
and ecx, 7
mov esi, eax
add edx, 5
shr esi, cl
add ecx, 5
mov dword [ebp + 0x14], edx
and esi, edi
cmp ecx, 8
jb 0x70b4ea21
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x70b4ea11
mov ecx, dword [ebp - 8]
and esi, 0xff
test byte [ecx + 0x3c], 0x20
mov dword [ecx + 0x40], esi
je 0x70b4eb27
mov esi, edx
and esi, 7
je 0x70b4ea6a
mov ecx, 8
sub ecx, esi
add esi, ecx
add edx, ecx
cmp esi, 8
jb 0x70b4ea6a
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4ea5a
mov edi, dword [0x70bc197c]
mov esi, edx
add edx, 8
and esi, 7
mov dword [ebp + 0x14], edx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x70bc1998]
add esi, 8
and edx, ecx
cmp esi, 8
jb 0x70b4eaad
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4ea9d
test edx, edx
jbe 0x70b4eae6
mov ecx, dword [ebp + 0x14]
mov esi, ecx
add ecx, 8
and esi, 7
mov dword [ebp + 0x14], ecx
add esi, 8
cmp esi, 8
jb 0x70b4eae3
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4ead3
dec edx
jne 0x70b4eab1
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov esi, ecx
and esi, 7
inc ecx
mov dword [ebp + 0x14], ecx
mov ecx, esi
shr edx, cl
and edx, edi
inc esi
cmp esi, 8
jb 0x70b4eb1c
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x70b4eb0c
test edx, edx
mov edx, dword [ebp + 0x14]
jne 0x70b4ea70
mov ecx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ecx + 0xd8]
imul eax, dword [ecx + 0xdc]
cmp eax, esi
mov dword [ebp + 0x18], eax
jbe 0x70b4ec2c
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], esi
mov edx, dword [ebp + 8]
mov eax, esi
mov ecx, dword [edx + 0xdc]
xor edx, edx
div ecx
mov eax, esi
mov edi, edx
xor edx, edx
div ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x1aeb8]
mov ebx, dword [ebp + 8]
add ecx, edx
lea edx, [eax + 1]
cmp edx, dword [ebx + 0xd8]
jne 0x70b4eb95
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x24]
mov edx, dword [edx + 0x10]
imul edx, eax
mov eax, ebx
sub eax, edx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [eax + edx - 1]
jmp 0x70b4eba2
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
lea edx, [edi + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0xdc]
jne 0x70b4ebd9
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x24]
imul edx, edi
mov eax, dword [eax + 4]
sub eax, edx
xor edx, edx
shr eax, 1
lea eax, [eax + ebx - 1]
div ebx
mov ebx, dword [ebp - 8]
mov dword [ecx + 4], eax
jmp 0x70b4ebef
mov ebx, dword [ebp - 8]
mov edx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x24]
shr edx, 1
lea eax, [edx + edi - 1]
xor edx, edx
div edi
mov dword [ecx + 4], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x28]
cmp eax, edx
je 0x70b4ec14
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
shl edx, 1
shl eax, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
inc esi
add ecx, 0x1c
cmp esi, eax
mov dword [ebp + 0xc], ecx
jb 0x70b4eb4a
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], 1
mov eax, dword [ecx + 0x1aeb0]
lea esi, [eax + eax*4]
lea esi, [eax + esi*8]
lea eax, [eax + esi*2]
shl eax, 2
lea esi, [eax + 0x70bcc374]
lea eax, [eax + 0x70bcc3bc]
mov dword [ecx + 0x198], esi
mov dword [ecx + 0x19c], eax
jmp 0x70b4e486
mov byte [edi + 0x1a0], 0
jmp 0x70b4e781