Function at 0x6c50cc00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov edi, dword [esp + 0x90]
mov ebx, dword [esp + 0x90]
mov esi, dword [esp + 0x90]
mov ecx, dword [edi + 0x10]
mov ebp, dword [edi + 0x1c]
mov ebx, dword [ebx + 0x14]
mov esi, dword [esi + 0x18]
mov edx, ecx
mov eax, ecx
sar edx, 0x1f
idiv ebp
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], ebp
mov ebx, dword [ebx + 0x20]
test ebx, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], edx
mov edi, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], eax
jne 0x6c50cc6e
mov ebp, dword [esp + 0x90]
cmp dword [ebp + 8], 1
je 0x6c50cf67
mov eax, dword [esp + 0xa4]
test eax, eax
jle 0x6c50d0ec
mov ebx, dword [esp + 0x90]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], 0
mov ebx, dword [ebx + 4]
mov ebp, dword [esi + 8]
mov edi, dword [esi + 0x28]
mov edx, eax
mov ecx, dword [esi + 0x24]
sar edx, 0x1f
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x94]
lea esi, [ebp + ebp]
mov dword [esp + 0x68], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
nop
mov eax, dword [esp + 0x24]
and eax, dword [esp + 0x68]
mov edx, dword [esp + 0x24]
movzx ecx, byte [esp + 0x50]
imul eax, ebp
mov esi, dword [esp + 0x5c]
sar edx, cl
test edx, edx
lea ebx, [esi + eax*2]
js 0x6c50cf00
lea eax, [edx + ebp]
cmp dword [esp + 0xa0], eax
jl 0x6c50cdbf
mov esi, dword [esp + 0x90]
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x6c50ce50
test ebp, ebp
jle 0x6c50cf55
mov esi, dword [esp + 0x98]
xor eax, eax
lea edi, [esi + edx*2]
xor esi, esi
lea esi, [esi]
movsx edx, word [edi + eax*2]
movsx ecx, word [ebx + eax*2]
add eax, 1
imul edx, ecx
add esi, edx
cmp eax, ebp
jne 0x6c50cd30
add esi, 0x4000
mov eax, esi
sar eax, 0xf
lea edx, [eax + 0x8000]
cmp edx, 0xffff
jbe 0x6c50cd66
sar esi, 0x1f
mov eax, esi
xor ax, 0x7fff
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
add dword [esp + 0x2c], edx
mov word [edi], ax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x44], eax
jg 0x6c50cd96
mov ebx, dword [esp + 0x44]
add dword [esp + 0x24], 1
sub eax, ebx
mov dword [esp + 0x2c], eax
add dword [esp + 0x30], 1
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x30], esi
je 0x6c50ced1
mov ebx, dword [esp + 0xa4]
add dword [esp + 0x40], 2
cmp dword [esp + 0x30], ebx
jne 0x6c50ccd0
mov edi, dword [esp + 0x24]
xor eax, eax
movzx ecx, byte [esp + 0x50]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x9c]
test edi, edi
cmovns eax, dword [esp + 0x24]
sar eax, cl
test ebp, ebp
mov dword [edx], eax
js 0x6c50cdf2
mov ebx, dword [esp + 0x90]
mov ebx, dword [ebx + 0x28]
and dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x30]
test ebx, ebx
cmove eax, dword [esp + 0x48]
test esi, esi
mov dword [esp + 0x48], eax
je 0x6c50ce3d
mov esi, dword [esp + 0x90]
mov edi, eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x4c]
imul eax, dword [esi + 0x1c]
add eax, dword [esp + 0x58]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
jle 0x6c50cf5c
mov esi, dword [esp + 0x6c]
xor eax, eax
mov edi, dword [esp + 0x98]
mov dword [esp + 0x18], ebp
add esi, ebx
mov dword [esp + 0x28], esi
mov ebp, dword [esp + 0x28]
lea edx, [edi + edx*2]
mov dword [esp + 0x38], edx
xor esi, esi
xor edx, edx
nop
mov edi, dword [esp + 0x38]
movsx ecx, word [edi + edx*2]
movsx edi, word [ebx + edx*2]
imul edi, ecx
add esi, edi
movsx edi, word [ebp + edx*2]
add edx, 1
imul ecx, edi
add eax, ecx
cmp edx, dword [esp + 0x18]
jne 0x6c50ce80
sub eax, esi
mov ebp, dword [esp + 0x18]
imul dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.6c55e8dc
add esi, eax
jmp 0x6c50cd44
mov edi, dword [esp + 0x90]
mov dword [esp + 0x48], 0
mov eax, dword [edi + 0xc]
mov edx, eax
sar edx, 0x1f
idiv dword [esp + 0x44]
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], eax
jmp 0x6c50cda9
test ebp, ebp
jle 0x6c50cf55
lea edi, [edx + ebp]
mov eax, edx
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x98]
neg eax
mov ecx, edx
xor esi, esi
lea ebx, [ebx + eax*2]
lea esi, [esi]
mov edx, ecx
sar edx, 0x1f
mov eax, edx
xor eax, ecx
sub eax, edx
mov edx, eax
sar edx, 0x1f
idiv dword [esp + 0xa0]
movsx eax, word [ebp + edx*2]
movsx edx, word [ebx + ecx*2]
add ecx, 1
imul eax, edx
add esi, eax
cmp ecx, edi
jne 0x6c50cf20
mov ebp, dword [esp + 0x28]
jmp 0x6c50cd44
xor eax, eax
jmp 0x6c50cd66
xor esi, esi
xor eax, eax
xor edx, edx
jmp 0x6c50ceae
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x6c50cc6e
mov eax, dword [esp + 0x24]
mov edx, ecx
xor ebx, ebx
sar edx, 0x1f
mov dword [esp + 0x34], edx
mov dword [esp + 4], ecx
mov esi, eax
mov eax, dword [esp + 0x44]
mov dword [esp], 0
mov dword [esp + 0x30], ecx
mov edx, eax
sar edx, 0x1f
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call fcn.6c55e8dc
mov ecx, dword [esp + 0xa0]
sub ecx, 1
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], edx
imul ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.6c55e8dc
mov ebp, eax
mov eax, dword [esp + 0xa4]
mov ecx, edx
mov edx, eax
sar edx, 0x1f
cmp ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jge 0x6c50d0d1
test ebp, ebp
jle 0x6c50d107
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x98]
xor ecx, ecx
mov eax, ebx
mov edx, esi
mov dword [esp + 0x30], edi
movzx edi, word [ebp + edx*2]
mov ebx, dword [esp + 0x94]
add eax, dword [esp + 0x50]
adc edx, dword [esp + 0x54]
mov word [ebx + ecx*2], di
add ecx, 1
cmp dword [esp + 0x18], ecx
jg 0x6c50d025
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov eax, ebp
imul dword [esp + 0x28]
imul edi, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov edx, eax
mov ebx, eax
sar edx, 0x1f
mov esi, edx
mov edx, dword [esp + 0x38]
add ebx, dword [esp + 0x18]
adc esi, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.6c55e8dc
mov ebp, dword [esp + 0x3c]
add edi, dword [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebp
add eax, edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov dword [esp + 8], edi
call fcn.6c55ea30
mov ebp, dword [esp + 0x90]
mov ebp, dword [ebp + 0x24]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], ebp
jmp 0x6c50cdbf
jg 0x6c50d0e0
cmp ebp, dword [esp + 0xa4]
jbe 0x6c50d008
mov ebp, dword [esp + 0xa4]
jmp 0x6c50d008
mov esi, dword [esp + 0x90]
mov dword [esp + 0x30], 0
mov esi, dword [esi + 0x24]
mov dword [esp + 0x50], esi
jmp 0x6c50cdbf
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
jmp 0x6c50d063